mirror of https://github.com/zeldaret/tp.git
55 lines
1.4 KiB
Makefile
55 lines
1.4 KiB
Makefile
#
|
|
# Generated By: dol2asm
|
|
#
|
|
|
|
M755_TARGET := $(BUILD_DIR)/rel/d/a/d_a_tboxSw.plf
|
|
M755_LDSCRIPT := $(BUILD_DIR)/rel/d/a/d_a_tboxSw.lcf
|
|
M755_MAP := $(BUILD_DIR)/rel/d/a/d_a_tboxSw.map
|
|
|
|
M755_CPP_FILES := \
|
|
rel/executor.cpp \
|
|
rel/d/a/d_a_tboxSw/d_a_tboxSw.cpp \
|
|
|
|
M755_O_FILES := \
|
|
$(BUILD_DIR)/rel/executor.o \
|
|
$(BUILD_DIR)/rel/d/a/d_a_tboxSw/d_a_tboxSw.o \
|
|
|
|
M755_LIBS := \
|
|
|
|
M755_CFLAGS := \
|
|
-sdata 0 \
|
|
-sdata2 0 \
|
|
|
|
M755_LDFLAGS := \
|
|
-nodefaults \
|
|
-fp hard \
|
|
-proc gekko \
|
|
-linkmode moreram \
|
|
-sdata 0 \
|
|
-sdata2 0 \
|
|
-m _prolog \
|
|
-lcf $(M755_LDSCRIPT) \
|
|
-unused -map $(M755_MAP) \
|
|
-w off \
|
|
|
|
$(M755_TARGET): $(M755_O_FILES) $(M755_LIBS)
|
|
@echo [755] creating $(M755_TARGET)
|
|
@echo $(M755_LIBS) $(M755_O_FILES) > build/M755_ofiles
|
|
@python3 tools/lcf.py rel 755 --output $(M755_LDSCRIPT)
|
|
@$(LD) -opt_partial -strip_partial $(M755_LDFLAGS) -o $(M755_TARGET) @build/M755_ofiles
|
|
|
|
$(BUILD_DIR)/rel/d/a/d_a_tboxSw/%.o: rel/d/a/d_a_tboxSw/%.cpp $(BUILD_DIR)/rel/d/a/d_a_tboxSw/%.d
|
|
@echo [755] building $@
|
|
@mkdir -p $(@D)
|
|
@$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp
|
|
@$(CC) $(CFLAGS) $(M755_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
|
|
M755_D_FILES := $(M755_O_FILES:.o=.d)
|
|
$(M755_D_FILES):
|
|
include $(wildcard $(M755_D_FILES))
|
|
endif
|
|
|
|
|