aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoland McGrath <roland@redhat.com>1992-12-28 23:25:58 +0000
committerRoland McGrath <roland@redhat.com>1992-12-28 23:25:58 +0000
commit52930ae3a97cc864b1010de39a03595693e79d33 (patch)
treed3e8af4044b798ed5e59f0866fe98900c8e1b1a1
parentede645439aafe09f3d1647731aaa09f06a010224 (diff)
downloadgunmake-52930ae3a97cc864b1010de39a03595693e79d33.tar.gz
Formerly compatMakefile.~48~
-rw-r--r--compatMakefile8
1 files changed, 5 insertions, 3 deletions
diff --git a/compatMakefile b/compatMakefile
index 28fc2b4..4282cd9 100644
--- a/compatMakefile
+++ b/compatMakefile
@@ -140,8 +140,10 @@ make: $(objs)
$(CC) $(LDFLAGS) $(objs) $(LOADLIBES) -o make.new
mv -f make.new make
-.c.o:;\
-$(CC) $(CFLAGS) $(defines) -c -I$(srcdir) -I$(srcdir)/glob $< $(OUTPUT_OPTION)
+# -I. is needed to find config.h in the build directory.
+.c.o:
+ $(CC) $(CFLAGS) $(defines) -c -I. \
+ -I$(srcdir) -I$(srcdir)/glob $< $(OUTPUT_OPTION)
remote.o: remote.c
$(CC) $(CFLAGS) $(defines) $(REMOTE) -c -I$(srcdir) $(srcdir)/remote.c
@@ -150,7 +152,7 @@ MAKE = make
glob/libglob.a: force
cd glob; $(MAKE) CC='$(CC)' CFLAGS='$(CFLAGS) -I..' \
- CPPFLAGS='$(defines)' \
+ CPPFLAGS='$(CPPFLAGS) -DHAVE_CONFIG_H' \
libglob.a
force: