summaryrefslogtreecommitdiff
path: root/gnu/usr.bin/bc/Makefile
blob: 7b95f562826e7c286b9c7b20790fc69870684c0f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#	$Id: Makefile,v 1.5 1993/10/07 07:23:44 cgd Exp $

PROG=	bc
CFLAGS+=-D_POSIX_SOURCE -I${.CURDIR}/obj -I${.CURDIR}
SRCS=	bc.c scan.c util.c main.c number.c storage.c load.c execute.c global.c

LDADD+=	-lgnumalloc
DPADD+=	/usr/lib/libgnumalloc.a

CLEANFILES+= bc.c scan.c y.tab.h

bc.c: bc.c.dist y.tab.h
	cp ${.CURDIR}/bc.c.dist bc.c
scan.c: scan.c.dist
	cp ${.CURDIR}/scan.c.dist scan.c
y.tab.h: y.tab.h.dist
	cp ${.CURDIR}/y.tab.h.dist y.tab.h

.include <bsd.prog.mk>