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-11-04 02:40:09 +00:00
|
|
|
FORMAT_LIBS=format_gsm.so format_wav.so \
|
2003-06-28 22:50:47 +00:00
|
|
|
format_wav_gsm.so format_vox.so format_pcm.so format_g729.so \
|
2004-04-22 03:34:13 +00:00
|
|
|
format_pcm_alaw.so format_h263.so format_g726.so format_ilbc.so
|
2001-05-26 17:39:42 +00:00
|
|
|
FORMAT_LIBS+=format_jpeg.so
|
2003-06-28 22:50:47 +00:00
|
|
|
#
|
|
|
|
# G723 simple frame is depricated
|
|
|
|
#
|
|
|
|
#FORMAT_LIBS+=format_g723.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
|
|
|
|
2003-05-06 00:00:20 +00:00
|
|
|
all: depend $(FORMAT_LIBS)
|
1999-12-05 07:28:29 +00:00
|
|
|
|
|
|
|
clean:
|
2003-05-06 00:00:20 +00:00
|
|
|
rm -f *.so *.o .depend
|
1999-12-05 07:28:29 +00:00
|
|
|
|
|
|
|
%.so : %.o
|
2003-10-26 18:50:49 +00:00
|
|
|
$(CC) $(SOLINK) -o $@ $<
|
1999-12-05 07:28:29 +00:00
|
|
|
|
2003-08-19 16:42:30 +00:00
|
|
|
ifneq ($(wildcard .depend),)
|
2003-05-06 00:00:20 +00:00
|
|
|
include .depend
|
2003-08-19 16:42:30 +00:00
|
|
|
endif
|
2003-05-06 00:00:20 +00:00
|
|
|
|
2001-03-22 04:14:04 +00:00
|
|
|
format_mp3.so : format_mp3.o
|
2003-10-26 18:50:49 +00:00
|
|
|
$(CC) $(SOLINK) -o $@ $< -lm
|
2001-03-22 04:14:04 +00:00
|
|
|
|
1999-12-05 07:28:29 +00:00
|
|
|
install: all
|
2003-10-25 17:27:53 +00:00
|
|
|
for x in $(FORMAT_LIBS); do $(INSTALL) -m 755 $$x $(DESTDIR)$(MODULES_DIR) ; done
|
2003-05-06 00:00:20 +00:00
|
|
|
|
|
|
|
depend: .depend
|
|
|
|
|
|
|
|
.depend:
|
|
|
|
../mkdep $(CFLAGS) `ls *.c`
|