Integrate OpenAL into the options system

This commit is contained in:
Yamagi Burmeister 2012-04-25 10:09:30 +00:00
parent a388254252
commit 905b31a918
2 changed files with 14 additions and 0 deletions

View file

@ -30,6 +30,10 @@ WITH_CDA=yes
# dependencies to libogg, libvorbis and libvorbisfile. # dependencies to libogg, libvorbis and libvorbisfile.
WITH_OGG=yes WITH_OGG=yes
# Enables the optional OpenAL sound systems. Adds
# a dependencx to libopenal
WITH_OPENAL=yes
# Enables retexturing support. Adds a dependency to # Enables retexturing support. Adds a dependency to
# libjpeg # libjpeg
WITH_RETEXTURING=yes WITH_RETEXTURING=yes
@ -182,6 +186,11 @@ release/quake2 : CFLAGS += -DOGG
release/quake2 : LDFLAGS += -lvorbis -lvorbisfile -logg release/quake2 : LDFLAGS += -lvorbis -lvorbisfile -logg
endif endif
ifeq ($(WITH_OPENAL),yes)
release/quake2 : CFLAGS += -DUSE_OPENAL -DDEFAULT_OPENAL_DRIVER='"libopenal.so.1"'
release/quake2 : LDFLAGS += -lopenal
endif
ifeq ($(WITH_ZIP),yes) ifeq ($(WITH_ZIP),yes)
release/quake2 : CFLAGS += -DZIP release/quake2 : CFLAGS += -DZIP
release/quake2 : LDFLAGS += -lz release/quake2 : LDFLAGS += -lz

View file

@ -66,6 +66,11 @@ main ( int argc, char **argv )
#else #else
printf(" - OGG/Vorbis\n"); printf(" - OGG/Vorbis\n");
#endif #endif
#ifdef USE_OPENAL
printf(" + OpenAL\n");
#else
printf(" - OpenAL\n");
#endif
#ifdef ZIP #ifdef ZIP
printf(" + Zip file support\n"); printf(" + Zip file support\n");
#else #else