-By adding MKGCC=yes and MKGCCCMDS=yes on the make commandline it is now possible to compile and install GCC on the system. Before doing this, if you are not using the build.sh script, you will need to call the fetch scripts in order to retrieve the sources of GCC and its dependencies. -Reduce difference with NetBSD share/mk Move Minix-specific parameters from bsd.gcc.mk to bsd.own.mk, which is anyway patched, so that bsd.gcc.mk is now aligned on the NetBSD version. -Clean libraries dependencies, compiles stdc++ only if gcc is also compiled (it is part of the gcc sources) -Correct minix.h header sequence, cleanup spec headers. -Fix cross-compilation from a 32bit host targeting MINIX/arm Change-Id: I1b234af18eed4ab5675188244e931b2a2b7bd943
27 lines
790 B
Makefile
27 lines
790 B
Makefile
# $NetBSD: Makefile,v 1.5 2011/08/09 12:56:41 joerg Exp $
|
|
|
|
MYOBJS= ${G_OBJC_OBJS} ${G_C_AND_OBJC_OBJS}
|
|
PROG= cc1obj
|
|
SRCS= ${MYOBJS:S/objc\///:Nlibcpp.a:.o=.c} main.c ${PROG}-checksum.c
|
|
|
|
CPPFLAGS+= -I${DIST}/gcc/objc
|
|
CPPFLAGS.prefix.c+= -DPREFIX=\"/usr\"
|
|
|
|
.include "../Makefile.backend"
|
|
.include "../Makefile.libcpp"
|
|
.include "../Makefile.libdecnumber"
|
|
|
|
# VER_CPPFLAGS from Makefile.inc
|
|
CPPFLAGS.c-cppbuiltin.c= ${VER_CPPFLAGS}
|
|
|
|
COPTS+= -Wno-stack-protector
|
|
|
|
.if defined(__MINIX)
|
|
LDADD+= ${LIBMPC} ${LIBMPFR} ${LIBGMP} -lz -lm
|
|
DPADD+= ${LIBMPC} ${LIBMPFR} ${LIBGMP} ${LIBZ} ${LIBM}
|
|
.else
|
|
LDADD+= ${LIBMPC} ${LIBMPFR} ${LIBGMP} -lintl -lz -lm
|
|
DPADD+= ${LIBMPC} ${LIBMPFR} ${LIBGMP} ${LIBINTL} ${LIBZ} ${LIBM}
|
|
.endif # defined(__MINIX)
|
|
|
|
.PATH: ${DIST}/gcc/objc ${DIST}/gcc ${G_out_file:H}
|