mirror of https://github.com/zeldaret/tp.git
57 lines
1.5 KiB
Makefile
57 lines
1.5 KiB
Makefile
#
|
|
# Generated By: dol2asm
|
|
#
|
|
|
|
M406_TARGET := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_bemos.plf
|
|
M406_LDSCRIPT := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_bemos.lcf
|
|
M406_MAP := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_bemos.map
|
|
|
|
M406_CPP_FILES := \
|
|
rel/executor.cpp \
|
|
rel/global_destructor_chain.cpp \
|
|
rel/d/a/obj/d_a_obj_bemos/d_a_obj_bemos.cpp \
|
|
|
|
M406_O_FILES := \
|
|
$(BUILD_DIR)/rel/executor.o \
|
|
$(BUILD_DIR)/rel/global_destructor_chain.o \
|
|
$(BUILD_DIR)/rel/d/a/obj/d_a_obj_bemos/d_a_obj_bemos.o \
|
|
|
|
M406_LIBS := \
|
|
|
|
M406_CFLAGS := \
|
|
-sdata 0 \
|
|
-sdata2 0 \
|
|
|
|
M406_LDFLAGS := \
|
|
-nodefaults \
|
|
-fp hard \
|
|
-proc gekko \
|
|
-linkmode moreram \
|
|
-sdata 0 \
|
|
-sdata2 0 \
|
|
-m _prolog \
|
|
-lcf $(M406_LDSCRIPT) \
|
|
-unused -map $(M406_MAP) \
|
|
-w off \
|
|
|
|
$(M406_TARGET): $(M406_O_FILES) $(M406_LIBS)
|
|
@echo [406] creating $(M406_TARGET)
|
|
@echo $(M406_LIBS) $(M406_O_FILES) > build/M406_ofiles
|
|
@python3 tools/lcf.py rel 406 --output $(M406_LDSCRIPT)
|
|
@$(LD) -opt_partial -strip_partial $(M406_LDFLAGS) -o $(M406_TARGET) @build/M406_ofiles
|
|
|
|
$(BUILD_DIR)/rel/d/a/obj/d_a_obj_bemos/%.o: rel/d/a/obj/d_a_obj_bemos/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_bemos/%.d
|
|
@echo [406] building $@
|
|
@mkdir -p $(@D)
|
|
@$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp
|
|
@$(CC) $(CFLAGS) $(M406_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
|
|
M406_D_FILES := $(M406_O_FILES:.o=.d)
|
|
$(M406_D_FILES):
|
|
include $(wildcard $(M406_D_FILES))
|
|
endif
|
|
|
|
|