Annotation of src/share/mk/bsd.sys.mk, Revision 1.7
1.7 ! deraadt 1: # $OpenBSD: bsd.sys.mk,v 1.6 1996/05/13 12:44:44 niklas Exp $
1.5 mickey 2: # $NetBSD: bsd.sys.mk,v 1.2 1995/12/13 01:25:07 cgd Exp $
1.6 niklas 3: #
4: # Overrides used for OpenBSD source tree builds.
1.2 deraadt 5:
1.3 deraadt 6: #CFLAGS+= -Werror
1.7 ! deraadt 7:
1.6 niklas 8: .if defined(DESTDIR)
1.7 ! deraadt 9: CPPFLAGS+= -nostdinc -idirafter ${DESTDIR}/usr/include
1.6 niklas 10: .endif
1.1 deraadt 11:
12: .if defined(PARALLEL)
13: # Lex
14: .l:
15: ${LEX.l} -o${.TARGET:R}.yy.c ${.IMPSRC}
16: ${LINK.c} -o ${.TARGET} ${.TARGET:R}.yy.c ${LDLIBS} -ll
17: rm -f ${.TARGET:R}.yy.c
18: .l.c:
19: ${LEX.l} -o${.TARGET} ${.IMPSRC}
20: .l.o:
21: ${LEX.l} -o${.TARGET:R}.yy.c ${.IMPSRC}
22: ${COMPILE.c} -o ${.TARGET} ${.TARGET:R}.yy.c
23: rm -f ${.TARGET:R}.yy.c
24:
25: # Yacc
26: .y:
27: ${YACC.y} -b ${.TARGET:R} ${.IMPSRC}
28: ${LINK.c} -o ${.TARGET} ${.TARGET:R}.tab.c ${LDLIBS}
29: rm -f ${.TARGET:R}.tab.c
30: .y.c:
31: ${YACC.y} -b ${.TARGET:R} ${.IMPSRC}
32: mv ${.TARGET:R}.tab.c ${.TARGET}
33: .y.o:
34: ${YACC.y} -b ${.TARGET:R} ${.IMPSRC}
35: ${COMPILE.c} -o ${.TARGET} ${.TARGET:R}.tab.c
36: rm -f ${.TARGET:R}.tab.c
37: .endif