# HG changeset patch # User Jim Meyering # Date 814968877 0 # Node ID 708c6b0ee45bba873090421054750b7c62899085 # Parent 2ee098e3c26ca748c4233c789fe36b3a7fa496ed (INCLUDE, COMPILE): New variables. (.c.o): Rewrite to be more like src/Makefile.in. Add line that (--with-autodeps) will include mkdep-Makefile. diff --git a/lib/Makefile.in b/lib/Makefile.in --- 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