mirror of https://github.com/zeldaret/tp.git
36 lines
899 B
Makefile
36 lines
899 B
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 := \
|
|
|
|
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
|
|
@mkdir -p $(@D)
|
|
@echo building... $<
|
|
@$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp
|
|
@$(CC) $(CFLAGS) $(LIBGF_A_CFLAGS) -c -o $@ $(basename $@).cpp
|
|
|