mirror of
https://github.com/zeldaret/tp
synced 2026-08-19 05:52:31 -04:00
Generate makefiles from dol2asm
This commit is contained in:
@@ -40,10 +40,17 @@ $(M756_TARGET): $(M756_O_FILES) $(M756_LIBS)
|
||||
@python3 tools/lcf.py rel 756 --output $(M756_LDSCRIPT)
|
||||
@$(LD) -opt_partial -strip_partial $(M756_LDFLAGS) -o $(M756_TARGET) @build/M756_ofiles
|
||||
|
||||
$(BUILD_DIR)/rel/d/a/d_a_title/%.o: rel/d/a/d_a_title/%.cpp
|
||||
$(BUILD_DIR)/rel/d/a/d_a_title/%.o: rel/d/a/d_a_title/%.cpp $(BUILD_DIR)/rel/d/a/d_a_title/%.d
|
||||
@echo [756] building $@
|
||||
@mkdir -p $(@D)
|
||||
@$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp
|
||||
@$(CC) $(CFLAGS) $(M756_CFLAGS) -c -o $@ $(basename $@).cpp
|
||||
@$(CC) $(CFLAGS) $(M756_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp
|
||||
@if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi
|
||||
|
||||
ifndef DISABLE_DEPS
|
||||
M756_D_FILES := $(M756_O_FILES:.o=.d)
|
||||
$(M756_D_FILES):
|
||||
include $(wildcard $(M756_D_FILES))
|
||||
endif
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user