mirror of https://github.com/zeldaret/tp.git
44 lines
1.2 KiB
Makefile
44 lines
1.2 KiB
Makefile
#
|
|
# Generated By: dol2asm
|
|
#
|
|
|
|
LIBGF_A_CPP_FILES := \
|
|
libs/dolphin/gf/GFGeometry.cpp \
|
|
libs/dolphin/gf/GFLight.cpp \
|
|
libs/dolphin/gf/GFPixel.cpp \
|
|
libs/dolphin/gf/GFTev.cpp \
|
|
|
|
LIBGF_A_O_FILES := \
|
|
$(BUILD_DIR)/libs/dolphin/gf/GFGeometry.o \
|
|
$(BUILD_DIR)/libs/dolphin/gf/GFLight.o \
|
|
$(BUILD_DIR)/libs/dolphin/gf/GFPixel.o \
|
|
$(BUILD_DIR)/libs/dolphin/gf/GFTev.o \
|
|
|
|
LIBGF_A_CFLAGS := \
|
|
-inline auto \
|
|
|
|
LIBGF_A_LDFLAGS := \
|
|
-nodefaults \
|
|
-fp hard \
|
|
-proc gekko \
|
|
-linkmode moreram \
|
|
|
|
$(BUILD_DIR)/libgf.a: $(LIBGF_A_O_FILES)
|
|
@echo linking... $(BUILD_DIR)/libgf.a
|
|
@echo $(LIBGF_A_O_FILES) > build/LIBGF_A_ofiles
|
|
@$(LD) -xm l $(LIBGF_A_LDFLAGS) -o $(BUILD_DIR)/libgf.a @build/LIBGF_A_ofiles
|
|
|
|
$(BUILD_DIR)/libs/dolphin/gf/%.o: libs/dolphin/gf/%.cpp $(BUILD_DIR)/libs/dolphin/gf/%.d
|
|
@mkdir -p $(@D)
|
|
@echo building... $<
|
|
@$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp
|
|
@$(CC) $(CFLAGS) $(LIBGF_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
|
|
LIBGF_A_D_FILES := $(LIBGF_A_O_FILES:.o=.d)
|
|
$(LIBGF_A_D_FILES):
|
|
include $(wildcard $(LIBGF_A_D_FILES))
|
|
endif
|
|
|