Makefile revision 91760
185724Sobrien# $FreeBSD: head/usr.bin/awk/Makefile 91760 2002-03-06 18:37:26Z obrien $ 285724Sobrien 385724SobrienAWKSRC= ${.CURDIR}/../../contrib/one-true-awk 485724Sobrien.PATH: ${AWKSRC} 585724Sobrien 691707SobrienPROG= nawk 785724SobrienSRCS= b.c lex.c lib.c main.c parse.c proctab.c run.c tran.c ytab.c ytab.h 885724Sobrien 985724SobrienCFLAGS+= -I. -I${AWKSRC} 1085724Sobrien 1191760SobrienDPADD= ${LIBM} 1291760SobrienLDADD= -lm 1385724Sobrien 1491758Sobrien.if ${MACHINE_ARCH} == "sparc64" 1591758SobrienLINKS+= ${BINDIR}/nawk ${BINDIR}/awk 1691758SobrienMLINKS+= nawk.1 awk.1 1791758Sobrien.endif 1885724Sobrien 1985724SobrienCLEANFILES+= maketab proctab.c ytab.c ytab.h 2085724Sobrien 2185724Sobrien.ORDER: ytab.c ytab.h proctab.c 2285724Sobrienytab.c ytab.h: ${AWKSRC}/awkgram.y 2385724Sobrien @echo Expect 42 reduce/shift conflicts and 83 reduce/reduce conflicts 2485724Sobrien ${YACC} -d ${AWKSRC}/awkgram.y 2585724Sobrien mv -f y.tab.c ytab.c 2685724Sobrien mv -f y.tab.h ytab.h 2785724Sobrien 2885724Sobrienproctab.c: maketab 2985724Sobrien ./maketab > proctab.c 3085724Sobrien 3185724Sobrienbuild-tools: maketab 3285724Sobrienmaketab: ytab.h ${AWKSRC}/maketab.c 3385724Sobrien ${CC} ${CFLAGS} ${AWKSRC}/maketab.c -o maketab 3485724Sobrien 3591760SobrienCLEANFILES+= nawk.1 3691707Sobriennawk.1: awk.1 3791707Sobrien ln -sf ${.ALLSRC} ${.TARGET} 3891707Sobrien 3985724Sobrien.include <bsd.prog.mk> 40