aboutsummaryrefslogtreecommitdiffstats
path: root/formats/Makefile
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>1999-12-05 07:28:29 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>1999-12-05 07:28:29 +0000
commitfd791f2c742d5aefc7524cdc9c62622c4a6a7531 (patch)
tree4f27f20b1f4f90a4f96d99e993a1810fbcdebf6d /formats/Makefile
parent18438e3e7ffb91177ce68e3b68e08e4fd260c965 (diff)
Version 0.1.0 from FTP
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@92 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'formats/Makefile')
-rwxr-xr-xformats/Makefile35
1 files changed, 35 insertions, 0 deletions
diff --git a/formats/Makefile b/formats/Makefile
new file mode 100755
index 000000000..e9872c613
--- /dev/null
+++ b/formats/Makefile
@@ -0,0 +1,35 @@
+#
+# Asterisk -- A telephony toolkit for Linux.
+#
+# Makefile for file format modules
+#
+# 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
+#
+
+FORMAT_LIBS=format_g723.so format_wav.so format_mp3.so # format_wav_gsm.so
+
+GSMLIB=../codecs/gsm/lib/libgsm.a
+
+CFLAGS+=
+
+all: $(FORMAT_LIBS)
+
+clean:
+ rm -f *.so *.o
+
+%.so : %.o
+ $(CC) -shared -Xlinker -x -o $@ $<
+
+format_wav.so : format_wav.o
+ $(CC) -shared -Xlinker -x -o $@ $< -laudiofile
+
+format_wav_gsm.so : format_wav_gsm.o
+ $(CC) -shared -Xlinker -x -o $@ $< $(LIBGSM)
+
+install: all
+ for x in $(FORMAT_LIBS); do $(INSTALL) -m 755 $$x $(MODULES_DIR) ; done