mirror of https://github.com/zeldaret/tp.git
50 lines
1.2 KiB
Makefile
50 lines
1.2 KiB
Makefile
#
|
|
# Generated By: dol2asm
|
|
#
|
|
|
|
M397_TARGET := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_amiShutter.plf
|
|
M397_LDSCRIPT := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_amiShutter.lcf
|
|
M397_MAP := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_amiShutter.map
|
|
|
|
M397_CPP_FILES := \
|
|
rel/executor.cpp \
|
|
rel/global_destructor_chain.cpp \
|
|
rel/d/a/obj/d_a_obj_amiShutter/d_a_obj_amiShutter.cpp \
|
|
|
|
M397_O_FILES := \
|
|
$(BUILD_DIR)/rel/executor.o \
|
|
$(BUILD_DIR)/rel/global_destructor_chain.o \
|
|
$(BUILD_DIR)/rel/d/a/obj/d_a_obj_amiShutter/d_a_obj_amiShutter.o \
|
|
|
|
M397_LIBS := \
|
|
|
|
M397_CFLAGS := \
|
|
-sdata 0 \
|
|
-sdata2 0 \
|
|
|
|
M397_LDFLAGS := \
|
|
-nodefaults \
|
|
-fp hard \
|
|
-proc gekko \
|
|
-linkmode moreram \
|
|
-sdata 0 \
|
|
-sdata2 0 \
|
|
-m _prolog \
|
|
-lcf $(M397_LDSCRIPT) \
|
|
-unused -map $(M397_MAP) \
|
|
-w off \
|
|
|
|
$(M397_TARGET): $(M397_O_FILES) $(M397_LIBS)
|
|
@echo [397] creating $(M397_TARGET)
|
|
@echo $(M397_LIBS) $(M397_O_FILES) > build/M397_ofiles
|
|
@python3 tools/lcf.py rel 397 --output $(M397_LDSCRIPT)
|
|
@$(LD) -opt_partial -strip_partial $(M397_LDFLAGS) -o $(M397_TARGET) @build/M397_ofiles
|
|
|
|
$(BUILD_DIR)/rel/d/a/obj/d_a_obj_amiShutter/%.o: rel/d/a/obj/d_a_obj_amiShutter/%.cpp
|
|
@echo [397] building $@
|
|
@mkdir -p $(@D)
|
|
@iconv -f UTF-8 -t CP932 < $< > $@.iconv.cpp
|
|
@$(CC) $(CFLAGS) $(M397_CFLAGS) -c -o $@ $@.iconv.cpp
|
|
|
|
|