mirror of https://github.com/zeldaret/tp.git
50 lines
1.2 KiB
Makefile
50 lines
1.2 KiB
Makefile
#
|
|
# Generated By: dol2asm
|
|
#
|
|
|
|
M178_TARGET := $(BUILD_DIR)/rel/d/a/e/d_a_e_bu.plf
|
|
M178_LDSCRIPT := $(BUILD_DIR)/rel/d/a/e/d_a_e_bu.lcf
|
|
M178_MAP := $(BUILD_DIR)/rel/d/a/e/d_a_e_bu.map
|
|
|
|
M178_CPP_FILES := \
|
|
rel/executor.cpp \
|
|
rel/global_destructor_chain.cpp \
|
|
rel/d/a/e/d_a_e_bu/d_a_e_bu.cpp \
|
|
|
|
M178_O_FILES := \
|
|
$(BUILD_DIR)/rel/executor.o \
|
|
$(BUILD_DIR)/rel/global_destructor_chain.o \
|
|
$(BUILD_DIR)/rel/d/a/e/d_a_e_bu/d_a_e_bu.o \
|
|
|
|
M178_LIBS := \
|
|
|
|
M178_CFLAGS := \
|
|
-sdata 0 \
|
|
-sdata2 0 \
|
|
|
|
M178_LDFLAGS := \
|
|
-nodefaults \
|
|
-fp hard \
|
|
-proc gekko \
|
|
-linkmode moreram \
|
|
-sdata 0 \
|
|
-sdata2 0 \
|
|
-m _prolog \
|
|
-lcf $(M178_LDSCRIPT) \
|
|
-unused -map $(M178_MAP) \
|
|
-w off \
|
|
|
|
$(M178_TARGET): $(M178_O_FILES) $(M178_LIBS)
|
|
@echo [178] creating $(M178_TARGET)
|
|
@echo $(M178_LIBS) $(M178_O_FILES) > build/M178_ofiles
|
|
@python3 tools/lcf.py rel 178 --output $(M178_LDSCRIPT)
|
|
@$(LD) -opt_partial -strip_partial $(M178_LDFLAGS) -o $(M178_TARGET) @build/M178_ofiles
|
|
|
|
$(BUILD_DIR)/rel/d/a/e/d_a_e_bu/%.o: rel/d/a/e/d_a_e_bu/%.cpp
|
|
@echo [178] building $@
|
|
@mkdir -p $(@D)
|
|
@$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp
|
|
@$(CC) $(CFLAGS) $(M178_CFLAGS) -c -o $@ $(basename $@).cpp
|
|
|
|
|