summaryrefslogtreecommitdiffstats
path: root/gnu/usr.bin/bc/Makefile
blob: a8c3af4647aba46fe1b0a3824fe7faddfcd3cb6f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# $FreeBSD$

.PATH:	${.CURDIR}/../../../contrib/bc/bc \
	${.CURDIR}/../../../contrib/bc/lib \
	${.CURDIR}/../../../contrib/bc/doc

PROG=	bc
SRCS=	bc.y execute.c global.c load.c main.c scan.l storage.c util.c \
	number.c getopt.c getopt1.c
CFLAGS+=-I. -I${.CURDIR} -I${.CURDIR}/../../../contrib/bc/h -DHAVE_CONFIG_H
DPADD=	${LIBREADLINE} ${LIBTERMCAP}
LDADD=	-lreadline -ltermcap

EXAMPLES=	ckbook.b pi.b primes.b twins.b
EXAMPDIR=	/usr/share/examples/bc

beforeinstall:
.for file in ${EXAMPLES}
	cd ${.CURDIR}/../../../contrib/bc/Examples ; \
	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 ${file} \
		${DESTDIR}${EXAMPDIR}
.endfor

.include <bsd.prog.mk>
OpenPOWER on IntegriCloud