summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib-src/Makefile.in8
1 files changed, 7 insertions, 1 deletions
diff --git a/lib-src/Makefile.in b/lib-src/Makefile.in
index f51b051a885..f130d386549 100644
--- a/lib-src/Makefile.in
+++ b/lib-src/Makefile.in
@@ -33,9 +33,11 @@ EXECUTABLES= ${UTILITIES} ${INSTALLABLES} ${SCRIPTS}
# 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 @@ emacsclient: emacsclient.c ../src/config.h
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