mirror of https://github.com/zeldaret/tp.git
57 lines
1.6 KiB
Makefile
57 lines
1.6 KiB
Makefile
#
|
|
# Generated By: dol2asm
|
|
#
|
|
|
|
M645_TARGET := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_swpush2.plf
|
|
M645_LDSCRIPT := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_swpush2.lcf
|
|
M645_MAP := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_swpush2.map
|
|
|
|
M645_CPP_FILES := \
|
|
rel/executor.cpp \
|
|
rel/d/a/obj/d_a_obj_swpush2/unknown_translation_unit_bss.cpp \
|
|
rel/d/a/obj/d_a_obj_swpush2/d_a_obj_swpush2.cpp \
|
|
|
|
M645_O_FILES := \
|
|
$(BUILD_DIR)/rel/executor.o \
|
|
$(BUILD_DIR)/rel/d/a/obj/d_a_obj_swpush2/unknown_translation_unit_bss.o \
|
|
$(BUILD_DIR)/rel/d/a/obj/d_a_obj_swpush2/d_a_obj_swpush2.o \
|
|
|
|
M645_LIBS := \
|
|
|
|
M645_CFLAGS := \
|
|
-sdata 0 \
|
|
-sdata2 0 \
|
|
|
|
M645_LDFLAGS := \
|
|
-nodefaults \
|
|
-fp hard \
|
|
-proc gekko \
|
|
-linkmode moreram \
|
|
-sdata 0 \
|
|
-sdata2 0 \
|
|
-m _prolog \
|
|
-lcf $(M645_LDSCRIPT) \
|
|
-unused -map $(M645_MAP) \
|
|
-w off \
|
|
|
|
$(M645_TARGET): $(M645_O_FILES) $(M645_LIBS)
|
|
@echo [645] creating $(M645_TARGET)
|
|
@echo $(M645_LIBS) $(M645_O_FILES) > build/M645_ofiles
|
|
@python3 tools/lcf.py rel 645 --output $(M645_LDSCRIPT)
|
|
@$(LD) -opt_partial -strip_partial $(M645_LDFLAGS) -o $(M645_TARGET) @build/M645_ofiles
|
|
|
|
$(BUILD_DIR)/rel/d/a/obj/d_a_obj_swpush2/%.o: rel/d/a/obj/d_a_obj_swpush2/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_swpush2/%.d
|
|
@echo [645] building $@
|
|
@mkdir -p $(@D)
|
|
@$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp
|
|
@$(CC) $(CFLAGS) $(M645_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
|
|
M645_D_FILES := $(M645_O_FILES:.o=.d)
|
|
$(M645_D_FILES):
|
|
include $(wildcard $(M645_D_FILES))
|
|
endif
|
|
|
|
|