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
|
|
#
|
|
|
|
M332_TARGET := $(BUILD_DIR)/rel/d/a/npc/d_a_npc_len.plf
|
|
M332_LDSCRIPT := $(BUILD_DIR)/rel/d/a/npc/d_a_npc_len.lcf
|
|
M332_MAP := $(BUILD_DIR)/rel/d/a/npc/d_a_npc_len.map
|
|
|
|
M332_CPP_FILES := \
|
|
rel/executor.cpp \
|
|
rel/global_destructor_chain.cpp \
|
|
rel/d/a/npc/d_a_npc_len/d_a_npc_len.cpp \
|
|
|
|
M332_O_FILES := \
|
|
$(BUILD_DIR)/rel/executor.o \
|
|
$(BUILD_DIR)/rel/global_destructor_chain.o \
|
|
$(BUILD_DIR)/rel/d/a/npc/d_a_npc_len/d_a_npc_len.o \
|
|
|
|
M332_LIBS := \
|
|
|
|
M332_CFLAGS := \
|
|
-sdata 0 \
|
|
-sdata2 0 \
|
|
|
|
M332_LDFLAGS := \
|
|
-nodefaults \
|
|
-fp hard \
|
|
-proc gekko \
|
|
-linkmode moreram \
|
|
-sdata 0 \
|
|
-sdata2 0 \
|
|
-m _prolog \
|
|
-lcf $(M332_LDSCRIPT) \
|
|
-unused -map $(M332_MAP) \
|
|
-w off \
|
|
|
|
$(M332_TARGET): $(M332_O_FILES) $(M332_LIBS)
|
|
@echo [332] creating $(M332_TARGET)
|
|
@echo $(M332_LIBS) $(M332_O_FILES) > build/M332_ofiles
|
|
@python3 tools/lcf.py rel 332 --output $(M332_LDSCRIPT)
|
|
@$(LD) -opt_partial -strip_partial $(M332_LDFLAGS) -o $(M332_TARGET) @build/M332_ofiles
|
|
|
|
$(BUILD_DIR)/rel/d/a/npc/d_a_npc_len/%.o: rel/d/a/npc/d_a_npc_len/%.cpp $(BUILD_DIR)/rel/d/a/npc/d_a_npc_len/%.d
|
|
@echo [332] building $@
|
|
@mkdir -p $(@D)
|
|
@$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp
|
|
@$(CC) $(CFLAGS) $(M332_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
|
|
M332_D_FILES := $(M332_O_FILES:.o=.d)
|
|
$(M332_D_FILES):
|
|
include $(wildcard $(M332_D_FILES))
|
|
endif
|
|
|
|
|