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

(%.asm): Use a GNU pattern rule, to make %.o depend

on both %.asm and asm.m4.

Rev: src/nettle/Makefile.am:1.32
parent f3833d1e
No related branches found
No related tags found
No related merge requests found
...@@ -55,7 +55,8 @@ SUFFIXES = .asm ...@@ -55,7 +55,8 @@ SUFFIXES = .asm
# can be overridden during development, eg. "make RM_TMP=: aes.o" # can be overridden during development, eg. "make RM_TMP=: aes.o"
RM_TMP = rm -f 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 $(M4) `test -f $< || echo '$(srcdir)/'`$< >tmp-$*.s
$(COMPILE) -c tmp-$*.s -o $@ $(COMPILE) -c tmp-$*.s -o $@
$(RM_TMP) tmp-$*.s $(RM_TMP) tmp-$*.s
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment