root/trunk/libffado/src/Makefile.am

Revision 557, 9.3 kB (checked in by wagi, 15 years ago)

moved&renamed configparser from bebob to genericavc

  • 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 ffadodevice.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         bebob/vendorspecific/focusrite.h \
56         bebob/vendorspecific/terratec.h \
57         maudio/maudio_avdevice.h motu/motu_avdevice.h rme/rme_avdevice.h \
58         metrichalo/mh_avdevice.h dice/dice_avdevice.h \
59         genericavc/avc_avdevice.h genericavc/avc_vendormodel.h \
60         libavc/streamformat/avc_extended_stream_format.h \
61         libavc/util/avc_serialize.h \
62         libavc/musicsubunit/avc_descriptor_music.h \
63         libavc/musicsubunit/avc_musicsubunit.h \
64         libavc/audiosubunit/avc_audiosubunit.h \
65         libavc/audiosubunit/avc_function_block.h \
66         libavc/descriptors/avc_descriptor_cmd.h \
67         libavc/descriptors/avc_descriptor.h \
68         libavc/general/avc_plug_info.h \
69         libavc/general/avc_subunit_info.h \
70         libavc/general/avc_extended_cmd_generic.h \
71         libavc/general/avc_extended_subunit_info.h \
72         libavc/general/avc_unit_info.h \
73         libavc/general/avc_generic.h \
74         libavc/general/avc_connect.h \
75         libavc/general/avc_signal_format.h \
76         libavc/general/avc_extended_plug_info.h \
77         libavc/general/avc_unit.h \
78         libavc/general/avc_subunit.h \
79         libavc/general/avc_plug.h \
80         libavc/general/avc_vendor_dependent_cmd.h \
81         libavc/avc_definitions.h \
82         libavc/ccm/avc_signal_source.h \
83         libosc/OscArgument.h libosc/OscNode.h libosc/OscResponse.h libosc/OscServer.h libosc/OscMessage.h \
84         libosc/OscClient.h \
85         libstreaming/AmdtpPort.h libstreaming/AmdtpPortInfo.h libstreaming/AmdtpStreamProcessor.h \
86         libstreaming/AmdtpSlaveStreamProcessor.h \
87         libstreaming/cip.h libstreaming/cycletimer.h libstreaming/IsoHandler.h \
88         libstreaming/IsoHandlerManager.h libstreaming/IsoStream.h libstreaming/MotuPort.h \
89         libstreaming/MotuPortInfo.h libstreaming/MotuStreamProcessor.h \
90         libstreaming/Port.h libstreaming/PortManager.h \
91         libstreaming/StreamProcessor.h libstreaming/StreamProcessorManager.h \
92         libutil/Atomic.h libutil/cycles.h libutil/DelayLockedLoop.h libutil/PosixThread.h \
93         libutil/ringbuffer.h libutil/OptionContainer.h \
94         libutil/PacketBuffer.h libutil/StreamStatistics.h \
95         libutil/serialize.h libutil/SystemTimeSource.h libutil/Thread.h libutil/Time.h \
96         libutil/TimeSource.h libutil/TimestampedBuffer.h
97
98 # common sources
99 libffado_la_SOURCES = \
100         devicemanager.cpp \
101         ffado.cpp \
102         ffado_streaming.cpp \
103         ffadodevice.cpp \
104         debugmodule/debugmodule.cpp \
105         libavc/streamformat/avc_extended_stream_format.cpp \
106         libavc/util/avc_serialize.cpp \
107         libavc/musicsubunit/avc_descriptor_music.cpp \
108         libavc/musicsubunit/avc_musicsubunit.cpp \
109         libavc/audiosubunit/avc_audiosubunit.cpp \
110         libavc/audiosubunit/avc_function_block.cpp \
111         libavc/descriptors/avc_descriptor_cmd.cpp \
112         libavc/descriptors/avc_descriptor.cpp \
113         libavc/general/avc_extended_subunit_info.cpp \
114         libavc/general/avc_unit_info.cpp \
115         libavc/general/avc_generic.cpp \
116         libavc/general/avc_subunit_info.cpp \
117         libavc/general/avc_connect.cpp \
118         libavc/general/avc_signal_format.cpp \
119         libavc/general/avc_extended_cmd_generic.cpp \
120         libavc/general/avc_extended_plug_info.cpp \
121         libavc/general/avc_plug_info.cpp \
122         libavc/general/avc_unit.cpp \
123         libavc/general/avc_subunit.cpp \
124         libavc/general/avc_plug.cpp \
125         libavc/general/avc_vendor_dependent_cmd.cpp \
126         libavc/avc_definitions.cpp \
127         libavc/ccm/avc_signal_source.cpp \
128         libieee1394/ARMHandler.cpp \
129         libieee1394/configrom.cpp \
130         libieee1394/csr1212.c \
131         libieee1394/ieee1394service.cpp \
132         libieee1394/IEC61883.cpp \
133         libosc/OscArgument.cpp \
134         libosc/OscClient.cpp \
135         libosc/OscMessage.cpp \
136         libosc/OscNode.cpp \
137         libosc/OscResponse.cpp \
138         libosc/OscServer.cpp \
139         libstreaming/cip.c \
140         libstreaming/IsoHandler.cpp \
141         libstreaming/IsoHandlerManager.cpp \
142         libstreaming/IsoStream.cpp \
143         libstreaming/Port.cpp \
144         libstreaming/PortManager.cpp \
145         libstreaming/StreamProcessor.cpp \
146         libstreaming/StreamProcessorManager.cpp \
147         libutil/DelayLockedLoop.cpp \
148         libutil/PacketBuffer.cpp \
149         libutil/OptionContainer.cpp \
150         libutil/PosixThread.cpp \
151         libutil/ringbuffer.c \
152         libutil/serialize.cpp \
153         libutil/StreamStatistics.cpp \
154         libutil/SystemTimeSource.cpp \
155         libutil/Time.c \
156         libutil/TimeSource.cpp \
157         libutil/TimestampedBuffer.cpp
158
159 # class specific sources
160 bebob_src = \
161             bebob/bebob_avdevice.cpp \
162             bebob/bebob_avdevice_subunit.cpp \
163             bebob/bebob_avplug.cpp \
164             bebob/bebob_dl_bcd.cpp \
165             bebob/bebob_dl_codes.cpp \
166             bebob/bebob_dl_mgr.cpp \
167             bebob/bebob_functionblock.cpp \
168             bebob/GenericMixer.cpp \
169             bebob/vendorspecific/focusrite.cpp \
170             bebob/vendorspecific/terratec.cpp \
171             maudio/maudio_avdevice.cpp
172
173 genericavc_src = \
174             genericavc/avc_avdevice.cpp \
175             genericavc/avc_vendormodel.cpp
176
177 motu_src = \
178             motu/motu_avdevice.cpp \
179             libstreaming/MotuPort.cpp \
180             libstreaming/MotuPortInfo.cpp \
181             libstreaming/MotuStreamProcessor.cpp
182
183 dice_src = \
184             dice/dice_avdevice.cpp
185
186 bounce_src = \
187             bounce/bounce_avdevice.cpp \
188             bounce/bounce_slave_avdevice.cpp \
189             libstreaming/AmdtpSlaveStreamProcessor.cpp
190
191 metric_halo_src = \
192             metrichalo/mh_avdevice.cpp
193
194 rme_src = \
195             rme/rme_avdevice.cpp
196
197 amdtp_src = \
198             libstreaming/AmdtpPort.cpp \
199             libstreaming/AmdtpPortInfo.cpp \
200             libstreaming/AmdtpStreamProcessor.cpp
201
202 # data
203 #  generic
204 nobase_dist_pkgdata_DATA =
205 #  bebob specific
206 bebob_pkgdata =                                 \
207         maudio/refdesign.xml                            \
208         maudio/fw410.xml                                \
209         maudio/fwap.xml
210
211 install-data-hook:
212         mkdir -p $(localstatedir)/cache/libffado
213
214 # programs intended for installation in the 'bin' directory
215 #  generic
216 bin_PROGRAMS =
217
218 #  class specific
219 bebob_bin = bridgeco-downloader bebob-sync
220
221 bridgeco_downloader_SOURCES = bridgeco-downloader.cpp
222 bridgeco_downloader_LDADD = $(top_builddir)/src/libffado.la
223
224 bebob_sync_SOURCES = bebob-sync.cpp
225 bebob_sync_LDADD = $(top_builddir)/src/libffado.la
226
227 # programs not intended for installation
228 # generic
229 noinst_PROGRAMS = test-dll test-debugmodule \
230                       test-unittests-util test-unittests-osc
231
232 test_dll_SOURCES = libutil/test-dll.cpp
233 test_dll_LDADD = $(top_builddir)/src/libffado.la
234
235 test_debugmodule_SOURCES = debugmodule/test_debugmodule.cpp
236 test_debugmodule_LDADD = $(top_builddir)/src/libffado.la
237
238 test_unittests_util_SOURCES = libutil/unittests.cpp
239 test_unittests_util_LDADD = $(top_builddir)/src/libffado.la
240
241 test_unittests_osc_SOURCES = libosc/unittests.cpp
242 test_unittests_osc_LDADD = $(top_builddir)/src/libffado.la
243
244 # build customisation
245
246 if BUILD_BEBOB
247 libffado_la_SOURCES += $(bebob_src)
248 bin_PROGRAMS += $(bebob_bin)
249 noinst_PROGRAMS += $(bebob_noinst)
250 nobase_dist_pkgdata_DATA += $(bebob_pkgdata)
251 endif
252
253 if BUILD_GENERICAVC
254 libffado_la_SOURCES += $(genericavc_src)
255 bin_PROGRAMS += $(genericavc_bin)
256 noinst_PROGRAMS += $(genericavc_noinst)
257 nobase_dist_pkgdata_DATA += $(genericavc_pkgdata)
258 endif
259
260 if BUILD_BOUNCE
261 libffado_la_SOURCES += $(bounce_src)
262 bin_PROGRAMS += $(bounce_bin)
263 noinst_PROGRAMS += $(bounce_noinst)
264 nobase_dist_pkgdata_DATA += $(bounce_pkgdata)
265 endif
266
267 if BUILD_DICE
268 libffado_la_SOURCES += $(dice_src)
269 bin_PROGRAMS += $(dice_bin)
270 noinst_PROGRAMS += $(dice_noinst)
271 nobase_dist_pkgdata_DATA += $(dice_pkgdata)
272 endif
273
274 if BUILD_MOTU
275 libffado_la_SOURCES += $(motu_src)
276 bin_PROGRAMS += $(motu_bin)
277 noinst_PROGRAMS += $(motu_noinst)
278 nobase_dist_pkgdata_DATA += $(motu_pkgdata)
279 endif
280
281 if BUILD_METRIC_HALO
282 libffado_la_SOURCES += $(metric_halo_src)
283 bin_PROGRAMS += $(metric_halo_bin)
284 noinst_PROGRAMS += $(metric_halo_noinst)
285 nobase_dist_pkgdata_DATA += $(metric_halo_pkgdata)
286 endif
287
288 if BUILD_RME
289 libffado_la_SOURCES += $(rme_src)
290 bin_PROGRAMS += $(rme_bin)
291 noinst_PROGRAMS += $(rme_noinst)
292 nobase_dist_pkgdata_DATA += $(rme_pkgdata)
293 endif
294
295 if BUILD_AMDTP
296 libffado_la_SOURCES += $(amdtp_src)
297 bin_PROGRAMS += $(amdtp_bin)
298 noinst_PROGRAMS += $(amdtp_noinst)
299 nobase_dist_pkgdata_DATA += $(amdtp_pkgdata)
300 endif
Note: See TracBrowser for help on using the browser.