mirror of https://github.com/zeldaret/tp.git
48 lines
1.2 KiB
Makefile
48 lines
1.2 KiB
Makefile
#
|
|
# Generated By: dol2asm
|
|
#
|
|
|
|
M535_TARGET := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv4gear.plf
|
|
M535_LDSCRIPT := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv4gear.lcf
|
|
M535_MAP := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv4gear.map
|
|
|
|
M535_CPP_FILES := \
|
|
rel/executor.cpp \
|
|
rel/d/a/obj/d_a_obj_lv4gear/d_a_obj_lv4gear.cpp \
|
|
|
|
M535_O_FILES := \
|
|
$(BUILD_DIR)/rel/executor.o \
|
|
$(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv4gear/d_a_obj_lv4gear.o \
|
|
|
|
M535_LIBS := \
|
|
|
|
M535_CFLAGS := \
|
|
-sdata 0 \
|
|
-sdata2 0 \
|
|
|
|
M535_LDFLAGS := \
|
|
-nodefaults \
|
|
-fp hard \
|
|
-proc gekko \
|
|
-linkmode moreram \
|
|
-sdata 0 \
|
|
-sdata2 0 \
|
|
-m _prolog \
|
|
-lcf $(M535_LDSCRIPT) \
|
|
-unused -map $(M535_MAP) \
|
|
-w off \
|
|
|
|
$(M535_TARGET): $(M535_O_FILES) $(M535_LIBS)
|
|
@echo [535] creating $(M535_TARGET)
|
|
@echo $(M535_LIBS) $(M535_O_FILES) > build/M535_ofiles
|
|
@python3 tools/lcf.py rel 535 --output $(M535_LDSCRIPT)
|
|
@$(LD) -opt_partial -strip_partial $(M535_LDFLAGS) -o $(M535_TARGET) @build/M535_ofiles
|
|
|
|
$(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv4gear/%.o: rel/d/a/obj/d_a_obj_lv4gear/%.cpp
|
|
@echo [535] building $@
|
|
@mkdir -p $(@D)
|
|
@$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp
|
|
@$(CC) $(CFLAGS) $(M535_CFLAGS) -c -o $@ $(basename $@).cpp
|
|
|
|
|