Annotation of src/share/mk/bsd.sys.mk, Revision 1.9
1.9 ! deraadt 1: # $OpenBSD: bsd.sys.mk,v 1.8 2000/07/06 23:12:41 millert 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.9 ! deraadt 25: .l.ln:
! 26: ${LEX.l} ${.IMPSRC}
! 27: mv lex.yy.c ${.TARGET:R}.c
! 28: ${LINT} ${LINTFLAGS} ${LDFLAGS:M-L*} -i ${.TARGET:R}.c
! 29: rm -f ${.TARGET:R}.c
1.1 deraadt 30:
31: # Yacc
32: .y:
33: ${YACC.y} -b ${.TARGET:R} ${.IMPSRC}
34: ${LINK.c} -o ${.TARGET} ${.TARGET:R}.tab.c ${LDLIBS}
35: rm -f ${.TARGET:R}.tab.c
36: .y.c:
37: ${YACC.y} -b ${.TARGET:R} ${.IMPSRC}
38: mv ${.TARGET:R}.tab.c ${.TARGET}
39: .y.o:
40: ${YACC.y} -b ${.TARGET:R} ${.IMPSRC}
41: ${COMPILE.c} -o ${.TARGET} ${.TARGET:R}.tab.c
42: rm -f ${.TARGET:R}.tab.c
1.9 ! deraadt 43: .y.ln:
! 44: ${YACC.y} ${.IMPSRC}
! 45: mv y.tab.c ${.TARGET:R}.c
! 46: ${LINT} ${LINTFLAGS} ${LDFLAGS:M-L*} ${.TARGET:R}.c
! 47: rm -f ${.TARGET:R}.c
1.1 deraadt 48: .endif