1# $FreeBSD: head/usr.bin/awk/Makefile 172962 2007-10-25 12:43:22Z obrien $
| 1# $FreeBSD: head/usr.bin/awk/Makefile 176641 2008-02-28 16:41:51Z obrien $
|
2 3AWKSRC= ${.CURDIR}/../../contrib/one-true-awk 4.PATH: ${AWKSRC} 5
| 2 3AWKSRC= ${.CURDIR}/../../contrib/one-true-awk 4.PATH: ${AWKSRC} 5
|
6PROG= nawk
| 6PROG= awk
|
7SRCS= awkgram.y b.c lex.c lib.c main.c parse.c proctab.c run.c tran.c ytab.h 8 9CFLAGS+= -DHAS_ISBLANK -I. -I${AWKSRC} 10 11DPADD= ${LIBM} 12LDADD= -lm 13
| 7SRCS= awkgram.y b.c lex.c lib.c main.c parse.c proctab.c run.c tran.c ytab.h 8 9CFLAGS+= -DHAS_ISBLANK -I. -I${AWKSRC} 10 11DPADD= ${LIBM} 12LDADD= -lm 13
|
14LINKS= ${BINDIR}/nawk ${BINDIR}/awk 15MLINKS= nawk.1 awk.1
| 14LINKS= ${BINDIR}/awk ${BINDIR}/nawk 15MLINKS= awk.1 nawk.1
|
16 17CLEANFILES= maketab proctab.c ytab.h 18 19ytab.h: awkgram.h 20 ln -sf ${.ALLSRC} ${.TARGET} 21 22proctab.c: maketab 23 ./maketab > proctab.c 24 25build-tools: maketab 26maketab: ytab.h ${AWKSRC}/maketab.c 27
| 16 17CLEANFILES= maketab proctab.c ytab.h 18 19ytab.h: awkgram.h 20 ln -sf ${.ALLSRC} ${.TARGET} 21 22proctab.c: maketab 23 ./maketab > proctab.c 24 25build-tools: maketab 26maketab: ytab.h ${AWKSRC}/maketab.c 27
|
28CLEANFILES+= nawk.1 29nawk.1: awk.1 30 cat ${.ALLSRC} > ${.TARGET} 31
| |
32.for f in b.c main.c run.c 33${f}: ${AWKSRC}/${f} ${.CURDIR}/${f}.diff 34 patch -s -b .orig -o ${.TARGET} < ${.CURDIR}/${f}.diff ${AWKSRC}/${f} 35CLEANFILES+= ${f} 36.endfor 37 38.include <bsd.prog.mk>
| 28.for f in b.c main.c run.c 29${f}: ${AWKSRC}/${f} ${.CURDIR}/${f}.diff 30 patch -s -b .orig -o ${.TARGET} < ${.CURDIR}/${f}.diff ${AWKSRC}/${f} 31CLEANFILES+= ${f} 32.endfor 33 34.include <bsd.prog.mk>
|