mirror of https://github.com/zeldaret/tp.git
48 lines
1.2 KiB
Makefile
48 lines
1.2 KiB
Makefile
#
|
|
# Generated By: dol2asm
|
|
#
|
|
|
|
M646_TARGET := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_swspinner.plf
|
|
M646_LDSCRIPT := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_swspinner.lcf
|
|
M646_MAP := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_swspinner.map
|
|
|
|
M646_CPP_FILES := \
|
|
rel/executor.cpp \
|
|
rel/d/a/obj/d_a_obj_swspinner/d_a_obj_swspinner.cpp \
|
|
|
|
M646_O_FILES := \
|
|
$(BUILD_DIR)/rel/executor.o \
|
|
$(BUILD_DIR)/rel/d/a/obj/d_a_obj_swspinner/d_a_obj_swspinner.o \
|
|
|
|
M646_LIBS := \
|
|
|
|
M646_CFLAGS := \
|
|
-sdata 0 \
|
|
-sdata2 0 \
|
|
|
|
M646_LDFLAGS := \
|
|
-nodefaults \
|
|
-fp hard \
|
|
-proc gekko \
|
|
-linkmode moreram \
|
|
-sdata 0 \
|
|
-sdata2 0 \
|
|
-m _prolog \
|
|
-lcf $(M646_LDSCRIPT) \
|
|
-unused -map $(M646_MAP) \
|
|
-w off \
|
|
|
|
$(M646_TARGET): $(M646_O_FILES) $(M646_LIBS)
|
|
@echo [646] creating $(M646_TARGET)
|
|
@echo $(M646_LIBS) $(M646_O_FILES) > build/M646_ofiles
|
|
@python3 tools/lcf.py rel 646 --output $(M646_LDSCRIPT)
|
|
@$(LD) -opt_partial -strip_partial $(M646_LDFLAGS) -o $(M646_TARGET) @build/M646_ofiles
|
|
|
|
$(BUILD_DIR)/rel/d/a/obj/d_a_obj_swspinner/%.o: rel/d/a/obj/d_a_obj_swspinner/%.cpp
|
|
@echo [646] building $@
|
|
@mkdir -p $(@D)
|
|
@$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp
|
|
@$(CC) $(CFLAGS) $(M646_CFLAGS) -c -o $@ $(basename $@).cpp
|
|
|
|
|