From cfa46708dfe25441b083b5892cc4cde474070f89 Mon Sep 17 00:00:00 2001 From: cgd Date: Tue, 4 May 1993 07:49:22 +0000 Subject: [PATCH] have compile use the scan.c, y.tab.h, and bc.c files as distributed, rather than lex/yaccing them ourselves. still don't know why these don't get flexed right... --- gnu/usr.bin/bc-1.02/Makefile | 11 +++++++++-- gnu/usr.bin/bc/Makefile | 11 +++++++++-- 2 files changed, 18 insertions(+), 4 deletions(-) diff --git a/gnu/usr.bin/bc-1.02/Makefile b/gnu/usr.bin/bc-1.02/Makefile index fc74bf75a2f9..f101f86af550 100644 --- a/gnu/usr.bin/bc-1.02/Makefile +++ b/gnu/usr.bin/bc-1.02/Makefile @@ -1,8 +1,15 @@ -# $Header: /cvsroot/src/gnu/usr.bin/bc-1.02/Attic/Makefile,v 1.2 1993/04/10 16:09:10 cgd Exp $ +# $Header: /cvsroot/src/gnu/usr.bin/bc-1.02/Attic/Makefile,v 1.3 1993/05/04 07:49:22 cgd Exp $ PROG= bc -CFLAGS+=-D_POSIX_SOURCE -I${.CURDIR}/obj +CFLAGS+=-D_POSIX_SOURCE -I${.CURDIR}/obj -I${.CURDIR} SRCS= bc.c scan.c util.c main.c number.c storage.c load.c execute.c global.c CLEANFILES+= bc.c scan.c y.tab.h +bc.c: bc.c.dist y.tab.h + cp ${.CURDIR}/bc.c.dist bc.c +scan.c: scan.c.dist + cp ${.CURDIR}/scan.c.dist scan.c +y.tab.h: y.tab.h.dist + cp ${.CURDIR}/y.tab.h.dist y.tab.h + .include diff --git a/gnu/usr.bin/bc/Makefile b/gnu/usr.bin/bc/Makefile index 166a748b17f3..8ac577129a5c 100644 --- a/gnu/usr.bin/bc/Makefile +++ b/gnu/usr.bin/bc/Makefile @@ -1,8 +1,15 @@ -# $Header: /cvsroot/src/gnu/usr.bin/bc/Attic/Makefile,v 1.2 1993/04/10 16:09:10 cgd Exp $ +# $Header: /cvsroot/src/gnu/usr.bin/bc/Attic/Makefile,v 1.3 1993/05/04 07:49:22 cgd Exp $ PROG= bc -CFLAGS+=-D_POSIX_SOURCE -I${.CURDIR}/obj +CFLAGS+=-D_POSIX_SOURCE -I${.CURDIR}/obj -I${.CURDIR} SRCS= bc.c scan.c util.c main.c number.c storage.c load.c execute.c global.c CLEANFILES+= bc.c scan.c y.tab.h +bc.c: bc.c.dist y.tab.h + cp ${.CURDIR}/bc.c.dist bc.c +scan.c: scan.c.dist + cp ${.CURDIR}/scan.c.dist scan.c +y.tab.h: y.tab.h.dist + cp ${.CURDIR}/y.tab.h.dist y.tab.h + .include