mirror of https://github.com/zeldaret/tp.git
50 lines
1.3 KiB
Makefile
50 lines
1.3 KiB
Makefile
#
|
|
# Generated By: dol2asm
|
|
#
|
|
|
|
M100_TARGET := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_kgate.plf
|
|
M100_LDSCRIPT := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_kgate.lcf
|
|
M100_MAP := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_kgate.map
|
|
|
|
M100_CPP_FILES := \
|
|
rel/executor.cpp \
|
|
rel/d/a/obj/d_a_obj_kgate/unknown_translation_unit_bss.cpp \
|
|
rel/d/a/obj/d_a_obj_kgate/d_a_obj_kgate.cpp \
|
|
|
|
M100_O_FILES := \
|
|
$(BUILD_DIR)/rel/executor.o \
|
|
$(BUILD_DIR)/rel/d/a/obj/d_a_obj_kgate/unknown_translation_unit_bss.o \
|
|
$(BUILD_DIR)/rel/d/a/obj/d_a_obj_kgate/d_a_obj_kgate.o \
|
|
|
|
M100_LIBS := \
|
|
|
|
M100_CFLAGS := \
|
|
-sdata 0 \
|
|
-sdata2 0 \
|
|
|
|
M100_LDFLAGS := \
|
|
-nodefaults \
|
|
-fp hard \
|
|
-proc gekko \
|
|
-linkmode moreram \
|
|
-sdata 0 \
|
|
-sdata2 0 \
|
|
-m _prolog \
|
|
-lcf $(M100_LDSCRIPT) \
|
|
-unused -map $(M100_MAP) \
|
|
-w off \
|
|
|
|
$(M100_TARGET): $(M100_O_FILES) $(M100_LIBS)
|
|
@echo [100] creating $(M100_TARGET)
|
|
@echo $(M100_LIBS) $(M100_O_FILES) > build/M100_ofiles
|
|
@python3 tools/lcf.py rel 100 --output $(M100_LDSCRIPT)
|
|
@$(LD) -opt_partial -strip_partial $(M100_LDFLAGS) -o $(M100_TARGET) @build/M100_ofiles
|
|
|
|
$(BUILD_DIR)/rel/d/a/obj/d_a_obj_kgate/%.o: rel/d/a/obj/d_a_obj_kgate/%.cpp
|
|
@echo [100] building $@
|
|
@mkdir -p $(@D)
|
|
@$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp
|
|
@$(CC) $(CFLAGS) $(M100_CFLAGS) -c -o $@ $(basename $@).cpp
|
|
|
|
|