mirror of https://github.com/zeldaret/tp.git
50 lines
1.3 KiB
Makefile
50 lines
1.3 KiB
Makefile
#
|
|
# Generated By: dol2asm
|
|
#
|
|
|
|
M411_TARGET := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_bmshutter.plf
|
|
M411_LDSCRIPT := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_bmshutter.lcf
|
|
M411_MAP := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_bmshutter.map
|
|
|
|
M411_CPP_FILES := \
|
|
rel/executor.cpp \
|
|
rel/d/a/obj/d_a_obj_bmshutter/unknown_translation_unit_bss.cpp \
|
|
rel/d/a/obj/d_a_obj_bmshutter/d_a_obj_bmshutter.cpp \
|
|
|
|
M411_O_FILES := \
|
|
$(BUILD_DIR)/rel/executor.o \
|
|
$(BUILD_DIR)/rel/d/a/obj/d_a_obj_bmshutter/unknown_translation_unit_bss.o \
|
|
$(BUILD_DIR)/rel/d/a/obj/d_a_obj_bmshutter/d_a_obj_bmshutter.o \
|
|
|
|
M411_LIBS := \
|
|
|
|
M411_CFLAGS := \
|
|
-sdata 0 \
|
|
-sdata2 0 \
|
|
|
|
M411_LDFLAGS := \
|
|
-nodefaults \
|
|
-fp hard \
|
|
-proc gekko \
|
|
-linkmode moreram \
|
|
-sdata 0 \
|
|
-sdata2 0 \
|
|
-m _prolog \
|
|
-lcf $(M411_LDSCRIPT) \
|
|
-unused -map $(M411_MAP) \
|
|
-w off \
|
|
|
|
$(M411_TARGET): $(M411_O_FILES) $(M411_LIBS)
|
|
@echo [411] creating $(M411_TARGET)
|
|
@echo $(M411_LIBS) $(M411_O_FILES) > build/M411_ofiles
|
|
@python3 tools/lcf.py rel 411 --output $(M411_LDSCRIPT)
|
|
@$(LD) -opt_partial -strip_partial $(M411_LDFLAGS) -o $(M411_TARGET) @build/M411_ofiles
|
|
|
|
$(BUILD_DIR)/rel/d/a/obj/d_a_obj_bmshutter/%.o: rel/d/a/obj/d_a_obj_bmshutter/%.cpp
|
|
@echo [411] building $@
|
|
@mkdir -p $(@D)
|
|
@iconv -f UTF-8 -t CP932 < $< > $@.iconv.cpp
|
|
@$(CC) $(CFLAGS) $(M411_CFLAGS) -c -o $@ $@.iconv.cpp
|
|
|
|
|