freebsd-dev/gnu/usr.bin/bc/Makefile

25 lines
657 B
Makefile
Raw Normal View History

1999-08-27 23:37:10 +00:00
# $FreeBSD$
1996-11-04 03:55:26 +00:00
.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
1998-04-30 08:14:04 +00:00
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
1993-06-19 00:26:18 +00:00
.include <bsd.prog.mk>