1# $FreeBSD: head/usr.bin/awk/Makefile 93003 2002-03-23 04:49:43Z obrien $
| 1# $FreeBSD: head/usr.bin/awk/Makefile 94266 2002-04-09 07:03:32Z ru $
|
2 3AWKSRC= ${.CURDIR}/../../contrib/one-true-awk 4.PATH: ${AWKSRC} 5 6PROG= nawk
| 2 3AWKSRC= ${.CURDIR}/../../contrib/one-true-awk 4.PATH: ${AWKSRC} 5 6PROG= nawk
|
7SRCS= awkgram.y b.c lex.c lib.c main.c parse.c proctab.c run.c tran.c
| 7SRCS= awkgram.y b.c lex.c lib.c main.c parse.c proctab.c run.c tran.c ytab.h
|
8 9CFLAGS+= -I. -I${AWKSRC} 10 11DPADD= ${LIBM} 12LDADD= -lm 13 14.if ${MACHINE_ARCH} == "sparc64" 15LINKS+= ${BINDIR}/nawk ${BINDIR}/awk 16MLINKS+= nawk.1 awk.1 17.endif 18
| 8 9CFLAGS+= -I. -I${AWKSRC} 10 11DPADD= ${LIBM} 12LDADD= -lm 13 14.if ${MACHINE_ARCH} == "sparc64" 15LINKS+= ${BINDIR}/nawk ${BINDIR}/awk 16MLINKS+= nawk.1 awk.1 17.endif 18
|
19CLEANFILES+= maketab proctab.c ytab.c ytab.h
| 19CLEANFILES+= maketab proctab.c ytab.h
|
20 21ytab.h: awkgram.h 22 ln -sf ${.ALLSRC} ${.TARGET} 23 24proctab.c: maketab 25 ./maketab > proctab.c 26 27build-tools: maketab 28maketab: ytab.h ${AWKSRC}/maketab.c
| 20 21ytab.h: awkgram.h 22 ln -sf ${.ALLSRC} ${.TARGET} 23 24proctab.c: maketab 25 ./maketab > proctab.c 26 27build-tools: maketab 28maketab: ytab.h ${AWKSRC}/maketab.c
|
29 ${CC} ${CFLAGS} ${AWKSRC}/maketab.c -o maketab
| |
30 31CLEANFILES+= nawk.1 32nawk.1: awk.1 33 ln -sf ${.ALLSRC} ${.TARGET} 34 35.include <bsd.prog.mk>
| 29 30CLEANFILES+= nawk.1 31nawk.1: awk.1 32 ln -sf ${.ALLSRC} ${.TARGET} 33 34.include <bsd.prog.mk>
|