* config.make.in (.SUFFIXES): ... here. This helps compilation
with BSD make.
* testsuite/Makefile.in (.SUFFIXES): Deleted target.
Rev: src/nettle/ChangeLog:1.315
Rev: src/nettle/Makefile.in:1.19
Rev: src/nettle/config.make.in:1.7
Rev: src/nettle/testsuite/Makefile.in:1.12
2004-12-02 Niels Möller <nisse@lysator.liu.se>
+ * Makefile.in (.SUFFIXES): Moved from Makefile.in to...
+ * config.make.in (.SUFFIXES): ... here. This helps compilation
+ with BSD make.
+ * testsuite/Makefile.in (.SUFFIXES): Deleted target.
+
* config.make.in (.c): Disable default rule for BSD-make.
* Makefile.in (all check install uninstall)
dvi installcheck uninstallcheck:
true
-.SUFFIXES:
-.SUFFIXES: .asm .html .c .dvi .info .$(OBJEXT) .p$(OBJEXT) .exe .pdf .ps .texinfo
-
all-here: $(TARGETS)
nettle_SOURCES = aes.c \
.$(OBJEXT)$(EXEEXT):
$(LINK) $< $(LIBS) -o $@
-# aesdata$(EXEEXT): aesdata.$(OBJEXT)
-# $(LINK) $< $(LIBS) -o $@
-#
-# desdata$(EXEEXT): desdata.$(OBJEXT)
-# $(LINK) $< $(LIBS) -o $@
-
shadata$(EXEEXT): shadata.$(OBJEXT)
$(LINK) shadata.$(OBJEXT) $(LIBS) -lm -o $@
# usual targets.
default: all
+# For some reason the suffixes list must be set before the rules.
+# Otherwise BSD make won't build binaries e.g. aesdata.
+
+.SUFFIXES:
+.SUFFIXES: .asm .c .$(OBJEXT) .p$(OBJEXT) .html .dvi .info .exe .pdf .ps .texinfo
+
# Disable builtin rule
%$(EXEEXT) : %.c
.c:
-# Keep object files
-.PRECIOUS: %.o
-
.PHONY: all check install uninstall clean distclean mostlyclean maintainer-clean distdir \
all-here check-here install-here clean-here distclean-here mostlyclean-here \
maintainer-clean-here distdir-here \
all: $(TARGETS)
-.SUFFIXES:
-.SUFFIXES: .c .$(OBJEXT) .exe
-
.c.$(OBJEXT):
$(COMPILE) -I.. -c $< && $(DEP_PROCESS)