ARM EABI support is disabled by default and can be enabled by setting WITH_ARM_EABI when building, however only the kernel-toolchain target will work with this flag until the rest of the support is added.
46 lines
1.2 KiB
Makefile
46 lines
1.2 KiB
Makefile
# $FreeBSD$
|
|
|
|
NO_MAN=
|
|
.include <bsd.own.mk>
|
|
|
|
.include "../Makefile.inc"
|
|
|
|
.PATH: ${GCCDIR}/cp ${GCCDIR}
|
|
|
|
PROG= cc1plus
|
|
SRCS= cfns.h
|
|
SRCS+= main.c cp-lang.c c-opts.c call.c class.c cvt.c cxx-pretty-print.c \
|
|
decl.c decl2.c error.c except.c expr.c dump.c friend.c init.c lex.c \
|
|
mangle.c method.c name-lookup.c parser.c pt.c ptree.c repo.c rtti.c \
|
|
search.c semantics.c tree.c typeck.c typeck2.c optimize.c \
|
|
cp-objcp-common.c cp-gimplify.c tree-mudflap.c
|
|
|
|
BINDIR= /usr/libexec
|
|
.if ${MK_SHARED_TOOLCHAIN} == "no"
|
|
NO_SHARED?=yes
|
|
.endif
|
|
|
|
CFLAGS+= -I${GCCDIR}/cp -I.
|
|
|
|
OBJS+= ${PROG}-checksum.o
|
|
DPADD= ${LIBBACKEND} ${LIBCPP} ${LIBDECNUMBER} ${LIBIBERTY}
|
|
LDADD= ${LIBBACKEND} ${LIBCPP} ${LIBDECNUMBER} ${LIBIBERTY}
|
|
|
|
#-----------------------------------------------------------------------
|
|
# C++ parser
|
|
cfns.h: cfns.gperf
|
|
gperf -o -C -E -k '1-6,$$' -j1 -D -N 'libc_name_p' -L ANSI-C \
|
|
${.ALLSRC} > ${.TARGET}
|
|
CLEANFILES= cfns.h
|
|
|
|
DOBJS+= ${SRCS:N*.h:R:S/$/.o/g}
|
|
${PROG}-dummy: ${DOBJS}
|
|
${CC} ${CFLAGS} ${LDFLAGS} -o ${.TARGET} ${DOBJS} ${LDADD}
|
|
CLEANFILES+= ${PROG}-dummy
|
|
|
|
${PROG}-checksum.c: ${PROG}-dummy
|
|
../cc_tools/genchecksum ${PROG}-dummy > ${.TARGET}
|
|
CLEANFILES+= ${PROG}-checksum.c
|
|
|
|
.include <bsd.prog.mk>
|