mirror of https://github.com/zeldaret/tp.git
50 lines
1.2 KiB
Makefile
50 lines
1.2 KiB
Makefile
#
|
|
# Generated By: dol2asm
|
|
#
|
|
|
|
M177_TARGET := $(BUILD_DIR)/rel/d/a/e/d_a_e_bs.plf
|
|
M177_LDSCRIPT := $(BUILD_DIR)/rel/d/a/e/d_a_e_bs.lcf
|
|
M177_MAP := $(BUILD_DIR)/rel/d/a/e/d_a_e_bs.map
|
|
|
|
M177_CPP_FILES := \
|
|
rel/executor.cpp \
|
|
rel/global_destructor_chain.cpp \
|
|
rel/d/a/e/d_a_e_bs/d_a_e_bs.cpp \
|
|
|
|
M177_O_FILES := \
|
|
$(BUILD_DIR)/rel/executor.o \
|
|
$(BUILD_DIR)/rel/global_destructor_chain.o \
|
|
$(BUILD_DIR)/rel/d/a/e/d_a_e_bs/d_a_e_bs.o \
|
|
|
|
M177_LIBS := \
|
|
|
|
M177_CFLAGS := \
|
|
-sdata 0 \
|
|
-sdata2 0 \
|
|
|
|
M177_LDFLAGS := \
|
|
-nodefaults \
|
|
-fp hard \
|
|
-proc gekko \
|
|
-linkmode moreram \
|
|
-sdata 0 \
|
|
-sdata2 0 \
|
|
-m _prolog \
|
|
-lcf $(M177_LDSCRIPT) \
|
|
-unused -map $(M177_MAP) \
|
|
-w off \
|
|
|
|
$(M177_TARGET): $(M177_O_FILES) $(M177_LIBS)
|
|
@echo [177] creating $(M177_TARGET)
|
|
@echo $(M177_LIBS) $(M177_O_FILES) > build/M177_ofiles
|
|
@python3 tools/lcf.py rel 177 --output $(M177_LDSCRIPT)
|
|
@$(LD) -opt_partial -strip_partial $(M177_LDFLAGS) -o $(M177_TARGET) @build/M177_ofiles
|
|
|
|
$(BUILD_DIR)/rel/d/a/e/d_a_e_bs/%.o: rel/d/a/e/d_a_e_bs/%.cpp
|
|
@echo [177] building $@
|
|
@mkdir -p $(@D)
|
|
@$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp
|
|
@$(CC) $(CFLAGS) $(M177_CFLAGS) -c -o $@ $(basename $@).cpp
|
|
|
|
|