diff options
author | jlam <jlam@pkgsrc.org> | 2006-07-14 23:13:00 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2006-07-14 23:13:00 +0000 |
commit | c71e325c0831ad52dd61638cb629f1a6e981b2e4 (patch) | |
tree | cb2a5752ca9c59c207af95b74e0862b27a809316 /pkgtools/bootstrap-mk-files/files/mods/Darwin.bsd.sys.mk | |
parent | cd740aac0111c9497f7e6f0bbd0fb9cfbd7ef3b3 (diff) | |
download | pkgsrc-c71e325c0831ad52dd61638cb629f1a6e981b2e4.tar.gz |
Import pkgtools/bootstrap-mk-files, which is the collection of bmake *.mk
files from the bootstrap kit. This package is used during bootstrap to
properly register the installed *.mk files.
The bootstrap bmake(1) utility uses some customised .mk files in order
to pre-define certain definitions and targets, which guide the build
process. This package provides those *.mk files for the bmake(1)
utility.
Diffstat (limited to 'pkgtools/bootstrap-mk-files/files/mods/Darwin.bsd.sys.mk')
-rw-r--r-- | pkgtools/bootstrap-mk-files/files/mods/Darwin.bsd.sys.mk | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/pkgtools/bootstrap-mk-files/files/mods/Darwin.bsd.sys.mk b/pkgtools/bootstrap-mk-files/files/mods/Darwin.bsd.sys.mk new file mode 100644 index 00000000000..49e2f5729e3 --- /dev/null +++ b/pkgtools/bootstrap-mk-files/files/mods/Darwin.bsd.sys.mk @@ -0,0 +1,65 @@ +# $NetBSD: Darwin.bsd.sys.mk,v 1.1.1.1 2006/07/14 23:13:01 jlam Exp $ + +#OBJCOPY?= objcopy +STRIP?= strip +CONFIG?= config +RPCGEN?= rpcgen +MKLOCALE?= mklocale + +.SUFFIXES: .m .o .ln .lo + +# Objective C +# (Defined here rather than in <sys.mk> because `.m' is not just +# used for Objective C source) +.m: + ${LINK.m} -o ${.TARGET} ${.IMPSRC} ${LDLIBS} +.m.o: + ${COMPILE.m} ${.IMPSRC} + +.if defined(PARALLEL) || defined(LPREFIX) +LPREFIX?=yy +LFLAGS+=-P${LPREFIX} +# Lex +.l: + ${LEX.l} -o${.TARGET:R}.${LPREFIX}.c ${.IMPSRC} + ${LINK.c} -o ${.TARGET} ${.TARGET:R}.${LPREFIX}.c ${LDLIBS} -ll + rm -f ${.TARGET:R}.${LPREFIX}.c +.l.c: + ${LEX.l} -o${.TARGET} ${.IMPSRC} +.l.o: + ${LEX.l} -o${.TARGET:R}.${LPREFIX}.c ${.IMPSRC} + ${COMPILE.c} -o ${.TARGET} ${.TARGET:R}.${LPREFIX}.c + rm -f ${.TARGET:R}.${LPREFIX}.c +.endif + +# Yacc +.if defined(YHEADER) || defined(YPREFIX) +.if defined(YPREFIX) +YFLAGS+=-p${YPREFIX} +.endif +.if defined(YHEADER) +YFLAGS+=-d +.endif +.y: + ${YACC.y} -b ${.TARGET:R} ${.IMPSRC} + ${LINK.c} -o ${.TARGET} ${.TARGET:R}.tab.c ${LDLIBS} + rm -f ${.TARGET:R}.tab.c ${.TARGET:R}.tab.h +.y.h: ${.TARGET:R}.c +.y.c: + ${YACC.y} -o ${.TARGET} ${.IMPSRC} +.y.o: + ${YACC.y} -b ${.TARGET:R} ${.IMPSRC} + ${COMPILE.c} -o ${.TARGET} ${.TARGET:R}.tab.c + rm -f ${.TARGET:R}.tab.c ${TARGET:R}.tab.h +.elif defined(PARALLEL) +.y: + ${YACC.y} -b ${.TARGET:R} ${.IMPSRC} + ${LINK.c} -o ${.TARGET} ${.TARGET:R}.tab.c ${LDLIBS} + rm -f ${.TARGET:R}.tab.c +.y.c: + ${YACC.y} -o ${.TARGET} ${.IMPSRC} +.y.o: + ${YACC.y} -b ${.TARGET:R} ${.IMPSRC} + ${COMPILE.c} -o ${.TARGET} ${.TARGET:R}.tab.c + rm -f ${.TARGET:R}.tab.c +.endif |