From: Niels Möller Date: Fri, 15 Feb 2002 13:20:59 +0000 (+0100) Subject: (%.asm): Use a GNU pattern rule, to make %.o depend X-Git-Tag: nettle_1.6_release_20021003~304 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=987fdf2c22e675d57cd929dbf93574658d2aa296;p=thirdparty%2Fnettle.git (%.asm): Use a GNU pattern rule, to make %.o depend on both %.asm and asm.m4. Rev: src/nettle/Makefile.am:1.32 --- diff --git a/Makefile.am b/Makefile.am index 43446d37..4e50d0a9 100644 --- a/Makefile.am +++ b/Makefile.am @@ -55,7 +55,8 @@ SUFFIXES = .asm # can be overridden during development, eg. "make RM_TMP=: aes.o" RM_TMP = rm -f -.asm.o: +# FIXME: How to write this without using GNU make features? +%.o: %.asm asm.m4 $(M4) `test -f $< || echo '$(srcdir)/'`$< >tmp-$*.s $(COMPILE) -c tmp-$*.s -o $@ $(RM_TMP) tmp-$*.s