changeset 1573:884891e455cf

* Makefile.in (getdate.o): Added explicit target for this, so we can indicate that it depends on ../src/config.h. * Makefile.in (CONFIG_CFLAGS): Let the configure script edit this instead of CFLAGS. (CFLAGS): Add -Demacs and -I../src to CONFIG_CFLAGS to produce this.
author Jim Blandy <jimb@redhat.com>
date Sat, 07 Nov 1992 07:39:11 +0000
parents 04c1b4719e60
children 352988418dbd
files lib-src/Makefile.in
diffstat 1 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lib-src/Makefile.in	Sat Nov 07 07:37:42 1992 +0000
+++ b/lib-src/Makefile.in	Sat Nov 07 07:39:11 1992 +0000
@@ -33,9 +33,11 @@
 # These things are edited by ../configure; don't change anything before
 # or including the '='; everything after that gets blown away.
 CC=gcc
-CFLAGS= -g -O
+CONFIG_CFLAGS= -g -O
 LOADLIBES=
 
+CFLAGS=${CONFIG_CFLAGS} -Demacs -I../src
+
 all: ../arch-lib
 
 # We use rm -f so that rm won't try to ask questions during the build.
@@ -168,6 +170,10 @@
 hexl: hexl.c
 	$(CC) ${CFLAGS} hexl.c $(LOADLIBES) -o hexl
 
+getdate.o: getdate.y ../src/config.h
+	${YACC} ${YFLAGS} getdate.y
+	$(CC) $(CFLAGS) -c y.tab.c
+	mv y.tab.o getdate.o
 timer: getdate.o timer.o
 	$(CC) $(CFLAGS) getdate.o timer.o -o timer