They are used as build tools for cross compilation. This import does not include the full distribution. Rather, it sports a shell script that will download and patch the distribution when compiled from /usr/src/tools (yet to be committed). This part of the source tree is only necessary for cross compilation. It's not used or compiled for native builds.
29 lines
732 B
Makefile
29 lines
732 B
Makefile
# $NetBSD: Makefile.frontend,v 1.2 2011/06/29 02:14:28 mrg Exp $
|
|
|
|
BINDIR= /usr/bin
|
|
|
|
CPPFLAGS+= -I${GCCARCH} -I${FRONTENDOBJ} \
|
|
${G_ALL_CFLAGS:M-D*} ${G_INCLUDES:M-I*:N-I.*}
|
|
|
|
.include <bsd.own.mk>
|
|
|
|
DPADD= ${FRONTENDOBJ}/libfrontend.a ${LIBIBERTYOBJ}/libiberty.a
|
|
LDADD= -L${FRONTENDOBJ} -lfrontend -L${LIBIBERTYOBJ} -liberty
|
|
|
|
.include <bsd.prog.mk>
|
|
|
|
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
|