minix/external/gpl3/gcc/usr.bin/cc1plus/Makefile
Lionel Sambuc 0a6a1f1d05 NetBSD re-synchronization of the source tree
This brings our tree to NetBSD 7.0, as found on -current on the
10-10-2015.

This updates:
 - LLVM to 3.6.1
 - GCC to GCC 5.1
 - Replace minix/commands/zdump with usr.bin/zdump
 - external/bsd/libelf has moved to /external/bsd/elftoolchain/
 - Import ctwm
 - Drop sprintf from libminc

Change-Id: I149836ac18e9326be9353958bab9b266efb056f0
2016-01-13 20:32:14 +01:00

53 lines
1.5 KiB
Makefile

# $NetBSD: Makefile,v 1.9 2014/05/31 22:55:17 mrg Exp $
PROG= cc1plus
SRCS= ${G_CXX_OBJS:S,c-family/,,:S,cp/,,:Nlibcpp.a:.o=.c} main.c ${PROG}-checksum.c
# XXX
NOMAN= 1
CPPFLAGS+= -I${DIST}/gcc/cp
CPPFLAGS.prefix.c+= -DPREFIX=\"/usr\"
.include "../Makefile.backend"
.include "../Makefile.backtrace"
.include "../Makefile.common"
.include "../Makefile.common-target"
.include "../Makefile.libcpp"
.include "../Makefile.libdecnumber"
.include "../Makefile.libiberty"
CHECKSUM_OBJS= ${LIBBACKTRACEOBJ}/libbacktrace.a \
${COMMONOBJ}/libcommon.a \
${COMMONTARGETOBJ}/libcommon-target.a \
${LIBCPPOBJ}/libcpp.a \
${LIBDECNUMBEROBJ}/libdecnumber.a \
${LIBIBERTYOBJ}/libiberty.a \
${G_CXX_OBJS:S,c-family/,,:S,c/,,} \
checksum-options
.include "../Makefile.checksum"
# XXX check this out
# LDFLAGS+= -rdynamic
## VER_CPPFLAGS from Makefile.inc
#CPPFLAGS.c-cppbuiltin.c= ${VER_CPPFLAGS}
#c-cppbuiltin.c: ${GCCARCH}/defs.mk
# YUCK. but see timevar.h:POP_TIMEVAR_AND_RETURN
CFLAGS+= -Wno-error # not good enough: -Wno-return-type
COPTS+= -Wno-stack-protector
.if !defined(__MINIX)
LDADD+= ${LIBMPC} ${LIBMPFR} ${LIBGMP} -lintl -lz -lm
DPADD+= ${LIBMPC} ${LIBMPFR} ${LIBGMP} ${LIBINTL} ${LIBZ} ${LIBM}
.else
LDADD+= ${LIBMPC} ${LIBMPFR} ${LIBGMP} -lz -lm
DPADD+= ${LIBMPC} ${LIBMPFR} ${LIBGMP} ${LIBZ} ${LIBM}
.endif # !defined(__MINIX)
.PATH: ${DIST}/gcc/cp ${DIST}/gcc ${DIST}/gcc/c-family ${DIST}/gcc/config
.PATH: ${G_out_file:H}