Skip to content
Snippets Groups Projects
Commit fd61c583 authored by Niels Möller's avatar Niels Möller
Browse files

* 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.

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
parent ea540223
No related branches found
No related tags found
No related merge requests found
2004-12-02 Niels Mller <nisse@lysator.liu.se> 2004-12-02 Niels Mller <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. * config.make.in (.c): Disable default rule for BSD-make.
* Makefile.in (all check install uninstall) * Makefile.in (all check install uninstall)
......
...@@ -35,9 +35,6 @@ check-here: ...@@ -35,9 +35,6 @@ check-here:
dvi installcheck uninstallcheck: dvi installcheck uninstallcheck:
true true
.SUFFIXES:
.SUFFIXES: .asm .html .c .dvi .info .$(OBJEXT) .p$(OBJEXT) .exe .pdf .ps .texinfo
all-here: $(TARGETS) all-here: $(TARGETS)
nettle_SOURCES = aes.c \ nettle_SOURCES = aes.c \
...@@ -136,12 +133,6 @@ $(SHLIBFORLINK): $(nettle_PURE_OBJS) ...@@ -136,12 +133,6 @@ $(SHLIBFORLINK): $(nettle_PURE_OBJS)
.$(OBJEXT)$(EXEEXT): .$(OBJEXT)$(EXEEXT):
$(LINK) $< $(LIBS) -o $@ $(LINK) $< $(LIBS) -o $@
# aesdata$(EXEEXT): aesdata.$(OBJEXT)
# $(LINK) $< $(LIBS) -o $@
#
# desdata$(EXEEXT): desdata.$(OBJEXT)
# $(LINK) $< $(LIBS) -o $@
shadata$(EXEEXT): shadata.$(OBJEXT) shadata$(EXEEXT): shadata.$(OBJEXT)
$(LINK) shadata.$(OBJEXT) $(LIBS) -lm -o $@ $(LINK) shadata.$(OBJEXT) $(LIBS) -lm -o $@
......
...@@ -64,13 +64,16 @@ LINK = $(CC) $(CFLAGS) $(PRE_LDFLAGS) $(LDFLAGS) ...@@ -64,13 +64,16 @@ LINK = $(CC) $(CFLAGS) $(PRE_LDFLAGS) $(LDFLAGS)
# usual targets. # usual targets.
default: all 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 # Disable builtin rule
%$(EXEEXT) : %.c %$(EXEEXT) : %.c
.c: .c:
# Keep object files
.PRECIOUS: %.o
.PHONY: all check install uninstall clean distclean mostlyclean maintainer-clean distdir \ .PHONY: all check install uninstall clean distclean mostlyclean maintainer-clean distdir \
all-here check-here install-here clean-here distclean-here mostlyclean-here \ all-here check-here install-here clean-here distclean-here mostlyclean-here \
maintainer-clean-here distdir-here \ maintainer-clean-here distdir-here \
......
...@@ -35,9 +35,6 @@ DISTFILES = $(SOURCES) Makefile.in $(TS_SH) run-tests rfc1750.txt testutils.h ...@@ -35,9 +35,6 @@ DISTFILES = $(SOURCES) Makefile.in $(TS_SH) run-tests rfc1750.txt testutils.h
all: $(TARGETS) all: $(TARGETS)
.SUFFIXES:
.SUFFIXES: .c .$(OBJEXT) .exe
.c.$(OBJEXT): .c.$(OBJEXT):
$(COMPILE) -I.. -c $< && $(DEP_PROCESS) $(COMPILE) -I.. -c $< && $(DEP_PROCESS)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment