summaryrefslogtreecommitdiffstats
path: root/src/Makefile.am
blob: ad1318112627f7f3376cc3fabb7adf9046ebd875 (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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
# $Id$
#
# This file is part of libsydney.
#
# libsydney is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# libsydney is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with libsydney; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.

AM_CFLAGS = $(PTHREAD_CFLAGS)
AM_LIBADD = $(PTHREAD_LIBS)
AM_LDADD = $(PTHREAD_LIBS)

EXTRA_DIST = \
	meta-name-table.gperf

lib_LTLIBRARIES = \
	libsydney.la

noinst_PROGRAMS = \
	test-bufferq \
	test-llist \
	test-sine \
	test-pull
#	test-asyncq

libsydney_la_SOURCES = \
	common.c common.h \
	malloc.c malloc.h \
	oss.c oss.h \
	bbuffer.c bbuffer.h \
	format.c fomat.h \
	volscale.c volscale.h \
	bswap.c bswap.h \
	continued-fraction.c continued-fraction.h \
	zero.c zero.h \
	add.c add.h \
	speex/speex_resampler.c speex/speex_resampler.h speex/arch.h \
	resample.c resample.h \
	interleave.c interleave.h \
	converter.c converter.h \
	g711.c g711.h \
	mutex-posix.c mutex.h \
	thread-posix.c thread.h \
	bufferq.c buffer.h \
	meta-name-table.h
#	asyncq.c asyncq.h
libsydney_la_LIBADD = \
	$(AM_LIBADD) \
	$(LIBOIL_LIBS)
libsydney_la_CFLAGS = \
	$(AM_CFLAGS) \
	$(LIBOIL_CFLAGS) \
	-DRANDOM_PREFIX=saspeex -DOUTSIDE_SPEEX

test_bufferq_SOURCES = \
	test-bufferq.c
test_bufferq_LDADD = \
	$(AM_LDADD) \
	libsydney.la

test_llist_SOURCES = \
	test-llist.c
test_llist_LDADD = \
	$(AM_LDADD) \
	libsydney.la

test_sine_SOURCES = \
	test-sine.c
test_sine_LDADD = \
	$(AM_LDADD) \
	libsydney.la

test_pull_SOURCES = \
	test-pull.c
test_pull_LDADD = \
	$(AM_LDADD) \
	libsydney.la

#test_asyncq_SOURCES = \
#	test-asyncq.c
#test_asyncq_LDADD = \
#	$(AM_LDADD) \
#	libsydney.la

BUILT_SOURCES = \
	meta-name-table.h

meta-name-table.h: meta-name-table.gperf Makefile
	gperf -L ANSI-C -t -N sa_lookup_meta_name -H sa_hash_meta_name -p -C < $< | sed -e 's/{""}/{"", 0}/g' > $@

fixme:
	find -name '*.c' -exec fgrep -H -A 3 -B 3 -i FIXME \{\} \;

indent:
	indent -bdfa -brf -kr -nbbo -nbc -ip0 -ppi 4 -cs -nbfde -npsl -br -brs -bap -i4 -bs -cdw -ce -npcs -hnl -cli4 -nut -ci8 < oss.c
#	astyle --indent=spaces=4 --brackets=attach --indent-switches  --max-instatement-indent=40 --pad=oper --unpad=paren --convert-tabs --mode=c < oss.c

update-speex:
	wget -O speex/speex_resampler.h http://svn.xiph.org/trunk/speex/include/speex/speex_resampler.h
	wget -O speex/speex_resample.c http://svn.xiph.org/trunk/speex/libspeex/resample.c
	wget -O speex/arch.h http://svn.xiph.org/trunk/speex/libspeex/arch.h

warn-export: all
	nm test-bufferq test-llist test-sine test-pull | grep " T " | awk '{print $$3}' | sort | uniq