1 # sys.mk required by bmake
3 .SUFFIXES: .out .o .c .cc .cpp .cxx .C .y .l .S .s .sh
7 .if "${.MAKE.OS.NAME}" == "Darwin"
25 cp -p ${.IMPSRC} ${.TARGET}
29 ${CC} ${_${.IMPSRC:T}_FLAGS} ${CFLAGS} ${LDFLAGS} ${.IMPSRC} ${LDLIBS} -o ${.TARGET}
32 ${CC} ${_${.IMPSRC:T}_FLAGS} ${CFLAGS} -c ${.IMPSRC}
35 ${CXX} ${_${.IMPSRC:T}_FLAGS} ${CXXFLAGS} ${LDFLAGS} ${.IMPSRC} ${LDLIBS} -o ${.TARGET}
37 .cc.o .cpp.o .cxx.o .C.o:
38 ${CXX} ${_${.IMPSRC:T}_FLAGS} ${CXXFLAGS} -c ${.IMPSRC}
41 ${CC} ${_${.IMPSRC:T}_FLAGS} ${CFLAGS} -c ${.IMPSRC}
44 ${AS} ${_${.IMPSRC:T}_FLAGS} ${AFLAGS} -o ${.TARGET} ${.IMPSRC}
48 ${YACC:Uyacc -d} ${YFLAGS} ${.IMPSRC}
49 ${CC} ${CFLAGS} -c y.tab.c -o ${.TARGET}
53 ${LEX} -t ${LFLAGS} ${.IMPSRC} > ${.PREFIX}.tmp.c
54 ${CC} ${CFLAGS} -c ${.PREFIX}.tmp.c -o ${.TARGET}
55 rm -f ${.PREFIX}.tmp.c
59 ${YACC} ${YFLAGS} ${.IMPSRC}
63 ${LEX} -t ${LFLAGS} ${.IMPSRC} > ${.TARGET}
66 ${CC} ${_${.IMPSRC:T}_FLAGS} ${CFLAGS} ${LDFLAGS} ${.IMPSRC} ${LDLIBS} -o ${.TARGET}
70 ${YACC:Uyacc -d} ${YFLAGS} ${.IMPSRC}
71 ${CC} ${CFLAGS} ${LDFLAGS} y.tab.c ${LDLIBS} -ly -o ${.TARGET}
75 ${LEX} -t ${LFLAGS} ${.IMPSRC} > ${.PREFIX}.tmp.c
76 ${CC} ${CFLAGS} ${LDFLAGS} ${.PREFIX}.tmp.c ${LDLIBS} -ll -o ${.TARGET}
77 rm -f ${.PREFIX}.tmp.c
79 .if exists(/etc/make.conf)
80 .include "/etc/make.conf"
83 # Tell bmake to expand -V VAR by default
84 .MAKE.EXPAND_VARIABLES?= yes