aboutsummaryrefslogtreecommitdiff
path: root/rules.mak
diff options
context:
space:
mode:
authorBlue Swirl <blauwirbel@gmail.com>2013-01-05 10:10:27 +0000
committerBlue Swirl <blauwirbel@gmail.com>2013-01-12 12:40:36 +0000
commit3dd46c78525a30e98c68a44e1c3797d9fcfb0462 (patch)
tree4f9fd2a815550ed46194754c2a92873101fb727a /rules.mak
parentb6d9439c0d221b477c479a41a46797eee228bf88 (diff)
downloadqemu-arm-3dd46c78525a30e98c68a44e1c3797d9fcfb0462.tar.gz
optionrom: build with discrete CPP and AS steps
Build option ROM .S files with separate preprocessor and assembler steps because the C compiler could be unsuitable. Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'rules.mak')
-rw-r--r--rules.mak7
1 files changed, 5 insertions, 2 deletions
diff --git a/rules.mak b/rules.mak
index 8448b94cdf..fe0c881a3a 100644
--- a/rules.mak
+++ b/rules.mak
@@ -28,8 +28,11 @@ else
$(call quiet-command,$(LIBTOOL) --mode=compile --quiet --tag=CC $(CC) $(QEMU_INCLUDES) $(QEMU_CFLAGS) $(QEMU_DGFLAGS) $(CFLAGS) -c -o $@ $<," lt CC $@")
endif
-%.o: %.S
- $(call quiet-command,$(CC) $(QEMU_INCLUDES) $(QEMU_CFLAGS) $(QEMU_DGFLAGS) $(CFLAGS) -c -o $@ $<," AS $(TARGET_DIR)$@")
+%.asm: %.S
+ $(call quiet-command,$(CPP) $(QEMU_INCLUDES) $(QEMU_CFLAGS) $(QEMU_DGFLAGS) $(CFLAGS) -o $@ $<," CPP $(TARGET_DIR)$@")
+
+%.o: %.asm
+ $(call quiet-command,$(AS) $(ASFLAGS) -o $@ $<," AS $(TARGET_DIR)$@")
%.o: %.m
$(call quiet-command,$(OBJCC) $(QEMU_INCLUDES) $(QEMU_CFLAGS) $(QEMU_DGFLAGS) $(CFLAGS) -c -o $@ $<," OBJC $(TARGET_DIR)$@")