summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2016-02-27 19:21:24 +0100
committerAnton Khirnov <anton@khirnov.net>2016-02-27 19:21:24 +0100
commitf5c0e15f4b1dbd51c305312f5dcd6b3148be3e71 (patch)
tree1b4c5f48b03a1178849e600c0121f45ae2437373
parent34b237943d8266c4b8ca6504993d674275a8d10f (diff)
make.config.rules: add support for yasm files
-rw-r--r--lib/make/make.config.rules.in3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/make/make.config.rules.in b/lib/make/make.config.rules.in
index 5c146a68..0c633b4d 100644
--- a/lib/make/make.config.rules.in
+++ b/lib/make/make.config.rules.in
@@ -251,6 +251,9 @@ endef
# Build rules for C
+%.asm.o: $(SRCDIR)/%.asm
+ current_wd=`$(GET_WD)` ; cd $(SCRATCH_BUILD) ; yasm -f elf -m amd64 -g dwarf2 -o $$current_wd$(DIRSEP)$@ $<
+
%.c.o: $(SRCDIR)/%.c
$(NOTIFY_PREPROCESSING)
$(PREPROCESS_C)