49 lines
1.3 KiB
Makefile
49 lines
1.3 KiB
Makefile
# $NetBSD: Makefile,v 1.7 2014/03/05 21:37:02 tron 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 <bsd.own.mk>
|
|
|
|
.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}
|
|
|
|
# YUCK. but see timevar.h:POP_TIMEVAR_AND_RETURN
|
|
CFLAGS+= -Wno-error # not good enough: -Wno-return-type
|
|
COPTS+= -Wno-stack-protector
|
|
|
|
LDADD+= ${LIBMPC} ${LIBMPFR} ${LIBGMP} -lintl -lz -lm
|
|
DPADD+= ${LIBMPC} ${LIBMPFR} ${LIBGMP} ${LIBINTL} ${LIBZ} ${LIBM}
|
|
|
|
.PATH: ${DIST}/gcc/cp ${DIST}/gcc ${DIST}/gcc/c-family ${DIST}/gcc/config
|
|
.PATH: ${G_out_file:H}
|
|
|