1# $FreeBSD: head/usr.bin/awk/Makefile 94266 2002-04-09 07:03:32Z ru $
| 1# $FreeBSD: head/usr.bin/awk/Makefile 94267 2002-04-09 07:05:24Z ru $
|
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 ytab.h 8 9CFLAGS+= -I. -I${AWKSRC} 10 11DPADD= ${LIBM} 12LDADD= -lm 13 14.if ${MACHINE_ARCH} == "sparc64"
| 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 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
| 15LINKS= ${BINDIR}/nawk ${BINDIR}/awk 16MLINKS= nawk.1 awk.1
|
17.endif 18
| 17.endif 18
|
19CLEANFILES+= maketab proctab.c ytab.h
| 19CLEANFILES= maketab proctab.c ytab.h
|
20
| 20
|
21ytab.h: awkgram.h 22 ln -sf ${.ALLSRC} ${.TARGET}
| 21ytab.h: awkgram.h 22 ln -fs ${.ALLSRC} ${.TARGET}
|
23 24proctab.c: maketab 25 ./maketab > proctab.c 26 27build-tools: maketab 28maketab: ytab.h ${AWKSRC}/maketab.c 29
| 23 24proctab.c: maketab 25 ./maketab > proctab.c 26 27build-tools: maketab 28maketab: ytab.h ${AWKSRC}/maketab.c 29
|
30CLEANFILES+= nawk.1
| 30CLEANFILES+= nawk.1
|
31nawk.1: awk.1
| 31nawk.1: awk.1
|
32 ln -sf ${.ALLSRC} ${.TARGET}
| 32 ln -fs ${.ALLSRC} ${.TARGET}
|
33 34.include <bsd.prog.mk>
| 33 34.include <bsd.prog.mk>
|