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
|
|
#
|
|
|
|
M218_TARGET := $(BUILD_DIR)/rel/d/a/e/d_a_e_ot.plf
|
|
M218_LDSCRIPT := $(BUILD_DIR)/rel/d/a/e/d_a_e_ot.lcf
|
|
M218_MAP := $(BUILD_DIR)/rel/d/a/e/d_a_e_ot.map
|
|
|
|
M218_CPP_FILES := \
|
|
rel/executor.cpp \
|
|
rel/global_destructor_chain.cpp \
|
|
rel/d/a/e/d_a_e_ot/d_a_e_ot.cpp \
|
|
|
|
M218_O_FILES := \
|
|
$(BUILD_DIR)/rel/executor.o \
|
|
$(BUILD_DIR)/rel/global_destructor_chain.o \
|
|
$(BUILD_DIR)/rel/d/a/e/d_a_e_ot/d_a_e_ot.o \
|
|
|
|
M218_LIBS := \
|
|
|
|
M218_CFLAGS := \
|
|
-sdata 0 \
|
|
-sdata2 0 \
|
|
|
|
M218_LDFLAGS := \
|
|
-nodefaults \
|
|
-fp hard \
|
|
-proc gekko \
|
|
-linkmode moreram \
|
|
-sdata 0 \
|
|
-sdata2 0 \
|
|
-m _prolog \
|
|
-lcf $(M218_LDSCRIPT) \
|
|
-unused -map $(M218_MAP) \
|
|
-w off \
|
|
|
|
$(M218_TARGET): $(M218_O_FILES) $(M218_LIBS)
|
|
@echo [218] creating $(M218_TARGET)
|
|
@echo $(M218_LIBS) $(M218_O_FILES) > build/M218_ofiles
|
|
@python3 tools/lcf.py rel 218 --output $(M218_LDSCRIPT)
|
|
@$(LD) -opt_partial -strip_partial $(M218_LDFLAGS) -o $(M218_TARGET) @build/M218_ofiles
|
|
|
|
$(BUILD_DIR)/rel/d/a/e/d_a_e_ot/%.o: rel/d/a/e/d_a_e_ot/%.cpp $(BUILD_DIR)/rel/d/a/e/d_a_e_ot/%.d
|
|
@echo [218] building $@
|
|
@mkdir -p $(@D)
|
|
@$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp
|
|
@$(CC) $(CFLAGS) $(M218_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
|
|
M218_D_FILES := $(M218_O_FILES:.o=.d)
|
|
$(M218_D_FILES):
|
|
include $(wildcard $(M218_D_FILES))
|
|
endif
|
|
|
|
|