diff options
author | Bruce Evans <bde@FreeBSD.org> | 1995-10-21 12:46:02 +0000 |
---|---|---|
committer | Bruce Evans <bde@FreeBSD.org> | 1995-10-21 12:46:02 +0000 |
commit | a9076ea0bcc7ced5f9d9b6d99d22dcbf7aa047fe (patch) | |
tree | 2990a190303851f1d883ad2b4f9fae315865aa80 /share/mk | |
parent | ee911e545607a029a8a76095714db82795ef1601 (diff) | |
download | src-a9076ea0bcc7ced5f9d9b6d99d22dcbf7aa047fe.tar.gz src-a9076ea0bcc7ced5f9d9b6d99d22dcbf7aa047fe.zip |
Notes
Diffstat (limited to 'share/mk')
-rw-r--r-- | share/mk/sys.mk | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/share/mk/sys.mk b/share/mk/sys.mk index 4143c90c5969..2718ced8e3fe 100644 --- a/share/mk/sys.mk +++ b/share/mk/sys.mk @@ -1,9 +1,9 @@ # from: @(#)sys.mk 8.2 (Berkeley) 3/21/94 -# $Id: sys.mk,v 1.9 1994/12/28 03:51:03 ache Exp $ +# $Id: sys.mk,v 1.10 1995/08/11 11:47:30 davidg Exp $ unix ?= We run FreeBSD, not UNIX. -.SUFFIXES: .out .a .ln .o .c .cc .cxx .C .F .f .e .r .y .l .S .s .cl .p .h +.SUFFIXES: .out .a .ln .o .c .cc .cxx .C .F .f .e .r .y .l .S .s .cl .p .h .sh .LIBS: .a @@ -69,10 +69,12 @@ SHELL ?= sh YACC ?= yacc YFLAGS ?= -d -# This rule currently causes both make from 1.x and 2.x to have problems, -# and is not being used so disable it for now. -#.c: -# ${CC} ${CFLAGS} ${.IMPSRC} -o ${.TARGET} +.c: + ${CC} ${CFLAGS} ${LDFLAGS} ${.IMPSRC} ${LDLIBS} -o ${.TARGET} + +.sh: + cp -p ${.IMPSRC} ${.TARGET} + chmod a+x ${.TARGET} .c.o: ${CC} ${CFLAGS} -c ${.IMPSRC} @@ -111,21 +113,21 @@ YFLAGS ?= -d mv lex.yy.c ${.TARGET} .s.out .c.out .o.out: - ${CC} ${CFLAGS} ${.IMPSRC} ${LDLIBS} -o ${.TARGET} + ${CC} ${CFLAGS} ${LDFLAGS} ${.IMPSRC} ${LDLIBS} -o ${.TARGET} .f.out .F.out .r.out .e.out: - ${FC} ${EFLAGS} ${RFLAGS} ${FFLAGS} ${.IMPSRC} \ + ${FC} ${EFLAGS} ${RFLAGS} ${FFLAGS} ${LDFLAGS} ${.IMPSRC} \ ${LDLIBS} -o ${.TARGET} rm -f ${.PREFIX}.o .y.out: ${YACC} ${YFLAGS} ${.IMPSRC} - ${CC} ${CFLAGS} y.tab.c ${LDLIBS} -ly -o ${.TARGET} + ${CC} ${CFLAGS} ${LDFLAGS} y.tab.c ${LDLIBS} -ly -o ${.TARGET} rm -f y.tab.c .l.out: ${LEX} ${LFLAGS} ${.IMPSRC} - ${CC} ${CFLAGS} lex.yy.c ${LDLIBS} -ll -o ${.TARGET} + ${CC} ${CFLAGS} ${LDFLAGS} lex.yy.c ${LDLIBS} -ll -o ${.TARGET} rm -f lex.yy.c .include <bsd.own.mk> |