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:
bde 1998-05-04 16:22:30 +00:00
parent eb3a97224d
commit 4a27e271a6

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>