mirror of https://github.com/zeldaret/tp.git
48 lines
1.1 KiB
Makefile
48 lines
1.1 KiB
Makefile
#
|
|
# Generated By: dol2asm
|
|
#
|
|
|
|
M43_TARGET := $(BUILD_DIR)/rel/d/a/d_a_vrbox.plf
|
|
M43_LDSCRIPT := $(BUILD_DIR)/rel/d/a/d_a_vrbox.lcf
|
|
M43_MAP := $(BUILD_DIR)/rel/d/a/d_a_vrbox.map
|
|
|
|
M43_CPP_FILES := \
|
|
rel/executor.cpp \
|
|
rel/d/a/d_a_vrbox/d_a_vrbox.cpp \
|
|
|
|
M43_O_FILES := \
|
|
$(BUILD_DIR)/rel/executor.o \
|
|
$(BUILD_DIR)/rel/d/a/d_a_vrbox/d_a_vrbox.o \
|
|
|
|
M43_LIBS := \
|
|
|
|
M43_CFLAGS := \
|
|
-sdata 0 \
|
|
-sdata2 0 \
|
|
|
|
M43_LDFLAGS := \
|
|
-nodefaults \
|
|
-fp hard \
|
|
-proc gekko \
|
|
-linkmode moreram \
|
|
-sdata 0 \
|
|
-sdata2 0 \
|
|
-m _prolog \
|
|
-lcf $(M43_LDSCRIPT) \
|
|
-unused -map $(M43_MAP) \
|
|
-w off \
|
|
|
|
$(M43_TARGET): $(M43_O_FILES) $(M43_LIBS)
|
|
@echo [ 43] creating $(M43_TARGET)
|
|
@echo $(M43_LIBS) $(M43_O_FILES) > build/M43_ofiles
|
|
@python3 tools/lcf.py rel 43 --output $(M43_LDSCRIPT)
|
|
@$(LD) -opt_partial -strip_partial $(M43_LDFLAGS) -o $(M43_TARGET) @build/M43_ofiles
|
|
|
|
$(BUILD_DIR)/rel/d/a/d_a_vrbox/%.o: rel/d/a/d_a_vrbox/%.cpp
|
|
@echo [ 43] building $@
|
|
@mkdir -p $(@D)
|
|
@$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp
|
|
@$(CC) $(CFLAGS) $(M43_CFLAGS) -c -o $@ $(basename $@).cpp
|
|
|
|
|