mirror of
https://github.com/zeldaret/tp
synced 2026-08-14 04:32:38 -04:00
Generate makefiles from dol2asm
This commit is contained in:
@@ -40,10 +40,17 @@ $(M448_TARGET): $(M448_O_FILES) $(M448_LIBS)
|
||||
@python3 tools/lcf.py rel 448 --output $(M448_LDSCRIPT)
|
||||
@$(LD) -opt_partial -strip_partial $(M448_LDFLAGS) -o $(M448_TARGET) @build/M448_ofiles
|
||||
|
||||
$(BUILD_DIR)/rel/d/a/obj/d_a_obj_firepillar2/%.o: rel/d/a/obj/d_a_obj_firepillar2/%.cpp
|
||||
$(BUILD_DIR)/rel/d/a/obj/d_a_obj_firepillar2/%.o: rel/d/a/obj/d_a_obj_firepillar2/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_firepillar2/%.d
|
||||
@echo [448] building $@
|
||||
@mkdir -p $(@D)
|
||||
@$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp
|
||||
@$(CC) $(CFLAGS) $(M448_CFLAGS) -c -o $@ $(basename $@).cpp
|
||||
@$(CC) $(CFLAGS) $(M448_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
|
||||
M448_D_FILES := $(M448_O_FILES:.o=.d)
|
||||
$(M448_D_FILES):
|
||||
include $(wildcard $(M448_D_FILES))
|
||||
endif
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user