Fixed races in `make -jN' using new yacc rules.

Fixed slightly wrong order of -I's in CFLAGS.

FIxed the usual style bugs in DPADD and LDADD.
This commit is contained in:
Bruce Evans 1998-05-04 16:22:30 +00:00
parent 225e2a04f3
commit badaccf0f2
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=35691

View File

@ -1,28 +1,15 @@
# $Id: Makefile,v 1.12 1998/05/01 10:01:00 andreas Exp $
# $Id: Makefile,v 1.13 1998/05/01 19:13:41 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 \
SRCS= bc.y execute.c global.c load.c main.c scan.l 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 -DHAVE_CONFIG_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
CFLAGS+=-I. -I${.CURDIR} -I${.CURDIR}/../../../contrib/bc/h -DHAVE_CONFIG_H
DPADD= ${LIBREADLINE} ${LIBTERMCAP}
LDADD= -lreadline -ltermcap
.include <bsd.prog.mk>