aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2024-04-16 10:57:00 +0200
committerAnton Khirnov <anton@khirnov.net>2024-04-16 14:48:00 +0200
commita2df7298cd7e2dba47cb7274b8b7d983265e7279 (patch)
tree662ba9dc10659798b829a397e517c658bdfaff45
parentb6b93ceec5669310ffbcfa4cbd88c0c2f9c68ca2 (diff)
Makefile: simplify nasm rules
There is no need to run nasm twice.
-rw-r--r--Makefile3
1 files changed, 1 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 5827ee4..01dd825 100644
--- a/Makefile
+++ b/Makefile
@@ -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)