aboutsummaryrefslogtreecommitdiffstats
path: root/formats/Makefile
blob: f981e8de208f85788d181f940e93e0978a8e665e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#
# Asterisk -- A telephony toolkit for Linux.
# 
# Makefile for file format modules
#
# Copyright (C) 1999, Mark Spencer
#
# 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 format_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

install: all
	for x in $(FORMAT_LIBS); do $(INSTALL) -m 755 $$x $(MODULES_DIR) ; done