mirror of
https://github.com/encounter/tp.git
synced 2026-07-11 06:18:46 -07:00
57 lines
1.5 KiB
Makefile
57 lines
1.5 KiB
Makefile
#
|
|
# Generated By: dol2asm
|
|
#
|
|
|
|
M349_TARGET := $(BUILD_DIR)/rel/d/a/npc/d_a_npc_prayer.plf
|
|
M349_LDSCRIPT := $(BUILD_DIR)/rel/d/a/npc/d_a_npc_prayer.lcf
|
|
M349_MAP := $(BUILD_DIR)/rel/d/a/npc/d_a_npc_prayer.map
|
|
|
|
M349_CPP_FILES := \
|
|
rel/executor.cpp \
|
|
rel/global_destructor_chain.cpp \
|
|
rel/d/a/npc/d_a_npc_prayer/d_a_npc_prayer.cpp \
|
|
|
|
M349_O_FILES := \
|
|
$(BUILD_DIR)/rel/executor.o \
|
|
$(BUILD_DIR)/rel/global_destructor_chain.o \
|
|
$(BUILD_DIR)/rel/d/a/npc/d_a_npc_prayer/d_a_npc_prayer.o \
|
|
|
|
M349_LIBS := \
|
|
|
|
M349_CFLAGS := \
|
|
-sdata 0 \
|
|
-sdata2 0 \
|
|
|
|
M349_LDFLAGS := \
|
|
-nodefaults \
|
|
-fp hard \
|
|
-proc gekko \
|
|
-linkmode moreram \
|
|
-sdata 0 \
|
|
-sdata2 0 \
|
|
-m _prolog \
|
|
-lcf $(M349_LDSCRIPT) \
|
|
-unused -map $(M349_MAP) \
|
|
-w off \
|
|
|
|
$(M349_TARGET): $(M349_O_FILES) $(M349_LIBS)
|
|
@echo [349] creating $(M349_TARGET)
|
|
@echo $(M349_LIBS) $(M349_O_FILES) > build/M349_ofiles
|
|
@python3 tools/lcf.py rel 349 --output $(M349_LDSCRIPT)
|
|
@$(LD) -opt_partial -strip_partial $(M349_LDFLAGS) -o $(M349_TARGET) @build/M349_ofiles
|
|
|
|
$(BUILD_DIR)/rel/d/a/npc/d_a_npc_prayer/%.o: rel/d/a/npc/d_a_npc_prayer/%.cpp $(BUILD_DIR)/rel/d/a/npc/d_a_npc_prayer/%.d
|
|
@echo [349] building $@
|
|
@mkdir -p $(@D)
|
|
@$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp
|
|
@$(CC) $(CFLAGS) $(M349_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
|
|
M349_D_FILES := $(M349_O_FILES:.o=.d)
|
|
$(M349_D_FILES):
|
|
include $(wildcard $(M349_D_FILES))
|
|
endif
|
|
|
|
|