mirror of https://github.com/zeldaret/tp.git
50 lines
1.3 KiB
Makefile
50 lines
1.3 KiB
Makefile
#
|
|
# Generated By: dol2asm
|
|
#
|
|
|
|
M111_TARGET := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_swallshutter.plf
|
|
M111_LDSCRIPT := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_swallshutter.lcf
|
|
M111_MAP := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_swallshutter.map
|
|
|
|
M111_CPP_FILES := \
|
|
rel/executor.cpp \
|
|
rel/global_destructor_chain.cpp \
|
|
rel/d/a/obj/d_a_obj_swallshutter/d_a_obj_sWallShutter.cpp \
|
|
|
|
M111_O_FILES := \
|
|
$(BUILD_DIR)/rel/executor.o \
|
|
$(BUILD_DIR)/rel/global_destructor_chain.o \
|
|
$(BUILD_DIR)/rel/d/a/obj/d_a_obj_swallshutter/d_a_obj_sWallShutter.o \
|
|
|
|
M111_LIBS := \
|
|
|
|
M111_CFLAGS := \
|
|
-sdata 0 \
|
|
-sdata2 0 \
|
|
|
|
M111_LDFLAGS := \
|
|
-nodefaults \
|
|
-fp hard \
|
|
-proc gekko \
|
|
-linkmode moreram \
|
|
-sdata 0 \
|
|
-sdata2 0 \
|
|
-m _prolog \
|
|
-lcf $(M111_LDSCRIPT) \
|
|
-unused -map $(M111_MAP) \
|
|
-w off \
|
|
|
|
$(M111_TARGET): $(M111_O_FILES) $(M111_LIBS)
|
|
@echo [111] creating $(M111_TARGET)
|
|
@echo $(M111_LIBS) $(M111_O_FILES) > build/M111_ofiles
|
|
@python3 tools/lcf.py rel 111 --output $(M111_LDSCRIPT)
|
|
@$(LD) -opt_partial -strip_partial $(M111_LDFLAGS) -o $(M111_TARGET) @build/M111_ofiles
|
|
|
|
$(BUILD_DIR)/rel/d/a/obj/d_a_obj_swallshutter/%.o: rel/d/a/obj/d_a_obj_swallshutter/%.cpp
|
|
@echo [111] building $@
|
|
@mkdir -p $(@D)
|
|
@$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp
|
|
@$(CC) $(CFLAGS) $(M111_CFLAGS) -c -o $@ $(basename $@).cpp
|
|
|
|
|