mirror of https://github.com/zeldaret/tp.git
48 lines
1.1 KiB
Makefile
48 lines
1.1 KiB
Makefile
#
|
|
# Generated By: dol2asm
|
|
#
|
|
|
|
M17_TARGET := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_burnbox.plf
|
|
M17_LDSCRIPT := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_burnbox.lcf
|
|
M17_MAP := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_burnbox.map
|
|
|
|
M17_CPP_FILES := \
|
|
rel/executor.cpp \
|
|
rel/d/a/obj/d_a_obj_burnbox/d_a_obj_burnbox.cpp \
|
|
|
|
M17_O_FILES := \
|
|
$(BUILD_DIR)/rel/executor.o \
|
|
$(BUILD_DIR)/rel/d/a/obj/d_a_obj_burnbox/d_a_obj_burnbox.o \
|
|
|
|
M17_LIBS := \
|
|
|
|
M17_CFLAGS := \
|
|
-sdata 0 \
|
|
-sdata2 0 \
|
|
|
|
M17_LDFLAGS := \
|
|
-nodefaults \
|
|
-fp hard \
|
|
-proc gekko \
|
|
-linkmode moreram \
|
|
-sdata 0 \
|
|
-sdata2 0 \
|
|
-m _prolog \
|
|
-lcf $(M17_LDSCRIPT) \
|
|
-unused -map $(M17_MAP) \
|
|
-w off \
|
|
|
|
$(M17_TARGET): $(M17_O_FILES) $(M17_LIBS)
|
|
@echo [ 17] creating $(M17_TARGET)
|
|
@echo $(M17_LIBS) $(M17_O_FILES) > build/M17_ofiles
|
|
@python3 tools/lcf.py rel 17 --output $(M17_LDSCRIPT)
|
|
@$(LD) -opt_partial -strip_partial $(M17_LDFLAGS) -o $(M17_TARGET) @build/M17_ofiles
|
|
|
|
$(BUILD_DIR)/rel/d/a/obj/d_a_obj_burnbox/%.o: rel/d/a/obj/d_a_obj_burnbox/%.cpp
|
|
@echo [ 17] building $@
|
|
@mkdir -p $(@D)
|
|
@iconv -f UTF-8 -t CP932 < $< > $@.iconv.cpp
|
|
@$(CC) $(CFLAGS) $(M17_CFLAGS) -c -o $@ $@.iconv.cpp
|
|
|
|
|