
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
59 lines
1.8 KiB
Makefile
59 lines
1.8 KiB
Makefile
# $NetBSD: Makefile,v 1.9 2014/05/31 22:55:17 mrg Exp $
|
|
|
|
PROG= cc1
|
|
SRCS= ${G_C_OBJS:S,c-family/,,:S,c/,,:Nlibcpp.a:.o=.c} main.c ${PROG}-checksum.c
|
|
CPPFLAGS+= -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= ${BACKENDOBJ}/libbackend.a \
|
|
main.o \
|
|
${LIBBACKTRACEOBJ}/libbacktrace.a \
|
|
${COMMONOBJ}/libcommon.a \
|
|
${COMMONTARGETOBJ}/libcommon-target.a \
|
|
${LIBCPPOBJ}/libcpp.a \
|
|
${LIBDECNUMBEROBJ}/libdecnumber.a \
|
|
${LIBIBERTYOBJ}/libiberty.a \
|
|
${G_C_OBJS:S,c-family/,,:S,c/,,} \
|
|
checksum-options
|
|
|
|
.include "../Makefile.checksum"
|
|
|
|
# XXX check this out, probably need it for plugins?
|
|
# LDFLAGS+= -rdynamic
|
|
|
|
# VER_CPPFLAGS from Makefile.inc
|
|
CPPFLAGS.c-cppbuiltin.c= ${VER_CPPFLAGS}
|
|
c-cppbuiltin.c: ${GCCARCH}/defs.mk
|
|
|
|
COPTS.c-ada-spec.c= -Wno-stack-protector
|
|
COPTS.c-aux-info.c= -Wno-stack-protector
|
|
COPTS.c-common.c= -Wno-stack-protector
|
|
COPTS.c-cppbuiltin.c= -Wno-stack-protector
|
|
COPTS.c-format.c= -Wno-stack-protector
|
|
COPTS.c-format.h= -Wno-stack-protector
|
|
COPTS.c-lex.c= -Wno-stack-protector
|
|
COPTS.c-opts.c= -Wno-stack-protector
|
|
COPTS.c-ppoutput.c= -Wno-stack-protector
|
|
COPTS.c-pragma.c= -Wno-stack-protector
|
|
COPTS.c-typeck.c= -Wno-stack-protector
|
|
|
|
CPPFLAGS.default-c.c+= -I${BACKENDOBJ}
|
|
|
|
.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 ${DIST}/gcc/c ${DIST}/gcc/c-family ${DIST}/gcc/config
|
|
.PATH: ${G_out_file:H}
|