mirror of
https://github.com/zeldaret/tp
synced 2026-05-24 15:21:08 -04:00
981cfe7283
* TRK full match * remove trk asm * ar done * cleanup some dolphin headers * more dolphin cleanup * cleanup / GD fully matched * almost all of GX fully matched * GX / Mtx full matched * most of OS done * pad done * most of VI * remove asm * forgot couple vec funcs * couple JUtility matches
50 lines
1.2 KiB
Makefile
50 lines
1.2 KiB
Makefile
#
|
|
# Generated By: dol2asm
|
|
#
|
|
|
|
LIBGD_A_CPP_FILES := \
|
|
libs/dolphin/gd/GDBase.c \
|
|
libs/dolphin/gd/GDGeometry.c \
|
|
|
|
LIBGD_A_O_FILES := \
|
|
$(BUILD_DIR)/libs/dolphin/gd/GDBase.o \
|
|
$(BUILD_DIR)/libs/dolphin/gd/GDGeometry.o \
|
|
|
|
LIBGD_A_CFLAGS := \
|
|
-Cpp_exceptions off \
|
|
-proc gekko \
|
|
-fp hard \
|
|
-nodefaults \
|
|
-str reuse \
|
|
-inline auto \
|
|
-RTTI off \
|
|
-maxerrors 5 \
|
|
-enum int $(INCLUDES) \
|
|
-O4,p \
|
|
-lang=c \
|
|
|
|
LIBGD_A_LDFLAGS := \
|
|
-nodefaults \
|
|
-fp hard \
|
|
-proc gekko \
|
|
-linkmode moreram \
|
|
|
|
$(BUILD_DIR)/libgd.a: $(LIBGD_A_O_FILES)
|
|
@echo linking... $(BUILD_DIR)/libgd.a
|
|
@echo $(LIBGD_A_O_FILES) > build/LIBGD_A_ofiles
|
|
@$(LD) -xm l $(LIBGD_A_LDFLAGS) -o $(BUILD_DIR)/libgd.a @build/LIBGD_A_ofiles
|
|
|
|
$(BUILD_DIR)/libs/dolphin/gd/%.o: libs/dolphin/gd/%.c $(BUILD_DIR)/libs/dolphin/gd/%.d
|
|
@mkdir -p $(@D)
|
|
@echo building... $<
|
|
@$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).c
|
|
@$(DOLPHIN_LIB_CC) $(LIBGD_A_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).c
|
|
@if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi
|
|
|
|
ifndef DISABLE_DEPS
|
|
LIBGD_A_D_FILES := $(LIBGD_A_O_FILES:.o=.d)
|
|
$(LIBGD_A_D_FILES):
|
|
include $(wildcard $(LIBGD_A_D_FILES))
|
|
endif
|
|
|