(.c.o): Rewrite to be more like src/Makefile.in.
Add line that (--with-autodeps) will include mkdep-Makefile.
.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
# 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