mirror of https://github.com/zeldaret/tp.git
48 lines
1.1 KiB
Makefile
48 lines
1.1 KiB
Makefile
#
|
|
# Generated By: dol2asm
|
|
#
|
|
|
|
M97_TARGET := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_hhashi.plf
|
|
M97_LDSCRIPT := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_hhashi.lcf
|
|
M97_MAP := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_hhashi.map
|
|
|
|
M97_CPP_FILES := \
|
|
rel/executor.cpp \
|
|
rel/d/a/obj/d_a_obj_hhashi/d_a_obj_hhashi.cpp \
|
|
|
|
M97_O_FILES := \
|
|
$(BUILD_DIR)/rel/executor.o \
|
|
$(BUILD_DIR)/rel/d/a/obj/d_a_obj_hhashi/d_a_obj_hhashi.o \
|
|
|
|
M97_LIBS := \
|
|
|
|
M97_CFLAGS := \
|
|
-sdata 0 \
|
|
-sdata2 0 \
|
|
|
|
M97_LDFLAGS := \
|
|
-nodefaults \
|
|
-fp hard \
|
|
-proc gekko \
|
|
-linkmode moreram \
|
|
-sdata 0 \
|
|
-sdata2 0 \
|
|
-m _prolog \
|
|
-lcf $(M97_LDSCRIPT) \
|
|
-unused -map $(M97_MAP) \
|
|
-w off \
|
|
|
|
$(M97_TARGET): $(M97_O_FILES) $(M97_LIBS)
|
|
@echo [ 97] creating $(M97_TARGET)
|
|
@echo $(M97_LIBS) $(M97_O_FILES) > build/M97_ofiles
|
|
@python3 tools/lcf.py rel 97 --output $(M97_LDSCRIPT)
|
|
@$(LD) -opt_partial -strip_partial $(M97_LDFLAGS) -o $(M97_TARGET) @build/M97_ofiles
|
|
|
|
$(BUILD_DIR)/rel/d/a/obj/d_a_obj_hhashi/%.o: rel/d/a/obj/d_a_obj_hhashi/%.cpp
|
|
@echo [ 97] building $@
|
|
@mkdir -p $(@D)
|
|
@$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp
|
|
@$(CC) $(CFLAGS) $(M97_CFLAGS) -c -o $@ $(basename $@).cpp
|
|
|
|
|