mirror of https://github.com/zeldaret/tp.git
55 lines
1.4 KiB
Makefile
55 lines
1.4 KiB
Makefile
#
|
|
# Generated By: dol2asm
|
|
#
|
|
|
|
M17_TARGET := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_burnbox.plf
|
|
M17_LDSCRIPT := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_burnbox.lcf
|
|
M17_MAP := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_burnbox.map
|
|
|
|
M17_CPP_FILES := \
|
|
rel/executor.cpp \
|
|
rel/d/a/obj/d_a_obj_burnbox/d_a_obj_burnbox.cpp \
|
|
|
|
M17_O_FILES := \
|
|
$(BUILD_DIR)/rel/executor.o \
|
|
$(BUILD_DIR)/rel/d/a/obj/d_a_obj_burnbox/d_a_obj_burnbox.o \
|
|
|
|
M17_LIBS := \
|
|
|
|
M17_CFLAGS := \
|
|
-sdata 0 \
|
|
-sdata2 0 \
|
|
|
|
M17_LDFLAGS := \
|
|
-nodefaults \
|
|
-fp hard \
|
|
-proc gekko \
|
|
-linkmode moreram \
|
|
-sdata 0 \
|
|
-sdata2 0 \
|
|
-m _prolog \
|
|
-lcf $(M17_LDSCRIPT) \
|
|
-unused -map $(M17_MAP) \
|
|
-w off \
|
|
|
|
$(M17_TARGET): $(M17_O_FILES) $(M17_LIBS)
|
|
@echo [ 17] creating $(M17_TARGET)
|
|
@echo $(M17_LIBS) $(M17_O_FILES) > build/M17_ofiles
|
|
@python3 tools/lcf.py rel 17 --output $(M17_LDSCRIPT)
|
|
@$(LD) -opt_partial -strip_partial $(M17_LDFLAGS) -o $(M17_TARGET) @build/M17_ofiles
|
|
|
|
$(BUILD_DIR)/rel/d/a/obj/d_a_obj_burnbox/%.o: rel/d/a/obj/d_a_obj_burnbox/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_burnbox/%.d
|
|
@echo [ 17] building $@
|
|
@mkdir -p $(@D)
|
|
@$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp
|
|
@$(CC) $(CFLAGS) $(M17_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
|
|
M17_D_FILES := $(M17_O_FILES:.o=.d)
|
|
$(M17_D_FILES):
|
|
include $(wildcard $(M17_D_FILES))
|
|
endif
|
|
|
|
|