diff options
author | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 1999-12-05 01:40:43 +0000 |
---|---|---|
committer | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 1999-12-05 01:40:43 +0000 |
commit | 09fff5e6354c8603d3ca6df32ac705852425a8af (patch) | |
tree | 486272d58c5e3fe45aa8bdd8b36b4020883e26fc /codecs/Makefile | |
parent | 08659117c8215fd1a57eee36844182e575a53c0e (diff) |
Version 0.1.0 from FTP
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@87 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'codecs/Makefile')
-rwxr-xr-x | codecs/Makefile | 72 |
1 files changed, 72 insertions, 0 deletions
diff --git a/codecs/Makefile b/codecs/Makefile new file mode 100755 index 000000000..8dc01b4b1 --- /dev/null +++ b/codecs/Makefile @@ -0,0 +1,72 @@ +# +# Asterisk -- A telephony toolkit for Linux. +# +# Makefile for PBX frontends (dynamically loaded) +# +# Copyright (C) 1999, Adtran Inc. and Linux Support Services, LLC +# +# Mark Spencer <markster@linux-support.net> +# +# This program is free software, distributed under the terms of +# the GNU General Public License +# + +# +# Uncomment if you have g723.1 code (with the same API as the Annex-A code +# and have placed it in the g723.1 directory and/or the Annex-B code in +# g723.1b) +# +#MODG723=codec_g723_1.so codec_g723_1b.so +MODG723=$(shell [ -f g723.1/coder.c ] && echo "codec_g723_1.so") +MODG723+=$(shell [ -f g723.1b/coder2.c ] && echo "codec_g723_1b.so") + +CFLAGS+= + +LIBG723=g723.1/libg723.a +LIBG723B=g723.1b/libg723b.a +LIBGSM=gsm/lib/libgsm.a +LIBMP3=mp3/libmp3.a + +CODECS+=$(MODG723) codec_gsm.so #codec_mp3_d.so + +all: $(CODECS) + +clean: + rm -f *.so *.o + make -C g723.1 clean + make -C g723.1b clean + make -C gsm clean + make -C mp3 clean + +$(LIBG723): + make -C g723.1 all + +$(LIBGSM): + make -C gsm lib/libgsm.a + +$(LIBG723B): + make -C g723.1b all + +$(LIBMP3): + make -C mp3 all + +codec_g723_1.so : codec_g723_1.o $(LIBG723) + $(CC) -shared -Xlinker -x -o $@ $< $(LIBG723) + +codec_g723_1b.o : codec_g723_1.c + $(CC) -c -o $@ $(CFLAGS) -DANNEX_B $< + +codec_g723_1b.so : codec_g723_1b.o $(LIBG723B) + $(CC) -shared -Xlinker -x -o $@ $< $(LIBG723B) -lm + +codec_gsm.so: codec_gsm.o $(LIBGSM) + $(CC) -shared -Xlinker -x -o $@ $< $(LIBGSM) + +codec_mp3_d.so: codec_mp3_d.o $(LIBMP3) + $(CC) -shared -Xlinker -x -o $@ $< $(LIBMP3) + +%.so : %.o + $(CC) -shared -Xlinker -x -o $@ $< + +install: all + for x in $(CODECS); do $(INSTALL) -m 755 $$x $(MODULES_DIR) ; done |