mirror of https://github.com/zeldaret/tp.git
37 lines
1.1 KiB
Makefile
37 lines
1.1 KiB
Makefile
#
|
|
# Generated By: dol2asm
|
|
#
|
|
|
|
LIBSSTANDARD_A_CPP_FILES := \
|
|
libs/SSystem/SStandard/s_basic.cpp \
|
|
|
|
LIBSSTANDARD_A_O_FILES := \
|
|
$(BUILD_DIR)/libs/SSystem/SStandard/s_basic.o \
|
|
|
|
LIBSSTANDARD_A_CFLAGS := \
|
|
|
|
LIBSSTANDARD_A_LDFLAGS := \
|
|
-nodefaults \
|
|
-fp hard \
|
|
-proc gekko \
|
|
-linkmode moreram \
|
|
|
|
$(BUILD_DIR)/libSStandard.a: $(LIBSSTANDARD_A_O_FILES)
|
|
@echo linking... $(BUILD_DIR)/libSStandard.a
|
|
@echo $(LIBSSTANDARD_A_O_FILES) > build/LIBSSTANDARD_A_ofiles
|
|
@$(LD) -xm l $(LIBSSTANDARD_A_LDFLAGS) -o $(BUILD_DIR)/libSStandard.a @build/LIBSSTANDARD_A_ofiles
|
|
|
|
$(BUILD_DIR)/libs/SSystem/SStandard/%.o: libs/SSystem/SStandard/%.cpp $(BUILD_DIR)/libs/SSystem/SStandard/%.d
|
|
@mkdir -p $(@D)
|
|
@echo building... $<
|
|
@$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp
|
|
@$(CC) $(CFLAGS) $(LIBSSTANDARD_A_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
|
|
LIBSSTANDARD_A_D_FILES := $(LIBSSTANDARD_A_O_FILES:.o=.d)
|
|
$(LIBSSTANDARD_A_D_FILES):
|
|
include $(wildcard $(LIBSSTANDARD_A_D_FILES))
|
|
endif
|
|
|