mirror of https://github.com/zeldaret/tp.git
48 lines
1.1 KiB
Makefile
48 lines
1.1 KiB
Makefile
#
|
|
# Generated By: dol2asm
|
|
#
|
|
|
|
M440_TARGET := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_dust.plf
|
|
M440_LDSCRIPT := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_dust.lcf
|
|
M440_MAP := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_dust.map
|
|
|
|
M440_CPP_FILES := \
|
|
rel/executor.cpp \
|
|
rel/d/a/obj/d_a_obj_dust/d_a_obj_dust.cpp \
|
|
|
|
M440_O_FILES := \
|
|
$(BUILD_DIR)/rel/executor.o \
|
|
$(BUILD_DIR)/rel/d/a/obj/d_a_obj_dust/d_a_obj_dust.o \
|
|
|
|
M440_LIBS := \
|
|
|
|
M440_CFLAGS := \
|
|
-sdata 0 \
|
|
-sdata2 0 \
|
|
|
|
M440_LDFLAGS := \
|
|
-nodefaults \
|
|
-fp hard \
|
|
-proc gekko \
|
|
-linkmode moreram \
|
|
-sdata 0 \
|
|
-sdata2 0 \
|
|
-m _prolog \
|
|
-lcf $(M440_LDSCRIPT) \
|
|
-unused -map $(M440_MAP) \
|
|
-w off \
|
|
|
|
$(M440_TARGET): $(M440_O_FILES) $(M440_LIBS)
|
|
@echo [440] creating $(M440_TARGET)
|
|
@echo $(M440_LIBS) $(M440_O_FILES) > build/M440_ofiles
|
|
@python3 tools/lcf.py rel 440 --output $(M440_LDSCRIPT)
|
|
@$(LD) -opt_partial -strip_partial $(M440_LDFLAGS) -o $(M440_TARGET) @build/M440_ofiles
|
|
|
|
$(BUILD_DIR)/rel/d/a/obj/d_a_obj_dust/%.o: rel/d/a/obj/d_a_obj_dust/%.cpp
|
|
@echo [440] building $@
|
|
@mkdir -p $(@D)
|
|
@$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp
|
|
@$(CC) $(CFLAGS) $(M440_CFLAGS) -c -o $@ $(basename $@).cpp
|
|
|
|
|