0aba719980
dist .y and .c files reversed. 1. Move the .y.c and other assorted implicit rule overrides out of Makefile.inc and into local Makefile's. The system Makefile (bsd.sys.mk) sets up .l.c and .y.c rules so unless these come after all inclusions they just get ignored. 2. Add @true as the command for any of the rule overrides. Otherwise make still bails complaining about not knowing how to build the requisite .c or .h file. This obviously wasn't tested before as it couldn't have worked as-is.
22 lines
546 B
Makefile
22 lines
546 B
Makefile
# $NetBSD: Makefile.backend,v 1.2 2001/11/26 18:19:48 jmc Exp $
|
|
|
|
MKMAN= no
|
|
BINDIR= /usr/libexec
|
|
|
|
CPPFLAGS+= -I${GCCARCH} -I${BACKENDOBJ} \
|
|
${G_ALL_CFLAGS:M-D*} ${G_INCLUDES:M-I*:N-I.*}
|
|
|
|
.include <bsd.own.mk>
|
|
|
|
LIBIBERTYOBJ!= cd ${.CURDIR}/../../../lib/libiberty && ${PRINTOBJDIR}
|
|
BACKENDOBJ!= cd ${.CURDIR}/../backend && ${PRINTOBJDIR}
|
|
|
|
DPADD= ${BACKENDOBJ}/libbackend.a ${LIBIBERTYOBJ}/libiberty.a
|
|
LDADD= -L${BACKENDOBJ} -lbackend -L${LIBIBERTYOBJ} -liberty
|
|
|
|
.include <bsd.prog.mk>
|
|
|
|
# Don't auto-frob .y or .l files.
|
|
.l.c .y.c .y.h:
|
|
@true
|