1999-12-05 07:28:29 +00:00
|
|
|
#
|
|
|
|
# Asterisk -- A telephony toolkit for Linux.
|
|
|
|
#
|
|
|
|
# Makefile for file format modules
|
|
|
|
#
|
1999-12-12 08:49:19 +00:00
|
|
|
# Copyright (C) 1999, Mark Spencer
|
1999-12-05 07:28:29 +00:00
|
|
|
#
|
|
|
|
# Mark Spencer <markster@linux-support.net>
|
|
|
|
#
|
|
|
|
# This program is free software, distributed under the terms of
|
|
|
|
# the GNU General Public License
|
|
|
|
#
|
|
|
|
|
2003-03-21 04:25:13 +00:00
|
|
|
FORMAT_LIBS=format_g723.so format_wav.so format_mp3.so format_wav_gsm.so \
|
|
|
|
format_gsm.so format_vox.so format_pcm.so format_g729.so format_pcm_alaw.so
|
2001-05-26 17:39:42 +00:00
|
|
|
FORMAT_LIBS+=format_jpeg.so
|
1999-12-05 07:28:29 +00:00
|
|
|
|
|
|
|
GSMLIB=../codecs/gsm/lib/libgsm.a
|
|
|
|
|
2003-04-27 18:13:11 +00:00
|
|
|
CFLAGS+=-fPIC
|
1999-12-05 07:28:29 +00:00
|
|
|
|
|
|
|
all: $(FORMAT_LIBS)
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f *.so *.o
|
|
|
|
|
|
|
|
%.so : %.o
|
|
|
|
$(CC) -shared -Xlinker -x -o $@ $<
|
|
|
|
|
2001-03-22 04:14:04 +00:00
|
|
|
format_mp3.so : format_mp3.o
|
|
|
|
$(CC) -shared -Xlinker -x -o $@ $< -lm
|
|
|
|
|
1999-12-05 07:28:29 +00:00
|
|
|
install: all
|
|
|
|
for x in $(FORMAT_LIBS); do $(INSTALL) -m 755 $$x $(MODULES_DIR) ; done
|