1997-10-24 02:25:06 +04:00
|
|
|
# $NetBSD: Makefile,v 1.16 1997/10/23 22:25:06 christos Exp $
|
1993-04-10 19:51:24 +04:00
|
|
|
|
|
|
|
PROG= bc
|
1997-04-29 04:28:49 +04:00
|
|
|
CFLAGS+=-D_POSIX_SOURCE -I. -I${.CURDIR}
|
1994-03-11 23:25:06 +03:00
|
|
|
LFLAGS+=-I8
|
1997-05-09 18:07:03 +04:00
|
|
|
SRCS= bc.y execute.c getopt.c getopt1.c global.c load.c main.c number.c \
|
|
|
|
scan.l storage.c util.c
|
1997-10-24 02:25:06 +04:00
|
|
|
LDADD+= -ll -ledit -ltermcap
|
1994-12-02 03:43:14 +03:00
|
|
|
DPADD+= ${LIBL}
|
1993-10-07 10:23:44 +03:00
|
|
|
|
1997-05-14 07:58:13 +04:00
|
|
|
CLEANFILES+= bc.h
|
|
|
|
|
|
|
|
bc.c bc.h: bc.y
|
|
|
|
${YACC} -d ${.ALLSRC}
|
|
|
|
mv y.tab.c bc.c
|
|
|
|
mv y.tab.h bc.h
|
1997-05-11 19:18:13 +04:00
|
|
|
|
1993-04-10 19:51:24 +04:00
|
|
|
.include <bsd.prog.mk>
|