* aclocal.m4 (DEP_INCLUDE): Delete substituted variable.
* Makefile.in: Use the GNU make directive -include to include
dependency .d files. Delete dependency files on make clean.
* examples/Makefile.in: Likewise.
* testsuite/Makefile.in: Likewise. Also use $(OBJEXT) properly.
* tools/Makefile.in: Likewise.
* configure.ac (dummy-dep-files): Delete these config commands.
+2020-01-15 Niels Möller <nisse@lysator.liu.se>
+
+ * aclocal.m4 (DEP_INCLUDE): Delete substituted variable.
+
+ * Makefile.in: Use the GNU make directive -include to include
+ dependency .d files. Delete dependency files on make clean.
+ * examples/Makefile.in: Likewise.
+ * testsuite/Makefile.in: Likewise. Also use $(OBJEXT) properly.
+ * tools/Makefile.in: Likewise.
+
+ * configure.ac (dummy-dep-files): Delete these config commands.
+
2020-01-10 Niels Möller <nisse@lysator.liu.se>
From Dmitry Eremin-Solenikov: Consistently rename ecc files and
$(rm_distcheck)
clean-here:
- -rm -f $(TARGETS) *.$(OBJEXT) *.s *.so *.dll *.a \
+ -rm -f $(TARGETS) *.$(OBJEXT) *.$(OBJEXT).d *.s *.so *.dll *.a \
ecc-curve25519.h ecc-curve448.h \
ecc-secp192r1.h ecc-secp224r1.h ecc-secp256r1.h \
ecc-secp384r1.h ecc-secp521r1.h \
etags -o $(srcdir)/TAGS $(srcdir)/*.c $(srcdir)/*.h
DEP_FILES = $(SOURCES:.c=.$(OBJEXT).d)
-@DEP_INCLUDE@ $(DEP_FILES)
+-include $(DEP_FILES)
fi
fi
-if test x$enable_dependency_tracking = xyes ; then
- DEP_INCLUDE='include '
-else
- DEP_INCLUDE='# '
-fi
-
-AC_SUBST([DEP_INCLUDE])
AC_SUBST([DEP_FLAGS])
AC_SUBST([DEP_PROCESS])])
LSH_DEPENDENCY_TRACKING
-if test x$enable_dependency_tracking = xyes ; then
- # Since the makefiles use include to get the dependency files, we must
- # make sure that the files exist. We generate some more files than are
- # actually needed.
-
- AC_CONFIG_COMMANDS([dummy-dep-files],
- [(cd "$srcdir" && find . '(' -name '*.c' -o -name '*.cxx' ')' -print) \
- | sed 's/\.cx*$//' | (while read f; do \
- test -f "$f.o.d" || echo > "$f.o.d"; \
- done)
-])
-fi
-
if test "x$enable_gcov" = "xyes"; then
CFLAGS="$CFLAGS -ftest-coverage -fprofile-arcs"
fi
cp $? $(distdir)
clean:
- -rm -f $(TARGETS) *.$(OBJEXT)
+ -rm -f $(TARGETS) *.$(OBJEXT) *.$(OBJEXT).d
distclean: clean
-rm -f Makefile *.d
tags:
etags -o $(srcdir)/TAGS --include $(top_srcdir) $(srcdir)/*.c $(srcdir)/*.h
-@DEP_INCLUDE@ $(SOURCES:.c=.$(OBJEXT).d)
+-include $(SOURCES:.c=.$(OBJEXT).d)
clean:
-rm -f $(TARGETS) $(EXTRA_TARGETS) dlopen-test$(EXEEXT) \
- *.o test.in test1.out test2.out
+ *.$(OBJEXT) *.$(OBJEXT).d test.in test1.out test2.out
distclean: clean
-rm -f Makefile *.d
# Includes dependency files for everything, including objects which
# the current configuration will not build.
DEP_FILES = $(SOURCES:.c=.$(OBJEXT).d) $(CXX_SOURCES:.cxx=.$(OBJEXT).d)
-@DEP_INCLUDE@ $(DEP_FILES)
+-include $(DEP_FILES)
cp $? $(distdir)
clean:
- -rm -f $(TARGETS) *.o
+ -rm -f $(TARGETS) *.$(OBJEXT) *.$(OBJEXT).d
distclean: clean
-rm -f Makefile *.d
tags:
etags -o $(srcdir)/TAGS --include $(top_srcdir) $(srcdir)/*.c $(srcdir)/*.h
-@DEP_INCLUDE@ $(SOURCES:.c=.$(OBJEXT).d)
+-include $(SOURCES:.c=.$(OBJEXT).d)