aboutsummaryrefslogtreecommitdiffstats
path: root/src/native/speex/Makefile
blob: 10942efdcf36eb257f7f50a36cb84f14a1923b10 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
JAVA_HOME?=/usr/lib/jvm/java-6-sun
SPEEX_HOME?=/home/lubomir/src/speex-1.2rc1

TARGET=../../../lib/native/linux/libjspeex.so

CC=gcc
CPPFLAGS=-D_JNI_IMPLEMENTATION_ \
         -I$(JAVA_HOME)/include -I$(JAVA_HOME)/include/linux \
         -I$(SPEEX_HOME)/include \
         -O2 \
         -Wall
LDFLAGS=-shared -fPIC
LIBS=-L$(SPEEX_HOME)/libspeex/.libs -Wl,-Bstatic -lspeex -lspeexdsp -Wl,-Bdynamic -lm

$(TARGET): net_java_sip_communicator_impl_neomedia_codec_audio_speex_Speex.c net_java_sip_communicator_impl_neomedia_codec_audio_speex_Speex.h
	$(CC) $(CPPFLAGS) $< $(LDFLAGS) -o $@ $(LIBS)