mirror of https://github.com/zeldaret/tp.git
50 lines
1.2 KiB
Makefile
50 lines
1.2 KiB
Makefile
#
|
|
# Generated By: dol2asm
|
|
#
|
|
|
|
M172_TARGET := $(BUILD_DIR)/rel/d/a/e/d_a_e_ba.plf
|
|
M172_LDSCRIPT := $(BUILD_DIR)/rel/d/a/e/d_a_e_ba.lcf
|
|
M172_MAP := $(BUILD_DIR)/rel/d/a/e/d_a_e_ba.map
|
|
|
|
M172_CPP_FILES := \
|
|
rel/executor.cpp \
|
|
rel/global_destructor_chain.cpp \
|
|
rel/d/a/e/d_a_e_ba/d_a_e_ba.cpp \
|
|
|
|
M172_O_FILES := \
|
|
$(BUILD_DIR)/rel/executor.o \
|
|
$(BUILD_DIR)/rel/global_destructor_chain.o \
|
|
$(BUILD_DIR)/rel/d/a/e/d_a_e_ba/d_a_e_ba.o \
|
|
|
|
M172_LIBS := \
|
|
|
|
M172_CFLAGS := \
|
|
-sdata 0 \
|
|
-sdata2 0 \
|
|
|
|
M172_LDFLAGS := \
|
|
-nodefaults \
|
|
-fp hard \
|
|
-proc gekko \
|
|
-linkmode moreram \
|
|
-sdata 0 \
|
|
-sdata2 0 \
|
|
-m _prolog \
|
|
-lcf $(M172_LDSCRIPT) \
|
|
-unused -map $(M172_MAP) \
|
|
-w off \
|
|
|
|
$(M172_TARGET): $(M172_O_FILES) $(M172_LIBS)
|
|
@echo [172] creating $(M172_TARGET)
|
|
@echo $(M172_LIBS) $(M172_O_FILES) > build/M172_ofiles
|
|
@python3 tools/lcf.py rel 172 --output $(M172_LDSCRIPT)
|
|
@$(LD) -opt_partial -strip_partial $(M172_LDFLAGS) -o $(M172_TARGET) @build/M172_ofiles
|
|
|
|
$(BUILD_DIR)/rel/d/a/e/d_a_e_ba/%.o: rel/d/a/e/d_a_e_ba/%.cpp
|
|
@echo [172] building $@
|
|
@mkdir -p $(@D)
|
|
@$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp
|
|
@$(CC) $(CFLAGS) $(M172_CFLAGS) -c -o $@ $(basename $@).cpp
|
|
|
|
|