Fixed building with FAudio using Makefile.mingw.

This commit is contained in:
OBattler
2022-07-12 21:09:21 +02:00
parent 9cca54986f
commit 6adfdbd574

View File

@@ -423,6 +423,10 @@ RFLAGS += -DMTR_ENABLED
MINITRACEOBJ := minitrace.o
endif
ifeq ($(FAUDIO), y)
OPTS += -DUSE_FAUDIO
endif
# Options for the DEV branch.
ifeq ($(DEV_BRANCH), y)
OPTS += -DDEV_BRANCH
@@ -750,9 +754,6 @@ endif
ifeq ($(OPENAL), y)
SNDOBJ += openal.o
else
ifeq ($(FAUDIO), y)
OPTS += -DUSE_FAUDIO
endif
SNDOBJ += xaudio2.o
endif
@@ -767,8 +768,12 @@ endif
ifeq ($(OPENAL), y)
LIBS := -mwindows -lopenal -lcomctl32 -lSDL2 -limagehlp -ldinput8 -ldxguid -ldxerr8 -luser32 -lgdi32 -lwinmm -limm32 -lole32 -loleaut32 -lshell32 -lversion -luuid
else
ifeq ($(FAUDIO), y)
LIBS := -mwindows -lfaudio -lcomctl32 -lSDL2 -limagehlp -ldinput8 -ldxguid -ldxerr8 -luser32 -lgdi32 -lwinmm -limm32 -lole32 -loleaut32 -lshell32 -lversion -luuid
else
LIBS := -mwindows -lcomctl32 -lSDL2 -limagehlp -ldinput8 -ldxguid -ldxerr8 -luser32 -lgdi32 -lwinmm -limm32 -lole32 -loleaut32 -lshell32 -lversion -luuid
endif
endif
ifeq ($(RTMIDI), y)
SNDOBJ += midi_rtmidi.o