mirror of https://github.com/zeldaret/tp.git
48 lines
1.1 KiB
Makefile
48 lines
1.1 KiB
Makefile
#
|
|
# Generated By: dol2asm
|
|
#
|
|
|
|
M602_TARGET := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_rgate.plf
|
|
M602_LDSCRIPT := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_rgate.lcf
|
|
M602_MAP := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_rgate.map
|
|
|
|
M602_CPP_FILES := \
|
|
rel/executor.cpp \
|
|
rel/d/a/obj/d_a_obj_rgate/d_a_obj_rgate.cpp \
|
|
|
|
M602_O_FILES := \
|
|
$(BUILD_DIR)/rel/executor.o \
|
|
$(BUILD_DIR)/rel/d/a/obj/d_a_obj_rgate/d_a_obj_rgate.o \
|
|
|
|
M602_LIBS := \
|
|
|
|
M602_CFLAGS := \
|
|
-sdata 0 \
|
|
-sdata2 0 \
|
|
|
|
M602_LDFLAGS := \
|
|
-nodefaults \
|
|
-fp hard \
|
|
-proc gekko \
|
|
-linkmode moreram \
|
|
-sdata 0 \
|
|
-sdata2 0 \
|
|
-m _prolog \
|
|
-lcf $(M602_LDSCRIPT) \
|
|
-unused -map $(M602_MAP) \
|
|
-w off \
|
|
|
|
$(M602_TARGET): $(M602_O_FILES) $(M602_LIBS)
|
|
@echo [602] creating $(M602_TARGET)
|
|
@echo $(M602_LIBS) $(M602_O_FILES) > build/M602_ofiles
|
|
@python3 tools/lcf.py rel 602 --output $(M602_LDSCRIPT)
|
|
@$(LD) -opt_partial -strip_partial $(M602_LDFLAGS) -o $(M602_TARGET) @build/M602_ofiles
|
|
|
|
$(BUILD_DIR)/rel/d/a/obj/d_a_obj_rgate/%.o: rel/d/a/obj/d_a_obj_rgate/%.cpp
|
|
@echo [602] building $@
|
|
@mkdir -p $(@D)
|
|
@$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp
|
|
@$(CC) $(CFLAGS) $(M602_CFLAGS) -c -o $@ $(basename $@).cpp
|
|
|
|
|