mirror of https://github.com/zeldaret/tp.git
57 lines
1.6 KiB
Makefile
57 lines
1.6 KiB
Makefile
#
|
|
# Generated By: dol2asm
|
|
#
|
|
|
|
M538_TARGET := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv4sand.plf
|
|
M538_LDSCRIPT := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv4sand.lcf
|
|
M538_MAP := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv4sand.map
|
|
|
|
M538_CPP_FILES := \
|
|
rel/executor.cpp \
|
|
rel/d/a/obj/d_a_obj_lv4sand/unknown_translation_unit_bss.cpp \
|
|
rel/d/a/obj/d_a_obj_lv4sand/d_a_obj_lv4sand.cpp \
|
|
|
|
M538_O_FILES := \
|
|
$(BUILD_DIR)/rel/executor.o \
|
|
$(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv4sand/unknown_translation_unit_bss.o \
|
|
$(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv4sand/d_a_obj_lv4sand.o \
|
|
|
|
M538_LIBS := \
|
|
|
|
M538_CFLAGS := \
|
|
-sdata 0 \
|
|
-sdata2 0 \
|
|
|
|
M538_LDFLAGS := \
|
|
-nodefaults \
|
|
-fp hard \
|
|
-proc gekko \
|
|
-linkmode moreram \
|
|
-sdata 0 \
|
|
-sdata2 0 \
|
|
-m _prolog \
|
|
-lcf $(M538_LDSCRIPT) \
|
|
-unused -map $(M538_MAP) \
|
|
-w off \
|
|
|
|
$(M538_TARGET): $(M538_O_FILES) $(M538_LIBS)
|
|
@echo [538] creating $(M538_TARGET)
|
|
@echo $(M538_LIBS) $(M538_O_FILES) > build/M538_ofiles
|
|
@python3 tools/lcf.py rel 538 --output $(M538_LDSCRIPT)
|
|
@$(LD) -opt_partial -strip_partial $(M538_LDFLAGS) -o $(M538_TARGET) @build/M538_ofiles
|
|
|
|
$(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv4sand/%.o: rel/d/a/obj/d_a_obj_lv4sand/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv4sand/%.d
|
|
@echo [538] building $@
|
|
@mkdir -p $(@D)
|
|
@$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp
|
|
@$(CC) $(CFLAGS) $(M538_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
|
|
M538_D_FILES := $(M538_O_FILES:.o=.d)
|
|
$(M538_D_FILES):
|
|
include $(wildcard $(M538_D_FILES))
|
|
endif
|
|
|
|
|