mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-10 07:12:07 +00:00
Integrate OpenAL into the options system
This commit is contained in:
parent
a388254252
commit
905b31a918
2 changed files with 14 additions and 0 deletions
9
Makefile
9
Makefile
|
@ -30,6 +30,10 @@ WITH_CDA=yes
|
|||
# dependencies to libogg, libvorbis and libvorbisfile.
|
||||
WITH_OGG=yes
|
||||
|
||||
# Enables the optional OpenAL sound systems. Adds
|
||||
# a dependencx to libopenal
|
||||
WITH_OPENAL=yes
|
||||
|
||||
# Enables retexturing support. Adds a dependency to
|
||||
# libjpeg
|
||||
WITH_RETEXTURING=yes
|
||||
|
@ -182,6 +186,11 @@ release/quake2 : CFLAGS += -DOGG
|
|||
release/quake2 : LDFLAGS += -lvorbis -lvorbisfile -logg
|
||||
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)
|
||||
release/quake2 : CFLAGS += -DZIP
|
||||
release/quake2 : LDFLAGS += -lz
|
||||
|
|
|
@ -66,6 +66,11 @@ main ( int argc, char **argv )
|
|||
#else
|
||||
printf(" - OGG/Vorbis\n");
|
||||
#endif
|
||||
#ifdef USE_OPENAL
|
||||
printf(" + OpenAL\n");
|
||||
#else
|
||||
printf(" - OpenAL\n");
|
||||
#endif
|
||||
#ifdef ZIP
|
||||
printf(" + Zip file support\n");
|
||||
#else
|
||||
|
|
Loading…
Reference in a new issue