comparison intercom/Makefile @ 2:13be24d74cd2

import intercom-0.4.1
author Peter Meerwald <pmeerw@cosy.sbg.ac.at>
date Fri, 25 Jun 2010 09:57:52 +0200
parents
children
comparison
equal deleted inserted replaced
1:9cadc470e3da 2:13be24d74cd2
1
2 #
3 # Makefile for intercom 0.4
4 # for Narrowband (8kHz sample frequency): WIDEB=1
5 # for Wideband (16kHz sample frequency): WIDEB=2
6 #
7 # use checkinstall instead of make install to build a RPM
8
9 # intercom
10 CFLAGS = -Wall -O2 -funroll-loops -DEFRSTUB -DG729STUB -DWIDEB=1 -I/usr/local/include
11 CFLAGS1 = -Wall -O2 -funroll-loops -DEFRSTUB -DG729STUB -DWIDEB=2 -I/usr/local/include
12 LIBS = ilbc/ilbc.a g711/g711.o gsm/gsm.a g726/g726.a -lm -lspeex
13 LIBS1 = ilbc/ilbc.a g711/g711.o gsm/gsm.a g726/g726.a -lm -lspeex
14 SUBDIRS=g711 ilbc gsm g726
15
16 SUBS :=$(foreach sub,$(SUBDIRS), $(sub)/$(sub).a)
17
18 BIN_DIR=/usr/local/bin
19 LIB_DIR=/usr/local/lib
20
21 OBJS = intercomd aec.o cirbuf.o oss.o rtp.o tcp.o udp.o intercomd.o sinuston.o
22
23 # Implicit Rules
24 .cpp.o:
25 c++ $(CFLAGS) -c $<
26
27 # Explicit Rules
28 all:
29 @for T in $(SUBDIRS); do make -C $$T $@; done
30 c++ $(CFLAGS) -o intercomd aec.cpp cirbuf.cpp oss.cpp \
31 rtp.cpp tcp.cpp udp.cpp intercomd.cpp sinuston.cpp \
32 $(LIBS)
33 c++ $(CFLAGS1) -o intercomd1 aec.cpp cirbuf.cpp oss.cpp \
34 rtp.cpp tcp.cpp udp.cpp intercomd.cpp sinuston.cpp \
35 $(LIBS1)
36
37 install:
38 install intercom intercom.tcl intercom.ui.tcl $(BIN_DIR)
39 install intercom.conf $(BIN_DIR)
40 install wdisplay.tcl $(BIN_DIR)
41 install --strip intercomd $(BIN_DIR)
42 install --strip intercomd1 $(BIN_DIR)
43 install libudp1.0.6.so $(LIB_DIR)
44
45 clean:
46 @for T in $(SUBDIRS); do make -C $$T $@; done
47 rm -f intercomd intercomd1

Repositories maintained by Peter Meerwald, pmeerw@pmeerw.net.