diff options
author | Anton Khirnov <anton@khirnov.net> | 2024-04-16 10:57:00 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2024-04-16 14:48:00 +0200 |
commit | a2df7298cd7e2dba47cb7274b8b7d983265e7279 (patch) | |
tree | 662ba9dc10659798b829a397e517c658bdfaff45 | |
parent | b6b93ceec5669310ffbcfa4cbd88c0c2f9c68ca2 (diff) |
Makefile: simplify nasm rules
There is no need to run nasm twice.
-rw-r--r-- | Makefile | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -63,8 +63,7 @@ $(foreach testprog, $(TESTPROGS), $(eval $(testprog): TESTOBJ = $(testprog).c.o) $(CC) $(CFLAGS) -MMD -MF $(@:.o=.d) -MT $@ -c -o $@ $< %.asm.o: %.asm - nasm $(NASMFLAGS) -i $(SOURCE_DIR)/ -f elf64 -MD $(@:.o=.d) -MT $@ $< - nasm $(NASMFLAGS) -i $(SOURCE_DIR)/ -f elf64 -o $@ $< + nasm $(NASMFLAGS) -i $(SOURCE_DIR)/ -f elf64 -MD $(@:.o=.d) -MT $@ -o $@ $< clean: -rm -f *.o *.d *.pyc $(TARGET) |