mirror of
https://github.com/zeldaret/oot.git
synced 2025-05-10 11:03:46 +00:00
Use cpp for soundfont dependencies (#2519)
This commit is contained in:
parent
a9b5aaadf0
commit
cfd23f9cd2
1 changed files with 2 additions and 2 deletions
4
Makefile
4
Makefile
|
@ -927,7 +927,7 @@ $(BUILD_DIR)/src/makerom/ipl3.o: $(EXTRACTED_DIR)/incbin/ipl3
|
||||||
$(BUILD_DIR)/src/%.o: src/%.s
|
$(BUILD_DIR)/src/%.o: src/%.s
|
||||||
ifeq ($(COMPILER),ido)
|
ifeq ($(COMPILER),ido)
|
||||||
# For header dependencies
|
# For header dependencies
|
||||||
$(CPP) $(MIPS_BUILTIN_DEFS) -x assembler-with-cpp $(INC) -MD -MF $(@:.o=.d) -MT $@ $< -o /dev/null
|
$(CPP) $(MIPS_BUILTIN_DEFS) $(CPPFLAGS) -x assembler-with-cpp $(INC) -MD -MF $(@:.o=.d) -MT $@ $< -o /dev/null
|
||||||
$(CCAS) -c $(CCASFLAGS) $(MIPS_VERSION) $(ASOPTFLAGS) -o $(@:.o=.tmp.o) $<
|
$(CCAS) -c $(CCASFLAGS) $(MIPS_VERSION) $(ASOPTFLAGS) -o $(@:.o=.tmp.o) $<
|
||||||
# IDO generates bad symbol tables, fix the symbol table with strip..
|
# IDO generates bad symbol tables, fix the symbol table with strip..
|
||||||
$(STRIP) $(@:.o=.tmp.o) -N dummy-symbol-name
|
$(STRIP) $(@:.o=.tmp.o) -N dummy-symbol-name
|
||||||
|
@ -1068,7 +1068,7 @@ $(BUILD_DIR)/assets/audio/soundfonts/%.c $(BUILD_DIR)/assets/audio/soundfonts/%.
|
||||||
-include $(SOUNDFONT_DEP_FILES)
|
-include $(SOUNDFONT_DEP_FILES)
|
||||||
|
|
||||||
$(BUILD_DIR)/assets/audio/soundfonts/%.o: $(BUILD_DIR)/assets/audio/soundfonts/%.c $(BUILD_DIR)/assets/audio/soundfonts/%.name
|
$(BUILD_DIR)/assets/audio/soundfonts/%.o: $(BUILD_DIR)/assets/audio/soundfonts/%.c $(BUILD_DIR)/assets/audio/soundfonts/%.name
|
||||||
$(CC_CHECK) -I include/audio $< -o $@
|
$(CPP) $(MIPS_BUILTIN_DEFS) $(CPPFLAGS) -x assembler-with-cpp $(INC) -I include/audio -MD -MF $(@:.o=.d) -MT $@ $< -o /dev/null
|
||||||
# compile c to unlinked object
|
# compile c to unlinked object
|
||||||
$(CC) -c $(CFLAGS) $(MIPS_VERSION) $(OPTFLAGS) -I include/audio -o $(@:.o=.tmp) $<
|
$(CC) -c $(CFLAGS) $(MIPS_VERSION) $(OPTFLAGS) -I include/audio -o $(@:.o=.tmp) $<
|
||||||
# partial link
|
# partial link
|
||||||
|
|
Loading…
Add table
Reference in a new issue