diff options
author | tma <tma@edf5b092-35ff-0310-97b2-ce42778d08ea> | 2006-01-26 21:20:47 +0000 |
---|---|---|
committer | tma <tma@edf5b092-35ff-0310-97b2-ce42778d08ea> | 2006-01-26 21:20:47 +0000 |
commit | f4fe48db7083090fcfbec7c95c21fbad2f721dfd (patch) | |
tree | dcf198832588ff4661eaf1504b5b6cd04fb42fb0 | |
parent | 8ab0b9c277ed99d93c2d5b76ceeb30078ac85f11 (diff) | |
download | ioquake3-aero-f4fe48db7083090fcfbec7c95c21fbad2f721dfd.tar.gz ioquake3-aero-f4fe48db7083090fcfbec7c95c21fbad2f721dfd.zip |
* SDL and OpenAL enabled on FreeBSD (patch from espelho)
git-svn-id: svn://svn.icculus.org/quake3/trunk@527 edf5b092-35ff-0310-97b2-ce42778d08ea
-rw-r--r-- | Makefile | 33 |
1 files changed, 32 insertions, 1 deletions
@@ -414,6 +414,21 @@ ifeq ($(PLATFORM),freebsd) DEBUG_CFLAGS=$(BASE_CFLAGS) -g + ifeq ($(USE_OPENAL),1) + BASE_CFLAGS += -DUSE_OPENAL=1 + ifeq ($(USE_OPENAL_DLOPEN),1) + BASE_CFLAGS += -DUSE_OPENAL_DLOPEN=1 + endif + endif + + ifeq ($(USE_CODEC_VORBIS),1) + BASE_CFLAGS += -DUSE_CODEC_VORBIS=1 + endif + + ifeq ($(USE_SDL),1) + BASE_CFLAGS += $(shell sdl11-config --cflags) -DUSE_SDL_VIDEO=1 -DUSE_SDL_SOUND=1 + endif + ifeq ($(ARCH),axp) CC=gcc BASE_CFLAGS += -DNO_VM_COMPILED @@ -439,7 +454,23 @@ ifeq ($(PLATFORM),freebsd) # don't need -ldl (FreeBSD) LDFLAGS=-lm - CLIENT_LDFLAGS=-L/usr/X11R6/$(LIB) -lGL -lX11 -lXext -lXxf86dga -lXxf86vm + CLIENT_LDFLAGS = + + ifeq ($(USE_SDL),1) + CLIENT_LDFLAGS += $(shell sdl11-config --libs) + else + CLIENT_LDFLAGS += -L/usr/X11R6/$(LIB) -lGL -lX11 -lXext -lXxf86dga -lXxf86vm + endif + + ifeq ($(USE_OPENAL),1) + ifneq ($(USE_OPENAL_DLOPEN),1) + CLIENT_LDFLAGS += $(THREAD_LDFLAGS) -lopenal + endif + endif + + ifeq ($(USE_CODEC_VORBIS),1) + CLIENT_LDFLAGS += -lvorbisfile -lvorbis -logg + endif else # ifeq freebsd |