mirror of https://github.com/zeldaret/tp.git
57 lines
1.5 KiB
Makefile
57 lines
1.5 KiB
Makefile
#
|
|
# Generated By: dol2asm
|
|
#
|
|
|
|
M112_TARGET := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_stick.plf
|
|
M112_LDSCRIPT := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_stick.lcf
|
|
M112_MAP := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_stick.map
|
|
|
|
M112_CPP_FILES := \
|
|
rel/executor.cpp \
|
|
rel/global_destructor_chain.cpp \
|
|
rel/d/a/obj/d_a_obj_stick/d_a_obj_stick.cpp \
|
|
|
|
M112_O_FILES := \
|
|
$(BUILD_DIR)/rel/executor.o \
|
|
$(BUILD_DIR)/rel/global_destructor_chain.o \
|
|
$(BUILD_DIR)/rel/d/a/obj/d_a_obj_stick/d_a_obj_stick.o \
|
|
|
|
M112_LIBS := \
|
|
|
|
M112_CFLAGS := \
|
|
-sdata 0 \
|
|
-sdata2 0 \
|
|
|
|
M112_LDFLAGS := \
|
|
-nodefaults \
|
|
-fp hard \
|
|
-proc gekko \
|
|
-linkmode moreram \
|
|
-sdata 0 \
|
|
-sdata2 0 \
|
|
-m _prolog \
|
|
-lcf $(M112_LDSCRIPT) \
|
|
-unused -map $(M112_MAP) \
|
|
-w off \
|
|
|
|
$(M112_TARGET): $(M112_O_FILES) $(M112_LIBS)
|
|
@echo [112] creating $(M112_TARGET)
|
|
@echo $(M112_LIBS) $(M112_O_FILES) > build/M112_ofiles
|
|
@python3 tools/lcf.py rel 112 --output $(M112_LDSCRIPT)
|
|
@$(LD) -opt_partial -strip_partial $(M112_LDFLAGS) -o $(M112_TARGET) @build/M112_ofiles
|
|
|
|
$(BUILD_DIR)/rel/d/a/obj/d_a_obj_stick/%.o: rel/d/a/obj/d_a_obj_stick/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_stick/%.d
|
|
@echo [112] building $@
|
|
@mkdir -p $(@D)
|
|
@$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp
|
|
@$(CC) $(CFLAGS) $(M112_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp
|
|
@if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi
|
|
|
|
ifndef DISABLE_DEPS
|
|
M112_D_FILES := $(M112_O_FILES:.o=.d)
|
|
$(M112_D_FILES):
|
|
include $(wildcard $(M112_D_FILES))
|
|
endif
|
|
|
|
|