minix/external/gpl3/gcc/usr.bin/cpp/Makefile
Lionel Sambuc 0cdf705cc6 Enable optional GCC install and GCC improvements
-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
2013-07-12 14:22:03 +02:00

50 lines
1.1 KiB
Makefile

# $NetBSD: Makefile,v 1.4 2011/07/19 15:59:02 tron Exp $
# For ../Makefile.inc and bsd.own.mk
.include <bsd.init.mk>
PROG= cpp
SRCS= gcc.c cppspec.c prefix.c version.c
# XXX
.if ${MACHINE_ARCH} == "x86_64" || ${MACHINE_ARCH} == "i386"
SRCS+= driver-i386.c
.PATH: ${DIST}/gcc/config/i386
.endif
.if ${MACHINE_ARCH} == "powerpc" || ${MACHINE_ARCH} == "powerpc64"
SRCS+= driver-rs6000.c
.PATH: ${DIST}/gcc/config/rs6000
.endif
CPPFLAGS+= -I${BACKENDOBJ}
CPPFLAGS.prefix.c+= -DPREFIX=\"/usr\"
CPPFLAGS.gcc.c+= -I${GCCARCH} -I${BACKENDOBJ} -I. \
${G_ALL_CFLAGS:M-D*} ${G_INCLUDES:M-I*:N-I.*} \
-DPREFIX=\"/usr\" \
-DDEFAULT_TARGET_VERSION=\"${G_version}\" \
-DDEFAULT_TARGET_MACHINE=\"${MACHINE_GNU_PLATFORM}\" \
-DCONFIGURE_SPECS="\"\""
LINKS= ${BINDIR}/cpp ${BINDIR}/gcpp
TEXINFO= cpp.texi
INFOFLAGS= -I${DIST}/gcc/doc -I${DIST}/gcc/doc/include -I.
MAN= cpp.1
MLINKS+= cpp.1 gcpp.1 cpp.1 cccp.1
.include "../Makefile.frontend"
.if !defined(__MINIX)
LDADD+= -lintl
.endif # !defined(__MINIX)
COPTS+= -Wno-stack-protector
.include <bsd.info.mk>
.PATH: ${DIST}/gcc ${DIST}/gcc/doc
cpp.info: gcc-vers.texi