Mercurial > hg > audiostuff
view intercom/Makefile @ 6:22a74b01a099 default tip
implement more meaningful test program
author | Peter Meerwald <pmeerw@cosy.sbg.ac.at> |
---|---|
date | Fri, 25 Jun 2010 16:14:50 +0200 |
parents | 13be24d74cd2 |
children |
line wrap: on
line source
# # 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