Files
dusklight/libs/dolphin/db/Makefile
T
TakaRikka a41939ac5a clean up dolphin files / work on some rels (#212)
* d_a_alldie / d_a_tboxSw / d_a_tag_gstart / d_a_tag_hstop

* dolphin OS work / cleanup

* dolphin GX work / cleanup

* finish changing dolphin files to C

* more files into C

* match rest of MSL_C math functions

* more dolphin files converted to C

* remove asm

* d_bg_w work

* remove asm

* d_a_alink work / kytag14
2022-11-11 11:09:48 -07:00

32 lines
721 B
Makefile

#
# Generated By: dol2asm
#
LIBDB_A_CPP_FILES := \
libs/dolphin/db/db.c \
LIBDB_A_O_FILES := \
$(BUILD_DIR)/libs/dolphin/db/db.o \
LIBDB_A_CFLAGS := \
-O4,p \
-lang=c \
LIBDB_A_LDFLAGS := \
-nodefaults \
-fp hard \
-proc gekko \
-linkmode moreram \
$(BUILD_DIR)/libdb.a: $(LIBDB_A_O_FILES)
@echo linking... $(BUILD_DIR)/libdb.a
@echo $(LIBDB_A_O_FILES) > build/LIBDB_A_ofiles
@$(LD) -xm l $(LIBDB_A_LDFLAGS) -o $(BUILD_DIR)/libdb.a @build/LIBDB_A_ofiles
$(BUILD_DIR)/libs/dolphin/db/%.o: libs/dolphin/db/%.c
@mkdir -p $(@D)
@echo building... $<
@$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).c
@$(WINE) tools/mwcc_compiler/1.2.5/mwcceppc.exe $(CFLAGS) $(LIBDB_A_CFLAGS) -c -o $@ $(basename $@).c