Mercurial > fife-parpg
comparison ext/openal-soft/Makefile @ 0:4a0efb7baf70
* Datasets becomes the new trunk and retires after that :-)
author | mvbarracuda@33b003aa-7bff-0310-803a-e67f0ece8222 |
---|---|
date | Sun, 29 Jun 2008 18:44:17 +0000 |
parents | |
children | 7fa2ac496050 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:4a0efb7baf70 |
---|---|
1 CC=cc -I "." -I "./include/" -I "./OpenAL32/Include" | |
2 CFLAGS= -fPIC -D_GNU_SOURCE=1 -Dopenal_EXPORTS -g -O2 -funroll-loops -Wall -Wextra -fno-strict-aliasing -fvisibility=hidden -DHAVE_GCC_VISIBILITY -D_REENTRANT -DAL_BUILD_LIBRARY | |
3 LDFLAGS= -shared -lpthread -ldl -lm -fPIC -g -O2 -funroll-loops | |
4 prefix=/usr | |
5 libdir=$(prefix)/lib | |
6 $srcdir=OpenAL32/*.o | |
7 f="" | |
8 | |
9 OPENAL_OBJS = OpenAL32/alBuffer.o OpenAL32/alFilter.o OpenAL32/alSource.o OpenAL32/OpenAL32.o OpenAL32/alAuxEffectSlot.o OpenAL32/alEffect.o OpenAL32/alError.o OpenAL32/alListener.o OpenAL32/alState.o OpenAL32/alThunk.o OpenAL32/alExtension.o | |
10 ALC_OBJS = Alc/ALc.o Alc/ALu.o Alc/alcConfig.o Alc/alcRing.o Alc/alcThread.o Alc/bs2b.o Alc/wave.o Alc/alsa.o | |
11 | |
12 #OPENAL_OBJS = OpenAL32/alBuffer.c OpenAL32/alFilter.c | |
13 #ALC_OBJS = Alc/*.c | |
14 .c.o: | |
15 $(CC) -c $(CFLAGS) $*.c | |
16 | |
17 all: openal-soft | |
18 | |
19 | |
20 openal-soft: $(OPENAL_OBJS) $(ALC_OBJS) | |
21 $(CC) $(LDFLAGS) -o libopenal.so *.o | |
22 /bin/rm -f *.o *~ | |
23 | |
24 clean: | |
25 /bin/rm -f *.o *~ libopenal.so | |
26 | |
27 install: | |
28 mkdir -p $(prefix)/lib | |
29 cp -f alsoftrc.sample ~/.alsofrc | |
30 cp libopenal.so $(prefix)/lib/libopenal_soft.so | |
31 cp -r -f include/AL $(prefix)/include/ |