Annotation of src/share/mk/bsd.sys.mk, Revision 1.11
1.11 ! espie 1: # $OpenBSD: bsd.sys.mk,v 1.10 2012/04/08 15:56:28 jsg 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.8 millert 10: CXXFLAGS+= -idirafter ${DESTDIR}/usr/include/g++
1.6 niklas 11: .endif
1.1 deraadt 12:
13: .if defined(PARALLEL)
14: # Lex
15: .l:
16: ${LEX.l} -o${.TARGET:R}.yy.c ${.IMPSRC}
17: ${LINK.c} -o ${.TARGET} ${.TARGET:R}.yy.c ${LDLIBS} -ll
18: rm -f ${.TARGET:R}.yy.c
19: .l.c:
20: ${LEX.l} -o${.TARGET} ${.IMPSRC}
21: .l.o:
22: ${LEX.l} -o${.TARGET:R}.yy.c ${.IMPSRC}
23: ${COMPILE.c} -o ${.TARGET} ${.TARGET:R}.yy.c
24: rm -f ${.TARGET:R}.yy.c
1.11 ! espie 25: if test -f ${.TARGET:R}.d; then sed -i -e 's,${.TARGET:R}.yy.c,${.IMPSRC},' ${.TARGET:R}.d; fi
1.1 deraadt 26:
27: # Yacc
28: .y:
29: ${YACC.y} -b ${.TARGET:R} ${.IMPSRC}
30: ${LINK.c} -o ${.TARGET} ${.TARGET:R}.tab.c ${LDLIBS}
31: rm -f ${.TARGET:R}.tab.c
32: .y.c:
33: ${YACC.y} -b ${.TARGET:R} ${.IMPSRC}
34: mv ${.TARGET:R}.tab.c ${.TARGET}
35: .y.o:
36: ${YACC.y} -b ${.TARGET:R} ${.IMPSRC}
37: ${COMPILE.c} -o ${.TARGET} ${.TARGET:R}.tab.c
38: rm -f ${.TARGET:R}.tab.c
1.11 ! espie 39: if test -f ${.TARGET:R}.d; then sed -i -e 's,${.TARGET:R}.tab.c,${.IMPSRC},' ${.TARGET:R}.d; fi
1.1 deraadt 40: .endif