Mercurial > hg > audiostuff
diff 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 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/intercom/Makefile Fri Jun 25 09:57:52 2010 +0200 @@ -0,0 +1,47 @@ + +# +# Makefile for intercom 0.4 +# for Narrowband (8kHz sample frequency): WIDEB=1 +# for Wideband (16kHz sample frequency): WIDEB=2 +# +# use checkinstall instead of make install to build a RPM + +# intercom +CFLAGS = -Wall -O2 -funroll-loops -DEFRSTUB -DG729STUB -DWIDEB=1 -I/usr/local/include +CFLAGS1 = -Wall -O2 -funroll-loops -DEFRSTUB -DG729STUB -DWIDEB=2 -I/usr/local/include +LIBS = ilbc/ilbc.a g711/g711.o gsm/gsm.a g726/g726.a -lm -lspeex +LIBS1 = ilbc/ilbc.a g711/g711.o gsm/gsm.a g726/g726.a -lm -lspeex +SUBDIRS=g711 ilbc gsm g726 + +SUBS :=$(foreach sub,$(SUBDIRS), $(sub)/$(sub).a) + +BIN_DIR=/usr/local/bin +LIB_DIR=/usr/local/lib + +OBJS = intercomd aec.o cirbuf.o oss.o rtp.o tcp.o udp.o intercomd.o sinuston.o + +# Implicit Rules +.cpp.o: + c++ $(CFLAGS) -c $< + +# Explicit Rules +all: + @for T in $(SUBDIRS); do make -C $$T $@; done + c++ $(CFLAGS) -o intercomd aec.cpp cirbuf.cpp oss.cpp \ + rtp.cpp tcp.cpp udp.cpp intercomd.cpp sinuston.cpp \ + $(LIBS) + c++ $(CFLAGS1) -o intercomd1 aec.cpp cirbuf.cpp oss.cpp \ + rtp.cpp tcp.cpp udp.cpp intercomd.cpp sinuston.cpp \ + $(LIBS1) + +install: + install intercom intercom.tcl intercom.ui.tcl $(BIN_DIR) + install intercom.conf $(BIN_DIR) + install wdisplay.tcl $(BIN_DIR) + install --strip intercomd $(BIN_DIR) + install --strip intercomd1 $(BIN_DIR) + install libudp1.0.6.so $(LIB_DIR) + +clean: + @for T in $(SUBDIRS); do make -C $$T $@; done + rm -f intercomd intercomd1