mirror of https://github.com/zeldaret/tp.git
57 lines
1.5 KiB
Makefile
57 lines
1.5 KiB
Makefile
#
|
|
# Generated By: dol2asm
|
|
#
|
|
|
|
M21_TARGET := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_swpush.plf
|
|
M21_LDSCRIPT := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_swpush.lcf
|
|
M21_MAP := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_swpush.map
|
|
|
|
M21_CPP_FILES := \
|
|
rel/executor.cpp \
|
|
rel/global_destructor_chain.cpp \
|
|
rel/d/a/obj/d_a_obj_swpush/d_a_obj_swpush.cpp \
|
|
|
|
M21_O_FILES := \
|
|
$(BUILD_DIR)/rel/executor.o \
|
|
$(BUILD_DIR)/rel/global_destructor_chain.o \
|
|
$(BUILD_DIR)/rel/d/a/obj/d_a_obj_swpush/d_a_obj_swpush.o \
|
|
|
|
M21_LIBS := \
|
|
|
|
M21_CFLAGS := \
|
|
-sdata 0 \
|
|
-sdata2 0 \
|
|
|
|
M21_LDFLAGS := \
|
|
-nodefaults \
|
|
-fp hard \
|
|
-proc gekko \
|
|
-linkmode moreram \
|
|
-sdata 0 \
|
|
-sdata2 0 \
|
|
-m _prolog \
|
|
-lcf $(M21_LDSCRIPT) \
|
|
-unused -map $(M21_MAP) \
|
|
-w off \
|
|
|
|
$(M21_TARGET): $(M21_O_FILES) $(M21_LIBS)
|
|
@echo [ 21] creating $(M21_TARGET)
|
|
@echo $(M21_LIBS) $(M21_O_FILES) > build/M21_ofiles
|
|
@python3 tools/lcf.py rel 21 --output $(M21_LDSCRIPT)
|
|
@$(LD) -opt_partial -strip_partial $(M21_LDFLAGS) -o $(M21_TARGET) @build/M21_ofiles
|
|
|
|
$(BUILD_DIR)/rel/d/a/obj/d_a_obj_swpush/%.o: rel/d/a/obj/d_a_obj_swpush/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_swpush/%.d
|
|
@echo [ 21] building $@
|
|
@mkdir -p $(@D)
|
|
@$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp
|
|
@$(CC) $(CFLAGS) $(M21_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
|
|
M21_D_FILES := $(M21_O_FILES:.o=.d)
|
|
$(M21_D_FILES):
|
|
include $(wildcard $(M21_D_FILES))
|
|
endif
|
|
|
|
|