summaryrefslogtreecommitdiffstats
path: root/src/Makefile.am
blob: 522b4f489d4dd2fc75a0519b9e93981f611c286e (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
# This file is part of libsydney.
#
# Copyright 2007-2008 Lennart Poettering
#
# 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.1 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
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with libsydney. If not, see
# <http://www.gnu.org/licenses/>.

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

EXTRA_DIST = \
	map-file

lib_LTLIBRARIES = \
	libsydney.la

include_HEADERS = \
	sydney.h

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

libsydney_la_SOURCES = \
	sydney.h \
	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 \
	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
#	asyncq.c asyncq.h
libsydney_la_LIBADD = \
	$(AM_LIBADD) \
	$(LIBOIL_LIBS) \
	$(SPEEX_LIBS)
libsydney_la_CXXFLAGS = \
	$(AM_CXXFLAGS) \
	$(LIBOIL_CFLAGS) \
	$(SPEEX_CFLAGS)

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

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

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