(INCLUDE, COMPILE): New variables.
authorJim Meyering <jim@meyering.net>
Sun, 29 Oct 1995 12:14:37 +0000 (12:14 +0000)
committerJim Meyering <jim@meyering.net>
Sun, 29 Oct 1995 12:14:37 +0000 (12:14 +0000)
(.c.o): Rewrite to be more like src/Makefile.in.
Add line that (--with-autodeps) will include mkdep-Makefile.

lib/Makefile.in

index 83808f5cbe944c63fb32b42f83feee5547f1dee8..9c676694be6dfe0f390661997f2cb5949d7dd948 100644 (file)
@@ -58,8 +58,10 @@ all: libfu.a
 .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 @@ installdirs maintainer-clean mostlyclean uninstall
 # 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