mirror of https://github.com/zeldaret/tp.git
50 lines
1.3 KiB
Makefile
50 lines
1.3 KiB
Makefile
#
|
|
# Generated By: dol2asm
|
|
#
|
|
|
|
M448_TARGET := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_firepillar2.plf
|
|
M448_LDSCRIPT := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_firepillar2.lcf
|
|
M448_MAP := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_firepillar2.map
|
|
|
|
M448_CPP_FILES := \
|
|
rel/executor.cpp \
|
|
rel/d/a/obj/d_a_obj_firepillar2/unknown_translation_unit_bss.cpp \
|
|
rel/d/a/obj/d_a_obj_firepillar2/d_a_obj_firepillar2.cpp \
|
|
|
|
M448_O_FILES := \
|
|
$(BUILD_DIR)/rel/executor.o \
|
|
$(BUILD_DIR)/rel/d/a/obj/d_a_obj_firepillar2/unknown_translation_unit_bss.o \
|
|
$(BUILD_DIR)/rel/d/a/obj/d_a_obj_firepillar2/d_a_obj_firepillar2.o \
|
|
|
|
M448_LIBS := \
|
|
|
|
M448_CFLAGS := \
|
|
-sdata 0 \
|
|
-sdata2 0 \
|
|
|
|
M448_LDFLAGS := \
|
|
-nodefaults \
|
|
-fp hard \
|
|
-proc gekko \
|
|
-linkmode moreram \
|
|
-sdata 0 \
|
|
-sdata2 0 \
|
|
-m _prolog \
|
|
-lcf $(M448_LDSCRIPT) \
|
|
-unused -map $(M448_MAP) \
|
|
-w off \
|
|
|
|
$(M448_TARGET): $(M448_O_FILES) $(M448_LIBS)
|
|
@echo [448] creating $(M448_TARGET)
|
|
@echo $(M448_LIBS) $(M448_O_FILES) > build/M448_ofiles
|
|
@python3 tools/lcf.py rel 448 --output $(M448_LDSCRIPT)
|
|
@$(LD) -opt_partial -strip_partial $(M448_LDFLAGS) -o $(M448_TARGET) @build/M448_ofiles
|
|
|
|
$(BUILD_DIR)/rel/d/a/obj/d_a_obj_firepillar2/%.o: rel/d/a/obj/d_a_obj_firepillar2/%.cpp
|
|
@echo [448] building $@
|
|
@mkdir -p $(@D)
|
|
@$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp
|
|
@$(CC) $(CFLAGS) $(M448_CFLAGS) -c -o $@ $(basename $@).cpp
|
|
|
|
|