0cdf705cc6
-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
815 B
Makefile
27 lines
815 B
Makefile
# $NetBSD: Makefile,v 1.5 2011/08/09 12:56:42 joerg Exp $
|
|
|
|
PROG= cc1plus
|
|
SRCS= ${G_CXX_OBJS:Nlibcpp.a:.o=.c} main.c ${PROG}-checksum.c
|
|
|
|
CPPFLAGS+= -I${DIST}/gcc/cp
|
|
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}
|
|
|
|
# YUCK. but see timevar.h:POP_TIMEVAR_AND_RETURN
|
|
CFLAGS+= -Wno-error # not good enough: -Wno-return-type
|
|
|
|
.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/cp ${DIST}/gcc ${G_out_file:H}
|