changeset 504:708c6b0ee45b

(INCLUDE, COMPILE): New variables. (.c.o): Rewrite to be more like src/Makefile.in. Add line that (--with-autodeps) will include mkdep-Makefile.
author Jim Meyering <jim@meyering.net>
date Sun, 29 Oct 1995 12:14:37 +0000
parents 2ee098e3c26c
children 58d475c79a51
files lib/Makefile.in
diffstat 1 files changed, 8 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lib/Makefile.in
+++ b/lib/Makefile.in
@@ -58,8 +58,10 @@
 .SUFFIXES:
 .SUFFIXES: .c .o
 
+COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS)
+INCLUDES = -I.. -I$(srcdir)
 .c.o:
-	$(CC) -c $(CPPFLAGS) $(DEFS) -I.. -I$(srcdir) $(CFLAGS) $<
+	$(COMPILE) $<
 
 subdir = lib
 Makefile: ../config.status Makefile.in
@@ -140,3 +142,8 @@
 # Tell versions [3.59,3.63) of GNU make not to export all variables.
 # Otherwise a system limit (for SysV at least) may be exceeded.
 .NOEXPORT:
+
+# The following include directive is uncommented automatically
+# when this package is configured with the --with-autodep option.
+# You need GNU make and a C compiler that can generate dependencies.
+@AUTODEP_COMMENT@include @top_srcdir@/mkdep-Makefile