mirror of https://github.com/zeldaret/tp.git
48 lines
1.1 KiB
Makefile
48 lines
1.1 KiB
Makefile
#
|
|
# Generated By: dol2asm
|
|
#
|
|
|
|
M444_TARGET := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_fchain.plf
|
|
M444_LDSCRIPT := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_fchain.lcf
|
|
M444_MAP := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_fchain.map
|
|
|
|
M444_CPP_FILES := \
|
|
rel/executor.cpp \
|
|
rel/d/a/obj/d_a_obj_fchain/d_a_obj_fchain.cpp \
|
|
|
|
M444_O_FILES := \
|
|
$(BUILD_DIR)/rel/executor.o \
|
|
$(BUILD_DIR)/rel/d/a/obj/d_a_obj_fchain/d_a_obj_fchain.o \
|
|
|
|
M444_LIBS := \
|
|
|
|
M444_CFLAGS := \
|
|
-sdata 0 \
|
|
-sdata2 0 \
|
|
|
|
M444_LDFLAGS := \
|
|
-nodefaults \
|
|
-fp hard \
|
|
-proc gekko \
|
|
-linkmode moreram \
|
|
-sdata 0 \
|
|
-sdata2 0 \
|
|
-m _prolog \
|
|
-lcf $(M444_LDSCRIPT) \
|
|
-unused -map $(M444_MAP) \
|
|
-w off \
|
|
|
|
$(M444_TARGET): $(M444_O_FILES) $(M444_LIBS)
|
|
@echo [444] creating $(M444_TARGET)
|
|
@echo $(M444_LIBS) $(M444_O_FILES) > build/M444_ofiles
|
|
@python3 tools/lcf.py rel 444 --output $(M444_LDSCRIPT)
|
|
@$(LD) -opt_partial -strip_partial $(M444_LDFLAGS) -o $(M444_TARGET) @build/M444_ofiles
|
|
|
|
$(BUILD_DIR)/rel/d/a/obj/d_a_obj_fchain/%.o: rel/d/a/obj/d_a_obj_fchain/%.cpp
|
|
@echo [444] building $@
|
|
@mkdir -p $(@D)
|
|
@iconv -f UTF-8 -t CP932 < $< > $@.iconv.cpp
|
|
@$(CC) $(CFLAGS) $(M444_CFLAGS) -c -o $@ $@.iconv.cpp
|
|
|
|
|