tp/rel/d/a/npc/d_a_npc_doc/Makefile

50 lines
1.2 KiB
Makefile

#
# Generated By: dol2asm
#
M298_TARGET := $(BUILD_DIR)/rel/d/a/npc/d_a_npc_doc.plf
M298_LDSCRIPT := $(BUILD_DIR)/rel/d/a/npc/d_a_npc_doc.lcf
M298_MAP := $(BUILD_DIR)/rel/d/a/npc/d_a_npc_doc.map
M298_CPP_FILES := \
rel/executor.cpp \
rel/global_destructor_chain.cpp \
rel/d/a/npc/d_a_npc_doc/d_a_npc_doc.cpp \
M298_O_FILES := \
$(BUILD_DIR)/rel/executor.o \
$(BUILD_DIR)/rel/global_destructor_chain.o \
$(BUILD_DIR)/rel/d/a/npc/d_a_npc_doc/d_a_npc_doc.o \
M298_LIBS := \
M298_CFLAGS := \
-sdata 0 \
-sdata2 0 \
M298_LDFLAGS := \
-nodefaults \
-fp hard \
-proc gekko \
-linkmode moreram \
-sdata 0 \
-sdata2 0 \
-m _prolog \
-lcf $(M298_LDSCRIPT) \
-unused -map $(M298_MAP) \
-w off \
$(M298_TARGET): $(M298_O_FILES) $(M298_LIBS)
@echo [298] creating $(M298_TARGET)
@echo $(M298_LIBS) $(M298_O_FILES) > build/M298_ofiles
@python3 tools/lcf.py rel 298 --output $(M298_LDSCRIPT)
@$(LD) -opt_partial -strip_partial $(M298_LDFLAGS) -o $(M298_TARGET) @build/M298_ofiles
$(BUILD_DIR)/rel/d/a/npc/d_a_npc_doc/%.o: rel/d/a/npc/d_a_npc_doc/%.cpp
@echo [298] building $@
@mkdir -p $(@D)
@iconv -f UTF-8 -t CP932 < $< > $@.iconv.cpp
@$(CC) $(CFLAGS) $(M298_CFLAGS) -c -o $@ $@.iconv.cpp