mirror of https://github.com/zeldaret/tp.git
50 lines
1.3 KiB
Makefile
50 lines
1.3 KiB
Makefile
#
|
|
# Generated By: dol2asm
|
|
#
|
|
|
|
M422_TARGET := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_chest.plf
|
|
M422_LDSCRIPT := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_chest.lcf
|
|
M422_MAP := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_chest.map
|
|
|
|
M422_CPP_FILES := \
|
|
rel/executor.cpp \
|
|
rel/d/a/obj/d_a_obj_chest/unknown_translation_unit_bss.cpp \
|
|
rel/d/a/obj/d_a_obj_chest/d_a_obj_chest.cpp \
|
|
|
|
M422_O_FILES := \
|
|
$(BUILD_DIR)/rel/executor.o \
|
|
$(BUILD_DIR)/rel/d/a/obj/d_a_obj_chest/unknown_translation_unit_bss.o \
|
|
$(BUILD_DIR)/rel/d/a/obj/d_a_obj_chest/d_a_obj_chest.o \
|
|
|
|
M422_LIBS := \
|
|
|
|
M422_CFLAGS := \
|
|
-sdata 0 \
|
|
-sdata2 0 \
|
|
|
|
M422_LDFLAGS := \
|
|
-nodefaults \
|
|
-fp hard \
|
|
-proc gekko \
|
|
-linkmode moreram \
|
|
-sdata 0 \
|
|
-sdata2 0 \
|
|
-m _prolog \
|
|
-lcf $(M422_LDSCRIPT) \
|
|
-unused -map $(M422_MAP) \
|
|
-w off \
|
|
|
|
$(M422_TARGET): $(M422_O_FILES) $(M422_LIBS)
|
|
@echo [422] creating $(M422_TARGET)
|
|
@echo $(M422_LIBS) $(M422_O_FILES) > build/M422_ofiles
|
|
@python3 tools/lcf.py rel 422 --output $(M422_LDSCRIPT)
|
|
@$(LD) -opt_partial -strip_partial $(M422_LDFLAGS) -o $(M422_TARGET) @build/M422_ofiles
|
|
|
|
$(BUILD_DIR)/rel/d/a/obj/d_a_obj_chest/%.o: rel/d/a/obj/d_a_obj_chest/%.cpp
|
|
@echo [422] building $@
|
|
@mkdir -p $(@D)
|
|
@$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp
|
|
@$(CC) $(CFLAGS) $(M422_CFLAGS) -c -o $@ $(basename $@).cpp
|
|
|
|
|