mirror of https://github.com/zeldaret/tp.git
50 lines
1.2 KiB
Makefile
50 lines
1.2 KiB
Makefile
#
|
|
# Generated By: dol2asm
|
|
#
|
|
|
|
M463_TARGET := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_gra2.plf
|
|
M463_LDSCRIPT := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_gra2.lcf
|
|
M463_MAP := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_gra2.map
|
|
|
|
M463_CPP_FILES := \
|
|
rel/executor.cpp \
|
|
rel/global_destructor_chain.cpp \
|
|
rel/d/a/obj/d_a_obj_gra2/d_a_obj_gra2.cpp \
|
|
|
|
M463_O_FILES := \
|
|
$(BUILD_DIR)/rel/executor.o \
|
|
$(BUILD_DIR)/rel/global_destructor_chain.o \
|
|
$(BUILD_DIR)/rel/d/a/obj/d_a_obj_gra2/d_a_obj_gra2.o \
|
|
|
|
M463_LIBS := \
|
|
|
|
M463_CFLAGS := \
|
|
-sdata 0 \
|
|
-sdata2 0 \
|
|
|
|
M463_LDFLAGS := \
|
|
-nodefaults \
|
|
-fp hard \
|
|
-proc gekko \
|
|
-linkmode moreram \
|
|
-sdata 0 \
|
|
-sdata2 0 \
|
|
-m _prolog \
|
|
-lcf $(M463_LDSCRIPT) \
|
|
-unused -map $(M463_MAP) \
|
|
-w off \
|
|
|
|
$(M463_TARGET): $(M463_O_FILES) $(M463_LIBS)
|
|
@echo [463] creating $(M463_TARGET)
|
|
@echo $(M463_LIBS) $(M463_O_FILES) > build/M463_ofiles
|
|
@python3 tools/lcf.py rel 463 --output $(M463_LDSCRIPT)
|
|
@$(LD) -opt_partial -strip_partial $(M463_LDFLAGS) -o $(M463_TARGET) @build/M463_ofiles
|
|
|
|
$(BUILD_DIR)/rel/d/a/obj/d_a_obj_gra2/%.o: rel/d/a/obj/d_a_obj_gra2/%.cpp
|
|
@echo [463] building $@
|
|
@mkdir -p $(@D)
|
|
@iconv -f UTF-8 -t CP932 < $< > $@.iconv.cpp
|
|
@$(CC) $(CFLAGS) $(M463_CFLAGS) -c -o $@ $@.iconv.cpp
|
|
|
|
|