mirror of https://github.com/zeldaret/tp.git
50 lines
1.2 KiB
Makefile
50 lines
1.2 KiB
Makefile
#
|
|
# Generated By: dol2asm
|
|
#
|
|
|
|
M236_TARGET := $(BUILD_DIR)/rel/d/a/e/d_a_e_th.plf
|
|
M236_LDSCRIPT := $(BUILD_DIR)/rel/d/a/e/d_a_e_th.lcf
|
|
M236_MAP := $(BUILD_DIR)/rel/d/a/e/d_a_e_th.map
|
|
|
|
M236_CPP_FILES := \
|
|
rel/executor.cpp \
|
|
rel/global_destructor_chain.cpp \
|
|
rel/d/a/e/d_a_e_th/d_a_e_th.cpp \
|
|
|
|
M236_O_FILES := \
|
|
$(BUILD_DIR)/rel/executor.o \
|
|
$(BUILD_DIR)/rel/global_destructor_chain.o \
|
|
$(BUILD_DIR)/rel/d/a/e/d_a_e_th/d_a_e_th.o \
|
|
|
|
M236_LIBS := \
|
|
|
|
M236_CFLAGS := \
|
|
-sdata 0 \
|
|
-sdata2 0 \
|
|
|
|
M236_LDFLAGS := \
|
|
-nodefaults \
|
|
-fp hard \
|
|
-proc gekko \
|
|
-linkmode moreram \
|
|
-sdata 0 \
|
|
-sdata2 0 \
|
|
-m _prolog \
|
|
-lcf $(M236_LDSCRIPT) \
|
|
-unused -map $(M236_MAP) \
|
|
-w off \
|
|
|
|
$(M236_TARGET): $(M236_O_FILES) $(M236_LIBS)
|
|
@echo [236] creating $(M236_TARGET)
|
|
@echo $(M236_LIBS) $(M236_O_FILES) > build/M236_ofiles
|
|
@python3 tools/lcf.py rel 236 --output $(M236_LDSCRIPT)
|
|
@$(LD) -opt_partial -strip_partial $(M236_LDFLAGS) -o $(M236_TARGET) @build/M236_ofiles
|
|
|
|
$(BUILD_DIR)/rel/d/a/e/d_a_e_th/%.o: rel/d/a/e/d_a_e_th/%.cpp
|
|
@echo [236] building $@
|
|
@mkdir -p $(@D)
|
|
@$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp
|
|
@$(CC) $(CFLAGS) $(M236_CFLAGS) -c -o $@ $(basename $@).cpp
|
|
|
|
|