Added a ifdef to cAudioManager to include alcext as well has the somewaht complete makefile

This commit is contained in:
Raynaldo Rivera 2010-02-20 05:41:28 +00:00
parent ff15f046a1
commit 4cba44dd46
2 changed files with 15 additions and 2 deletions

View File

@ -18,7 +18,10 @@
#include <AL/al.h>
#include <AL/alc.h>
#ifdef CAUDIO_PLATFORM_LINUX
#include <AL/alext.h>
#endif
namespace cAudio
{

View File

@ -12,8 +12,18 @@ COMPILE_OPTIONS=-fPIC
CC=g++
all: $(OBJECT)
$(CC) -o $(SONAME) $(OBJECT) $(LINK_OPTIONS) $(DEPEND)
all: shared static
shared: $(OBJECT)
$(CC) -o $(SONAME) $(OBJECT) $(LINK_OPTIONS) $(DEPEND)
static: $(OBJECT)
ar cr libcAudio.$(VERSION).a *.o
ranlib libcAudio.$(VERSION).a
clean:
rm -f *.o *.so lib*.so libcAudio.$(VERSION).a *~
%.o: %.cpp
$(CC) -c -o $@ $< $(COMPILE_OPTIONS)