root/trunk/libffado/src/Makefile.am

Revision 478, 8.1 kB (checked in by wagi, 15 years ago)

- save cache information to $(localstatedir)/cache/libffade
- refactoring of build and load cache function

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
1 # Makefile.am
2 #
3 # Copyright (C) 2005-2007 by Daniel Wagner.
4 # Copyright (C) 2005-2007 by Pieter Palmers.
5 #
6 # This file is part of FFADO.
7 # FFADO = Free Firewire (pro-)audio drivers for linux
8 #
9 # FFADO is based upon FreeBoB.
10 #
11 # FFADO is free software.
12 #
13 # you can redistribute and/or modify the library code
14 # under the terms of the GNU Lesser General Public License
15 # version 2.1, as published by the Free Software Foundation
16 #
17 # you can redistribute and/or modify the applications
18 # under the terms of the GNU General Public License
19 # version 2, as published by the Free Software Foundation
20 #
21 # FFADO is distributed in the hope that it will be useful,
22 # but WITHOUT ANY WARRANTY; without even the implied warranty of
23 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
24 # GNU (Lesser) General Public License for more details.
25 #
26 # You should have received a copy of the GNU (Lesser) General Public License
27 # along with FFADO; if not, write to the Free Software
28 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
29
30 INCLUDES =                                              \
31         $(LIBRAW1394_CFLAGS) $(LIBIEC61883_CFLAGS)      \
32         $(LIBAVC1394_CFLAGS)    \
33         $(LIBXMLCPP_CFLAGS)     $(LIBLO_CFLAGS)                 \
34         -I$(top_srcdir) -I$(top_srcdir)/src
35
36 lib_LTLIBRARIES = libffado.la
37
38 libffado_la_LDFLAGS =                           \
39         -version-info $(LT_VERSION) $(LIBRAW1394_LIBS)  \
40         $(LIBIEC61883_LIBS) $(LIBAVC1394_LIBS)          \
41         $(LIBXMLCPP_LIBS) $(LIBLO_LIBS) \
42         -lpthread -lrt
43
44 libffado_la_LIBADD = -lrt
45
46 noinst_HEADERS = \
47         libieee1394/configrom.h libieee1394/csr1212.h \
48         libieee1394/ieee1394service.h libieee1394/ARMHandler.h \
49         libieee1394/IEC61883.h \
50         debugmodule/debugmodule.h \
51         devicemanager.h fbtypes.h iavdevice.h threads.h bebob/bebob_avdevice.h \
52         bebob/bebob_avdevice_subunit.h bebob/bebob_avplug.h bebob/bebob_dl_bcd.h bebob/bebob_dl_codes.h \
53         bebob/bebob_dl_mgr.h bebob/bebob_functionblock.h bounce/bounce_avdevice.h bounce/bounce_slave_avdevice.h \
54         bebob/GenericMixer.h \
55         maudio/maudio_avdevice.h motu/motu_avdevice.h rme/rme_avdevice.h \
56         metrichalo/mh_avdevice.h dice/dice_avdevice.h \
57         libavc/avc_connect.h \
58         libavc/avc_definitions.h libavc/avc_extended_cmd_generic.h \
59         libavc/avc_extended_plug_info.h libavc/avc_extended_stream_format.h \
60         libavc/avc_extended_subunit_info.h libavc/avc_function_block.h libavc/avc_generic.h \
61         libavc/avc_plug_info.h libavc/avc_serialize.h libavc/avc_signal_source.h \
62         libavc/avc_subunit_info.h libavc/avc_unit_info.h \
63         libosc/OscArgument.h libosc/OscNode.h libosc/OscResponse.h libosc/OscServer.h libosc/OscMessage.h \
64         libosc/OscClient.h \
65         libstreaming/AmdtpPort.h libstreaming/AmdtpPortInfo.h libstreaming/AmdtpStreamProcessor.h \
66         libstreaming/AmdtpSlaveStreamProcessor.h \
67         libstreaming/cip.h libstreaming/cycletimer.h libstreaming/IsoHandler.h \
68         libstreaming/IsoHandlerManager.h libstreaming/IsoStream.h libstreaming/MotuPort.h \
69         libstreaming/MotuPortInfo.h libstreaming/MotuStreamProcessor.h \
70         libstreaming/Port.h libstreaming/PortManager.h \
71         libstreaming/StreamProcessor.h libstreaming/StreamProcessorManager.h \
72         libutil/Atomic.h libutil/cycles.h libutil/DelayLockedLoop.h libutil/PosixThread.h \
73         libutil/ringbuffer.h libutil/OptionContainer.h \
74         libutil/PacketBuffer.h libutil/StreamStatistics.h \
75         libutil/serialize.h libutil/SystemTimeSource.h libutil/Thread.h libutil/Time.h \
76         libutil/TimeSource.h libutil/TimestampedBuffer.h
77
78 # common sources
79 libffado_la_SOURCES = \
80             devicemanager.cpp \
81             ffado.cpp \
82             ffado_streaming.cpp \
83             iavdevice.cpp \
84             debugmodule/debugmodule.cpp \
85             libavc/avc_connect.cpp \
86             libavc/avc_definitions.cpp \
87             libavc/avc_extended_cmd_generic.cpp \
88             libavc/avc_extended_plug_info.cpp \
89             libavc/avc_extended_stream_format.cpp \
90             libavc/avc_extended_subunit_info.cpp \
91             libavc/avc_function_block.cpp \
92             libavc/avc_generic.cpp \
93             libavc/avc_plug_info.cpp \
94             libavc/avc_serialize.cpp \
95             libavc/avc_signal_source.cpp \
96             libavc/avc_subunit_info.cpp \
97             libavc/avc_unit_info.cpp \
98             libieee1394/ARMHandler.cpp \
99             libieee1394/configrom.cpp \
100             libieee1394/csr1212.c \
101             libieee1394/ieee1394service.cpp \
102             libieee1394/IEC61883.cpp \
103             libosc/OscArgument.cpp \
104             libosc/OscClient.cpp \
105             libosc/OscMessage.cpp \
106             libosc/OscNode.cpp \
107             libosc/OscResponse.cpp \
108             libosc/OscServer.cpp \
109             libstreaming/cip.c \
110             libstreaming/IsoHandler.cpp \
111             libstreaming/IsoHandlerManager.cpp \
112             libstreaming/IsoStream.cpp \
113             libstreaming/Port.cpp \
114             libstreaming/PortManager.cpp \
115             libstreaming/StreamProcessor.cpp \
116             libstreaming/StreamProcessorManager.cpp \
117             libutil/DelayLockedLoop.cpp \
118             libutil/PacketBuffer.cpp \
119             libutil/OptionContainer.cpp \
120             libutil/PosixThread.cpp \
121             libutil/ringbuffer.c \
122             libutil/serialize.cpp \
123             libutil/StreamStatistics.cpp \
124             libutil/SystemTimeSource.cpp \
125             libutil/Time.c \
126             libutil/TimeSource.cpp \
127             libutil/TimestampedBuffer.cpp
128
129 # class specific sources
130 bebob_src = \
131             bebob/bebob_avdevice.cpp \
132             bebob/bebob_avdevice_subunit.cpp \
133             bebob/bebob_avplug.cpp \
134             bebob/bebob_dl_bcd.cpp \
135             bebob/bebob_dl_codes.cpp \
136             bebob/bebob_dl_mgr.cpp \
137             bebob/bebob_functionblock.cpp \
138             bebob/GenericMixer.cpp \
139             maudio/maudio_avdevice.cpp
140
141 motu_src = \
142             motu/motu_avdevice.cpp \
143             libstreaming/MotuPort.cpp \
144             libstreaming/MotuPortInfo.cpp \
145             libstreaming/MotuStreamProcessor.cpp
146
147 dice_src = \
148             dice/dice_avdevice.cpp
149
150 bounce_src = \
151             bounce/bounce_avdevice.cpp \
152             bounce/bounce_slave_avdevice.cpp \
153             libstreaming/AmdtpSlaveStreamProcessor.cpp
154
155 metric_halo_src = \
156             metrichalo/mh_avdevice.cpp
157
158 rme_src = \
159             rme/rme_avdevice.cpp
160
161 amdtp_src = \
162             libstreaming/AmdtpPort.cpp \
163             libstreaming/AmdtpPortInfo.cpp \
164             libstreaming/AmdtpStreamProcessor.cpp
165
166 # data
167 #  generic
168 nobase_dist_pkgdata_DATA =
169 #  bebob specific
170 bebob_pkgdata =                                 \
171         maudio/refdesign.xml                            \
172         maudio/fw410.xml                                \
173         maudio/fwap.xml
174
175 install-data-hook:
176         mkdir -p $(localstatedir)/cache/libffado
177
178 # programs intended for installation in the 'bin' directory
179 #  generic
180 bin_PROGRAMS =
181
182 #  class specific
183 bebob_bin = bridgeco-downloader bebob-sync
184
185 bridgeco_downloader_SOURCES = bridgeco-downloader.cpp
186 bridgeco_downloader_LDADD = $(top_builddir)/src/libffado.la
187
188 bebob_sync_SOURCES = bebob-sync.cpp
189 bebob_sync_LDADD = $(top_builddir)/src/libffado.la
190
191 # programs not intended for installation
192 # generic
193 noinst_PROGRAMS = test-dll test-debugmodule \
194                       test-unittests-util test-unittests-osc \
195                       test-ser
196
197 test_dll_SOURCES = libutil/test-dll.cpp
198 test_dll_LDADD = $(top_builddir)/src/libffado.la
199
200 test_debugmodule_SOURCES = debugmodule/test_debugmodule.cpp
201 test_debugmodule_LDADD = $(top_builddir)/src/libffado.la
202
203 test_unittests_util_SOURCES = libutil/unittests.cpp
204 test_unittests_util_LDADD = $(top_builddir)/src/libffado.la
205
206 test_unittests_osc_SOURCES = libosc/unittests.cpp
207 test_unittests_osc_LDADD = $(top_builddir)/src/libffado.la
208
209 test_ser_SOURCES = ser.cpp
210 test_ser_LDADD = $(top_builddir)/src/libffado.la
211
212 # build customisation
213
214 if BUILD_BEBOB
215 libffado_la_SOURCES += $(bebob_src)
216 bin_PROGRAMS += $(bebob_bin)
217 noinst_PROGRAMS += $(bebob_noinst)
218 nobase_dist_pkgdata_DATA += $(bebob_pkgdata)
219 endif
220
221 if BUILD_BOUNCE
222 libffado_la_SOURCES += $(bounce_src)
223 bin_PROGRAMS += $(bounce_bin)
224 noinst_PROGRAMS += $(bounce_noinst)
225 nobase_dist_pkgdata_DATA += $(bounce_pkgdata)
226 endif
227
228 if BUILD_DICE
229 libffado_la_SOURCES += $(dice_src)
230 bin_PROGRAMS += $(dice_bin)
231 noinst_PROGRAMS += $(dice_noinst)
232 nobase_dist_pkgdata_DATA += $(dice_pkgdata)
233 endif
234
235 if BUILD_MOTU
236 libffado_la_SOURCES += $(motu_src)
237 bin_PROGRAMS += $(motu_bin)
238 noinst_PROGRAMS += $(motu_noinst)
239 nobase_dist_pkgdata_DATA += $(motu_pkgdata)
240 endif
241
242 if BUILD_METRIC_HALO
243 libffado_la_SOURCES += $(metric_halo_src)
244 bin_PROGRAMS += $(metric_halo_bin)
245 noinst_PROGRAMS += $(metric_halo_noinst)
246 nobase_dist_pkgdata_DATA += $(metric_halo_pkgdata)
247 endif
248
249 if BUILD_RME
250 libffado_la_SOURCES += $(rme_src)
251 bin_PROGRAMS += $(rme_bin)
252 noinst_PROGRAMS += $(rme_noinst)
253 nobase_dist_pkgdata_DATA += $(rme_pkgdata)
254 endif
255
256 if BUILD_AMDTP
257 libffado_la_SOURCES += $(amdtp_src)
258 bin_PROGRAMS += $(amdtp_bin)
259 noinst_PROGRAMS += $(amdtp_noinst)
260 nobase_dist_pkgdata_DATA += $(amdtp_pkgdata)
261 endif
Note: See TracBrowser for help on using the browser.