mirror of
https://github.com/encounter/tp.git
synced 2026-07-11 06:18:46 -07:00
57 lines
1.4 KiB
Makefile
57 lines
1.4 KiB
Makefile
#
|
|
# Generated By: dol2asm
|
|
#
|
|
|
|
M170_TARGET := $(BUILD_DIR)/rel/d/a/e/d_a_e_ai.plf
|
|
M170_LDSCRIPT := $(BUILD_DIR)/rel/d/a/e/d_a_e_ai.lcf
|
|
M170_MAP := $(BUILD_DIR)/rel/d/a/e/d_a_e_ai.map
|
|
|
|
M170_CPP_FILES := \
|
|
rel/executor.cpp \
|
|
rel/global_destructor_chain.cpp \
|
|
rel/d/a/e/d_a_e_ai/d_a_e_ai.cpp \
|
|
|
|
M170_O_FILES := \
|
|
$(BUILD_DIR)/rel/executor.o \
|
|
$(BUILD_DIR)/rel/global_destructor_chain.o \
|
|
$(BUILD_DIR)/rel/d/a/e/d_a_e_ai/d_a_e_ai.o \
|
|
|
|
M170_LIBS := \
|
|
|
|
M170_CFLAGS := \
|
|
-sdata 0 \
|
|
-sdata2 0 \
|
|
|
|
M170_LDFLAGS := \
|
|
-nodefaults \
|
|
-fp hard \
|
|
-proc gekko \
|
|
-linkmode moreram \
|
|
-sdata 0 \
|
|
-sdata2 0 \
|
|
-m _prolog \
|
|
-lcf $(M170_LDSCRIPT) \
|
|
-unused -map $(M170_MAP) \
|
|
-w off \
|
|
|
|
$(M170_TARGET): $(M170_O_FILES) $(M170_LIBS)
|
|
@echo [170] creating $(M170_TARGET)
|
|
@echo $(M170_LIBS) $(M170_O_FILES) > build/M170_ofiles
|
|
@python3 tools/lcf.py rel 170 --output $(M170_LDSCRIPT)
|
|
@$(LD) -opt_partial -strip_partial $(M170_LDFLAGS) -o $(M170_TARGET) @build/M170_ofiles
|
|
|
|
$(BUILD_DIR)/rel/d/a/e/d_a_e_ai/%.o: rel/d/a/e/d_a_e_ai/%.cpp $(BUILD_DIR)/rel/d/a/e/d_a_e_ai/%.d
|
|
@echo [170] building $@
|
|
@mkdir -p $(@D)
|
|
@$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp
|
|
@$(CC) $(CFLAGS) $(M170_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
|
|
M170_D_FILES := $(M170_O_FILES:.o=.d)
|
|
$(M170_D_FILES):
|
|
include $(wildcard $(M170_D_FILES))
|
|
endif
|
|
|
|
|