make sure Makefile.inc is included before Makefile.driver.

allows removing a depend hack and may also fix dtrace/ctf builds.
This commit is contained in:
mrg 2019-02-09 07:32:50 +00:00
parent 53a81a2f84
commit 7f3d4089fc

View File

@ -1,8 +1,11 @@
# $NetBSD: Makefile,v 1.10 2019/02/01 10:36:33 mrg Exp $
# $NetBSD: Makefile,v 1.11 2019/02/09 07:32:50 mrg Exp $
.include <bsd.init.mk>
PROG= cpp
SRCS= cppspec.c ${G_GCC_OBJS:.o=.c}
.include "../Makefile.driver"
.include "../Makefile.target-defines"
COPTS+= -Wno-stack-protector
@ -18,11 +21,8 @@ INFOFLAGS= -I${DIST}/gcc/doc -I${DIST}/gcc/doc/include -I.
LDADD+= -lintl
DPADD+= ${LIBINTL}
.include <bsd.own.mk>
ADD_FRONTEND_LIBRARY= no
.include "../Makefile.frontend"
.include "../Makefile.driver"
${SRCS}: ${GCCARCH}/defs.mk
@ -33,6 +33,3 @@ COPTS.gcc.c= -Wno-stack-protector
.PATH: ${DIST}/gcc ${DIST}/gcc/c-family ${DIST}/gcc/doc
cpp.info: gcc-vers.texi
# XXX - driver-i386.o isn't built otherwise
${PROG}: ${OBJS}