NetBSD/gnu/usr.bin/bc/Makefile
phil ead96d53e2 Revert scan.l back to be identical to FSF master source. Add rules
to Makefile to do proper build with original FSF source.
1997-05-14 03:58:13 +00:00

19 lines
365 B
Makefile

# $NetBSD: Makefile,v 1.15 1997/05/14 03:58:13 phil Exp $
PROG= bc
CFLAGS+=-D_POSIX_SOURCE -I. -I${.CURDIR}
LFLAGS+=-I8
SRCS= bc.y execute.c getopt.c getopt1.c global.c load.c main.c number.c \
scan.l storage.c util.c
LDADD+= -ll
DPADD+= ${LIBL}
CLEANFILES+= bc.h
bc.c bc.h: bc.y
${YACC} -d ${.ALLSRC}
mv y.tab.c bc.c
mv y.tab.h bc.h
.include <bsd.prog.mk>