mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-08-12 03:17:39 -04:00
f070ee948f
* getLayerNo_common_common finally matched * dolphin ai / ar / card work from prime decomp * work on dolphin dvd / dsp / db * more dolphin os work * si work * remove asm * build fix
44 lines
1015 B
Makefile
44 lines
1015 B
Makefile
#
|
|
# Generated By: dol2asm
|
|
#
|
|
|
|
LIBDSP_A_CPP_FILES := \
|
|
libs/dolphin/dsp/dsp.c \
|
|
libs/dolphin/dsp/dsp_debug.c \
|
|
libs/dolphin/dsp/dsp_task.c \
|
|
|
|
LIBDSP_A_O_FILES := \
|
|
$(BUILD_DIR)/libs/dolphin/dsp/dsp.o \
|
|
$(BUILD_DIR)/libs/dolphin/dsp/dsp_debug.o \
|
|
$(BUILD_DIR)/libs/dolphin/dsp/dsp_task.o \
|
|
|
|
LIBDSP_A_CFLAGS := \
|
|
-Cpp_exceptions off \
|
|
-proc gekko \
|
|
-fp hard \
|
|
-nodefaults \
|
|
-str reuse \
|
|
-RTTI off \
|
|
-maxerrors 5 \
|
|
-enum int $(INCLUDES) \
|
|
-O4,p \
|
|
-lang=c \
|
|
|
|
LIBDSP_A_LDFLAGS := \
|
|
-nodefaults \
|
|
-fp hard \
|
|
-proc gekko \
|
|
-linkmode moreram \
|
|
|
|
$(BUILD_DIR)/libdsp.a: $(LIBDSP_A_O_FILES)
|
|
@echo linking... $(BUILD_DIR)/libdsp.a
|
|
@echo $(LIBDSP_A_O_FILES) > build/LIBDSP_A_ofiles
|
|
@$(LD) -xm l $(LIBDSP_A_LDFLAGS) -o $(BUILD_DIR)/libdsp.a @build/LIBDSP_A_ofiles
|
|
|
|
$(BUILD_DIR)/libs/dolphin/dsp/%.o: libs/dolphin/dsp/%.c
|
|
@mkdir -p $(@D)
|
|
@echo building... $<
|
|
@$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).c
|
|
@$(WINE) tools/mwcc_compiler/1.2.5/mwcceppc.exe $(LIBDSP_A_CFLAGS) -c -o $@ $(basename $@).c
|
|
|