mirror of https://github.com/zeldaret/tp.git
50 lines
1.3 KiB
Makefile
50 lines
1.3 KiB
Makefile
#
|
|
# Generated By: dol2asm
|
|
#
|
|
|
|
M584_TARGET := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_octhashi.plf
|
|
M584_LDSCRIPT := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_octhashi.lcf
|
|
M584_MAP := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_octhashi.map
|
|
|
|
M584_CPP_FILES := \
|
|
rel/executor.cpp \
|
|
rel/d/a/obj/d_a_obj_octhashi/unknown_translation_unit_bss.cpp \
|
|
rel/d/a/obj/d_a_obj_octhashi/d_a_obj_octhashi.cpp \
|
|
|
|
M584_O_FILES := \
|
|
$(BUILD_DIR)/rel/executor.o \
|
|
$(BUILD_DIR)/rel/d/a/obj/d_a_obj_octhashi/unknown_translation_unit_bss.o \
|
|
$(BUILD_DIR)/rel/d/a/obj/d_a_obj_octhashi/d_a_obj_octhashi.o \
|
|
|
|
M584_LIBS := \
|
|
|
|
M584_CFLAGS := \
|
|
-sdata 0 \
|
|
-sdata2 0 \
|
|
|
|
M584_LDFLAGS := \
|
|
-nodefaults \
|
|
-fp hard \
|
|
-proc gekko \
|
|
-linkmode moreram \
|
|
-sdata 0 \
|
|
-sdata2 0 \
|
|
-m _prolog \
|
|
-lcf $(M584_LDSCRIPT) \
|
|
-unused -map $(M584_MAP) \
|
|
-w off \
|
|
|
|
$(M584_TARGET): $(M584_O_FILES) $(M584_LIBS)
|
|
@echo [584] creating $(M584_TARGET)
|
|
@echo $(M584_LIBS) $(M584_O_FILES) > build/M584_ofiles
|
|
@python3 tools/lcf.py rel 584 --output $(M584_LDSCRIPT)
|
|
@$(LD) -opt_partial -strip_partial $(M584_LDFLAGS) -o $(M584_TARGET) @build/M584_ofiles
|
|
|
|
$(BUILD_DIR)/rel/d/a/obj/d_a_obj_octhashi/%.o: rel/d/a/obj/d_a_obj_octhashi/%.cpp
|
|
@echo [584] building $@
|
|
@mkdir -p $(@D)
|
|
@$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp
|
|
@$(CC) $(CFLAGS) $(M584_CFLAGS) -c -o $@ $(basename $@).cpp
|
|
|
|
|