Makefile revision 94339
185724Sobrien# $FreeBSD: head/usr.bin/awk/Makefile 94339 2002-04-10 03:10:03Z obrien $ 285724Sobrien 385724SobrienAWKSRC= ${.CURDIR}/../../contrib/one-true-awk 485724Sobrien.PATH: ${AWKSRC} 585724Sobrien 691707SobrienPROG= nawk 794266SruSRCS= awkgram.y b.c lex.c lib.c main.c parse.c proctab.c run.c tran.c ytab.h 885724Sobrien 985724SobrienCFLAGS+= -I. -I${AWKSRC} 1085724Sobrien 1191760SobrienDPADD= ${LIBM} 1291760SobrienLDADD= -lm 1385724Sobrien 1491758Sobrien.if ${MACHINE_ARCH} == "sparc64" 1594267SruLINKS= ${BINDIR}/nawk ${BINDIR}/awk 1694267SruMLINKS= nawk.1 awk.1 1791758Sobrien.endif 1885724Sobrien 1994267SruCLEANFILES= maketab proctab.c ytab.h 2085724Sobrien 2194267Sruytab.h: awkgram.h 2294339Sobrien ln -sf ${.ALLSRC} ${.TARGET} 2385724Sobrien 2485724Sobrienproctab.c: maketab 2585724Sobrien ./maketab > proctab.c 2685724Sobrien 2785724Sobrienbuild-tools: maketab 2885724Sobrienmaketab: ytab.h ${AWKSRC}/maketab.c 2985724Sobrien 3094339SobrienCLEANFILES+= nawk.1 3191707Sobriennawk.1: awk.1 3294339Sobrien ln -sf ${.ALLSRC} ${.TARGET} 3391707Sobrien 3485724Sobrien.include <bsd.prog.mk> 35