root/branches/streaming-rework/src/Makefile.am

Revision 407, 7.4 kB (checked in by pieterpalmers, 17 years ago)

- Changed the way the device class configure options are handled. Now they are handled in the makefiles instead of the source files. The only source file that still contains the #ifdef's is devicemanager.cpp, to conditionally include the device class include files and to conditionally probe the classes that might be supported.
- added a configure option to disable the compilation of the test programs in tests/
- cleaned up the ADMTP transmit streamprocessor. Now it sends silenced packets when in the disabled state, instead of no-data packets
- added a getNodeID() to ieee1394service
- made comments in ieee1394service.h doxygen compliant

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