diff options
author | grant <grant@pkgsrc.org> | 2004-11-27 14:42:28 +0000 |
---|---|---|
committer | grant <grant@pkgsrc.org> | 2004-11-27 14:42:28 +0000 |
commit | 71e80612c9a483d4186b402c41674b3d90b446b0 (patch) | |
tree | 35a09a5db320c7fea04291eccece9ce6878b7f43 /bootstrap | |
parent | 07a28edb6c47bce012ab0ce294eb4c9f8225bb60 (diff) | |
download | pkgsrc-71e80612c9a483d4186b402c41674b3d90b446b0.tar.gz |
ditch NetBSD-specific stuff, specifically -Werror which xlc doesn't
support.
Diffstat (limited to 'bootstrap')
-rw-r--r-- | bootstrap/mods/mk/Darwin.bsd.sys.mk | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/bootstrap/mods/mk/Darwin.bsd.sys.mk b/bootstrap/mods/mk/Darwin.bsd.sys.mk new file mode 100644 index 00000000000..09319cce9c7 --- /dev/null +++ b/bootstrap/mods/mk/Darwin.bsd.sys.mk @@ -0,0 +1,65 @@ +# $NetBSD: Darwin.bsd.sys.mk,v 1.1 2004/11/27 14:42:28 grant 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 |