freebsd-dev/gnu/usr.bin/bc/Makefile
Andreas Klemm 4072bad05c Style:
$Id$ should be preceded by a tab
Don't include ../Makefile.inc when it is not used explicitly
Use the normal amount of horizontal and vertical whitspace (1 tab/none)
Don't override the (correct) default for MAN1
Use the correct order for -I paths
Use config.h generated by `configure', don't use a huge CFLAGS statement
Enable useage of libreadline in config.h, configure didn't enable it itself.
1998-05-01 10:01:02 +00:00

29 lines
595 B
Makefile

# $Id: Makefile,v 1.11 1998/05/01 04:42:53 ache Exp $
.PATH: ${.CURDIR}/../../../contrib/bc/bc \
${.CURDIR}/../../../contrib/bc/lib \
${.CURDIR}/../../../contrib/bc/doc
PROG= bc
BCSRCS= execute.c global.c load.c main.c storage.c util.c \
number.c getopt.c getopt1.c
GENSRCS=bc.c scan.c
SRCS= ${GENSRCS} ${BCSRCS}
YACC= bison -y
CFLAGS+=-I${.CURDIR} -I. -I${.CURDIR}/../../../contrib/bc/h
bc.h: bc.c
mv y.tab.h bc.h
beforedepend: bc.h
scan.o: bc.h
CLEANFILES+= ${GENSRCS} y.tab.h bc.h
DPADD+= ${LIBREADLINE} ${LIBTERMCAP}
LDADD+= -lreadline -ltermcap
.include <bsd.prog.mk>