NetBSD/gnu/usr.bin/bc/Makefile

20 lines
386 B
Makefile

# $NetBSD: Makefile,v 1.12 1997/05/09 07:50:07 mycroft Exp $
PROG= bc
CFLAGS+=-D_POSIX_SOURCE -I. -I${.CURDIR}
LFLAGS+=-I8
SRCS= bc.c bc.h scan.c util.c main.c number.c storage.c load.c execute.c \
global.c getopt.c getopt1.c
LDADD+= -ll
DPADD+= ${LIBL}
CLEANFILES+= bc.c scan.c 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>