mirror of https://github.com/zeldaret/tp.git
50 lines
1.2 KiB
Makefile
50 lines
1.2 KiB
Makefile
#
|
|
# Generated By: dol2asm
|
|
#
|
|
|
|
M435_TARGET := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_dan.plf
|
|
M435_LDSCRIPT := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_dan.lcf
|
|
M435_MAP := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_dan.map
|
|
|
|
M435_CPP_FILES := \
|
|
rel/executor.cpp \
|
|
rel/global_destructor_chain.cpp \
|
|
rel/d/a/obj/d_a_obj_dan/d_a_obj_dan.cpp \
|
|
|
|
M435_O_FILES := \
|
|
$(BUILD_DIR)/rel/executor.o \
|
|
$(BUILD_DIR)/rel/global_destructor_chain.o \
|
|
$(BUILD_DIR)/rel/d/a/obj/d_a_obj_dan/d_a_obj_dan.o \
|
|
|
|
M435_LIBS := \
|
|
|
|
M435_CFLAGS := \
|
|
-sdata 0 \
|
|
-sdata2 0 \
|
|
|
|
M435_LDFLAGS := \
|
|
-nodefaults \
|
|
-fp hard \
|
|
-proc gekko \
|
|
-linkmode moreram \
|
|
-sdata 0 \
|
|
-sdata2 0 \
|
|
-m _prolog \
|
|
-lcf $(M435_LDSCRIPT) \
|
|
-unused -map $(M435_MAP) \
|
|
-w off \
|
|
|
|
$(M435_TARGET): $(M435_O_FILES) $(M435_LIBS)
|
|
@echo [435] creating $(M435_TARGET)
|
|
@echo $(M435_LIBS) $(M435_O_FILES) > build/M435_ofiles
|
|
@python3 tools/lcf.py rel 435 --output $(M435_LDSCRIPT)
|
|
@$(LD) -opt_partial -strip_partial $(M435_LDFLAGS) -o $(M435_TARGET) @build/M435_ofiles
|
|
|
|
$(BUILD_DIR)/rel/d/a/obj/d_a_obj_dan/%.o: rel/d/a/obj/d_a_obj_dan/%.cpp
|
|
@echo [435] building $@
|
|
@mkdir -p $(@D)
|
|
@iconv -f UTF-8 -t CP932 < $< > $@.iconv.cpp
|
|
@$(CC) $(CFLAGS) $(M435_CFLAGS) -c -o $@ $@.iconv.cpp
|
|
|
|
|