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
|
|
#
|
|
|
|
M227_TARGET := $(BUILD_DIR)/rel/d/a/e/d_a_e_sb.plf
|
|
M227_LDSCRIPT := $(BUILD_DIR)/rel/d/a/e/d_a_e_sb.lcf
|
|
M227_MAP := $(BUILD_DIR)/rel/d/a/e/d_a_e_sb.map
|
|
|
|
M227_CPP_FILES := \
|
|
rel/executor.cpp \
|
|
rel/global_destructor_chain.cpp \
|
|
rel/d/a/e/d_a_e_sb/d_a_e_sb.cpp \
|
|
|
|
M227_O_FILES := \
|
|
$(BUILD_DIR)/rel/executor.o \
|
|
$(BUILD_DIR)/rel/global_destructor_chain.o \
|
|
$(BUILD_DIR)/rel/d/a/e/d_a_e_sb/d_a_e_sb.o \
|
|
|
|
M227_LIBS := \
|
|
|
|
M227_CFLAGS := \
|
|
-sdata 0 \
|
|
-sdata2 0 \
|
|
|
|
M227_LDFLAGS := \
|
|
-nodefaults \
|
|
-fp hard \
|
|
-proc gekko \
|
|
-linkmode moreram \
|
|
-sdata 0 \
|
|
-sdata2 0 \
|
|
-m _prolog \
|
|
-lcf $(M227_LDSCRIPT) \
|
|
-unused -map $(M227_MAP) \
|
|
-w off \
|
|
|
|
$(M227_TARGET): $(M227_O_FILES) $(M227_LIBS)
|
|
@echo [227] creating $(M227_TARGET)
|
|
@echo $(M227_LIBS) $(M227_O_FILES) > build/M227_ofiles
|
|
@python3 tools/lcf.py rel 227 --output $(M227_LDSCRIPT)
|
|
@$(LD) -opt_partial -strip_partial $(M227_LDFLAGS) -o $(M227_TARGET) @build/M227_ofiles
|
|
|
|
$(BUILD_DIR)/rel/d/a/e/d_a_e_sb/%.o: rel/d/a/e/d_a_e_sb/%.cpp $(BUILD_DIR)/rel/d/a/e/d_a_e_sb/%.d
|
|
@echo [227] building $@
|
|
@mkdir -p $(@D)
|
|
@$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp
|
|
@$(CC) $(CFLAGS) $(M227_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
|
|
M227_D_FILES := $(M227_O_FILES:.o=.d)
|
|
$(M227_D_FILES):
|
|
include $(wildcard $(M227_D_FILES))
|
|
endif
|
|
|
|
|