compile assembly files using different flags than C++ files

This is intended to fix the build error described here:

  http://groups.google.com/group/avian/msg/38b6619d6d8cac68
This commit is contained in:
Joel Dice 2008-10-23 16:55:39 -06:00
parent 3b67417695
commit 708d2f1c0c

View File

@ -337,11 +337,17 @@ define compile-object
$(cxx) $(cflags) -c $(<) -o $(@)
endef
define compile-asm-object
@echo "compiling $(@)"
@mkdir -p $(dir $(@))
$(cc) -I$(src) -c $(<) -o $(@)
endef
$(vm-cpp-objects): $(native-build)/%.o: $(src)/%.cpp $(vm-depends)
$(compile-object)
$(vm-asm-objects): $(native-build)/%-asm.o: $(src)/%.S
$(compile-object)
$(compile-asm-object)
$(driver-object): $(driver-source)
$(compile-object)