NetBSD/external/gpl3/gcc.old/usr.bin/Makefile.frontend
2015-09-23 03:39:07 +00:00

46 lines
1021 B
Makefile

# $NetBSD: Makefile.frontend,v 1.3 2015/09/23 03:39:30 mrg Exp $
BINDIR= /usr/bin
CPPFLAGS+= -I${GCCARCH} -I${FRONTENDOBJ} \
${G_ALL_CFLAGS:M-D*} ${G_INCLUDES:M-I*:N-I.*} \
-DIN_GCC_FRONTEND
NOCTF= # defined
.include <bsd.own.mk>
DPADD+= ${FRONTENDOBJ}/libfrontend.a
LDADD+= -L${FRONTENDOBJ} -lfrontend
.include "../Makefile.common"
.include "../Makefile.common-target"
.include "../Makefile.libcpp"
.include "../Makefile.backtrace"
.include "../Makefile.libiberty"
.include "../Makefile.libdecnumber"
HOSTPROG_CXX= 1
.include <bsd.prog.mk>
# Force using C++ for this
HOST_CC:= ${HOST_CXX}
CC:= ${CXX}
CFLAGS:= ${CXXFLAGS}
gcc-vers.texi:
(echo "@set version-GCC $(BASEVER)"; \
if [ "$(DEVPHASE)" = "experimental" ]; then \
echo "@set DEVELOPMENT"; \
else \
echo "@clear DEVELOPMENT"; \
fi; \
echo "@set srcdir $(DIST)/gcc"; \
if [ -n "$(PKGVERSION)" ]; then \
echo "@set VERSION_PACKAGE $(PKGVERSION)"; \
fi; \
echo "@set BUGURL $(BUGURL)"; \
) > ${.TARGET}
CLEANFILES+= gcc-vers.texi