Files
tp/libs/dolphin/vi/Makefile
T
hatal175 7825666971 Add 1.2.5e to several makefiles and matching dolphin lib stuff (#247)
* Fix select_occurence in diff.py

* Use 1.2.5e and metroid prime decomp to match dlphin lib funcs

* Fix FRANK_COMPILER WINE typo

* Double WINE use removal

* Organize dolphin compiler makefile names

* Use inline auto instead of special inline where applicable
I couldn't make CARDOpen work with the flag though
2023-01-20 10:51:21 -07:00

49 lines
1.1 KiB
Makefile

#
# Generated By: dol2asm
#
LIBVI_A_CPP_FILES := \
libs/dolphin/vi/vi.c \
LIBVI_A_O_FILES := \
$(BUILD_DIR)/libs/dolphin/vi/vi.o \
LIBVI_A_CFLAGS := \
-Cpp_exceptions off \
-proc gekko \
-fp hard \
-nodefaults \
-str reuse \
-RTTI off \
-maxerrors 5 \
-enum int $(INCLUDES) \
-O4,p \
-lang=c \
LIBVI_A_LDFLAGS := \
-nodefaults \
-fp hard \
-proc gekko \
-linkmode moreram \
$(BUILD_DIR)/libvi.a: $(LIBVI_A_O_FILES)
@echo linking... $(BUILD_DIR)/libvi.a
@echo $(LIBVI_A_O_FILES) > build/LIBVI_A_ofiles
@$(LD) -xm l $(LIBVI_A_LDFLAGS) -o $(BUILD_DIR)/libvi.a @build/LIBVI_A_ofiles
$(BUILD_DIR)/libs/dolphin/vi/%.o: libs/dolphin/vi/%.c $(BUILD_DIR)/libs/dolphin/vi/%.d
@mkdir -p $(@D)
@echo building... $<
@$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).c
@$(DOLPHIN_LIB_CC) $(LIBVI_A_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).c
@if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi
@echo Frank is fixing $@
@$(PYTHON) $(FRANK) $@ $@ $@
ifndef DISABLE_DEPS
LIBVI_A_D_FILES := $(LIBVI_A_O_FILES:.o=.d)
$(LIBVI_A_D_FILES):
include $(wildcard $(LIBVI_A_D_FILES))
endif