mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-29 15:51:45 +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.
|
# 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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue