diff lib-src/Makefile.in @ 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 d6f0073d7e31
children 59aca09e60f8
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