Files
tp/rel/d/a/npc/d_a_npc_toby/Makefile
T
2023-01-06 03:52:59 -08:00

57 lines
1.5 KiB
Makefile

#
# Generated By: dol2asm
#
M374_TARGET := $(BUILD_DIR)/rel/d/a/npc/d_a_npc_toby.plf
M374_LDSCRIPT := $(BUILD_DIR)/rel/d/a/npc/d_a_npc_toby.lcf
M374_MAP := $(BUILD_DIR)/rel/d/a/npc/d_a_npc_toby.map
M374_CPP_FILES := \
rel/executor.cpp \
rel/global_destructor_chain.cpp \
rel/d/a/npc/d_a_npc_toby/d_a_npc_toby.cpp \
M374_O_FILES := \
$(BUILD_DIR)/rel/executor.o \
$(BUILD_DIR)/rel/global_destructor_chain.o \
$(BUILD_DIR)/rel/d/a/npc/d_a_npc_toby/d_a_npc_toby.o \
M374_LIBS := \
M374_CFLAGS := \
-sdata 0 \
-sdata2 0 \
M374_LDFLAGS := \
-nodefaults \
-fp hard \
-proc gekko \
-linkmode moreram \
-sdata 0 \
-sdata2 0 \
-m _prolog \
-lcf $(M374_LDSCRIPT) \
-unused -map $(M374_MAP) \
-w off \
$(M374_TARGET): $(M374_O_FILES) $(M374_LIBS)
@echo [374] creating $(M374_TARGET)
@echo $(M374_LIBS) $(M374_O_FILES) > build/M374_ofiles
@python3 tools/lcf.py rel 374 --output $(M374_LDSCRIPT)
@$(LD) -opt_partial -strip_partial $(M374_LDFLAGS) -o $(M374_TARGET) @build/M374_ofiles
$(BUILD_DIR)/rel/d/a/npc/d_a_npc_toby/%.o: rel/d/a/npc/d_a_npc_toby/%.cpp $(BUILD_DIR)/rel/d/a/npc/d_a_npc_toby/%.d
@echo [374] building $@
@mkdir -p $(@D)
@$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp
@$(CC) $(CFLAGS) $(M374_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp
@if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi
ifndef DISABLE_DEPS
M374_D_FILES := $(M374_O_FILES:.o=.d)
$(M374_D_FILES):
include $(wildcard $(M374_D_FILES))
endif