mirror of
https://github.com/encounter/tp.git
synced 2026-07-11 06:18:46 -07:00
Generate makefiles from dol2asm
This commit is contained in:
@@ -38,10 +38,17 @@ $(M118_TARGET): $(M118_O_FILES) $(M118_LIBS)
|
||||
@python3 tools/lcf.py rel 118 --output $(M118_LDSCRIPT)
|
||||
@$(LD) -opt_partial -strip_partial $(M118_LDFLAGS) -o $(M118_TARGET) @build/M118_ofiles
|
||||
|
||||
$(BUILD_DIR)/rel/d/a/d_a_shop_item/%.o: rel/d/a/d_a_shop_item/%.cpp
|
||||
$(BUILD_DIR)/rel/d/a/d_a_shop_item/%.o: rel/d/a/d_a_shop_item/%.cpp $(BUILD_DIR)/rel/d/a/d_a_shop_item/%.d
|
||||
@echo [118] building $@
|
||||
@mkdir -p $(@D)
|
||||
@$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp
|
||||
@$(CC) $(CFLAGS) $(M118_CFLAGS) -c -o $@ $(basename $@).cpp
|
||||
@$(CC) $(CFLAGS) $(M118_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
|
||||
M118_D_FILES := $(M118_O_FILES:.o=.d)
|
||||
$(M118_D_FILES):
|
||||
include $(wildcard $(M118_D_FILES))
|
||||
endif
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user