mirror of https://github.com/zeldaret/tp.git
50 lines
1.2 KiB
Makefile
50 lines
1.2 KiB
Makefile
#
|
|
# Generated By: dol2asm
|
|
#
|
|
|
|
M594_TARGET := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_pleaf.plf
|
|
M594_LDSCRIPT := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_pleaf.lcf
|
|
M594_MAP := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_pleaf.map
|
|
|
|
M594_CPP_FILES := \
|
|
rel/executor.cpp \
|
|
rel/global_destructor_chain.cpp \
|
|
rel/d/a/obj/d_a_obj_pleaf/d_a_obj_pleaf.cpp \
|
|
|
|
M594_O_FILES := \
|
|
$(BUILD_DIR)/rel/executor.o \
|
|
$(BUILD_DIR)/rel/global_destructor_chain.o \
|
|
$(BUILD_DIR)/rel/d/a/obj/d_a_obj_pleaf/d_a_obj_pleaf.o \
|
|
|
|
M594_LIBS := \
|
|
|
|
M594_CFLAGS := \
|
|
-sdata 0 \
|
|
-sdata2 0 \
|
|
|
|
M594_LDFLAGS := \
|
|
-nodefaults \
|
|
-fp hard \
|
|
-proc gekko \
|
|
-linkmode moreram \
|
|
-sdata 0 \
|
|
-sdata2 0 \
|
|
-m _prolog \
|
|
-lcf $(M594_LDSCRIPT) \
|
|
-unused -map $(M594_MAP) \
|
|
-w off \
|
|
|
|
$(M594_TARGET): $(M594_O_FILES) $(M594_LIBS)
|
|
@echo [594] creating $(M594_TARGET)
|
|
@echo $(M594_LIBS) $(M594_O_FILES) > build/M594_ofiles
|
|
@python3 tools/lcf.py rel 594 --output $(M594_LDSCRIPT)
|
|
@$(LD) -opt_partial -strip_partial $(M594_LDFLAGS) -o $(M594_TARGET) @build/M594_ofiles
|
|
|
|
$(BUILD_DIR)/rel/d/a/obj/d_a_obj_pleaf/%.o: rel/d/a/obj/d_a_obj_pleaf/%.cpp
|
|
@echo [594] building $@
|
|
@mkdir -p $(@D)
|
|
@$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp
|
|
@$(CC) $(CFLAGS) $(M594_CFLAGS) -c -o $@ $(basename $@).cpp
|
|
|
|
|