source: trunk/FACT++/Makefile.am@ 11486

Last change on this file since 11486 was 11475, checked in by tbretz, 13 years ago
Added libDimExtension for drivectrl
File size: 11.0 KB
Line 
1include aminclude.am
2
3#-------------------------------------------------------------------------
4
5ACLOCAL_AMFLAGS = -I .macro_dir
6
7SVN_REVISION = -DREVISION=\"`svnversion -n .`\"
8
9DIM_FLAGS = -DMIPSEL -DPROTOCOL=1 -Dunix -Dlinux
10BOOST_FLAGS = -DBOOST_DISABLE_ASSERTS
11
12AM_CPPFLAGS = -Idim/dim $(DIM_FLAGS) $(BOOST_FLAGS) $(ROOTCPPFLAGS) \
13 -O3 -Wall -Winit-self -Wpointer-arith -Wcast-align -Wextra -Wformat=2 \
14 $(SVN_REVISION)
15
16AM_CXXFLAGS = $(AM_CPPFLAGS) $(QT4_INCLUDES) \
17 -Woverloaded-virtual -Wnon-virtual-dtor -Wshadow -std=c++0x
18
19# -no-undefined
20AM_LDFLAGS = -module -avoid-version
21
22#$(man3_MANS): doxygen-doc
23#DX_CLEANFILES = everything to clean.
24# Add to MOSTLYCLEANFILES.
25
26#-------------------------------------------------------------------------
27
28# Executables which are build by default ('all')
29bin_PROGRAMS = \
30 dns \
31 log logtime time argv \
32 dimctrl \
33 datalogger scheduler \
34 triggerschedule \
35 ftmctrl ftm \
36 fadctrl fad \
37 fscctrl fsc \
38 chatclient chatserv \
39 biasctrl \
40 fitsdump
41
42if HAS_GUI
43bin_PROGRAMS += fact
44endif
45
46if HAS_LIBXP
47bin_PROGRAMS += did
48endif
49
50# This is a trick to be able to build them but not having them in 'all'
51if IS_FALSE
52bin_PROGRAMS += \
53 test \
54 dclient5 dserver2 \
55 fitsloader fitsgrep \
56 sched astro drivectrl \
57 readfits mcp
58endif
59
60lib_LTLIBRARIES = \
61 libDim.la libDim++.la libDimExtension.la libTime.la libTools.la \
62 libConfiguration.la libStateMachine.la
63# libAstro.la
64
65if HAS_HELP2MAN
66dist_man1_MANS = \
67 dimctrl.man ftmctrl.man datalogger.man triggerschedule.man fitsdump.man
68endif
69
70#-------------------------------------------------------------------------
71
72CLEANFILES =
73
74dist_noinst_SCRIPTS = autogen.sh
75
76EXTRA_DIST = \
77 Doxyfile \
78 dim/DIM_Performance.pdf \
79 dim/LICENSE.GPL \
80 dim/README.txt \
81 dim/README_v9.txt \
82 dim/README_v10.txt \
83 dim/README_v11.txt \
84 dim/README_v12.txt \
85 dim/README_v13.txt \
86 dim/README_v14.txt \
87 dim/README_v17.txt \
88 dim/README_v16.txt \
89 dim/README_v17.txt \
90 dim/README_v18.txt \
91 dim/README_v19.txt
92
93dns_LDADD = libDim.la libDimExtension.la
94dns_SOURCES = src/dns.c
95#dns_CPPFLAGS = $(AM_CPPFLAGS) $(DIM_FLAGS)
96
97did_LDADD = libDim.la
98did_CPPFLAGS = $(AM_CPPFLAGS) -Idim/src/did
99did_SOURCES = \
100 dim/src/did/did.c dim/src/did/did.h \
101 dim/src/did/dui_util.c dim/src/did/dui_util.h \
102 dim/src/did/dui_colors.h
103
104
105#libDim_la_CPPFLAGS = $(AM_CPPFLAGS) $(DIM_FLAGS)
106libDim_ladir =
107libDim_la_HEADERS = \
108 dim/dim/dic.h \
109 dim/dim/dim_common.h \
110 dim/dim/dim.h \
111 dim/dim/dim_tcpip.h \
112 dim/dim/dis.h
113
114libDim_la_SOURCES = \
115 dim/src/dic.c \
116 dim/src/dis.c \
117 dim/src/dna.c \
118 dim/src/sll.c \
119 dim/src/dll.c \
120 dim/src/hash.c \
121 dim/src/swap.c \
122 dim/src/copy_swap.c \
123 dim/src/open_dns.c \
124 dim/src/conn_handler.c \
125 dim/src/tcpip.c \
126 dim/src/dtq.c \
127 dim/src/dim_thr.c \
128 dim/src/utilities.c
129
130libDimExtension_la_SOURCES = src/DimSetup.cc src/DimSetup.h
131
132#libDimCpp_la_CXXFLAGS = $(AM_CXXFLAGS) $(DIM_FLAGS)
133libDim___ladir =
134libDim___la_HEADERS = \
135 dim/dim/dic.hxx \
136 dim/dim/dis.hxx \
137 dim/dim/dim_core.hxx \
138 dim/dim/dim.hxx \
139 dim/dim/dim_tcpip.h \
140 dim/dim/dllist.hxx \
141 dim/dim/sllist.hxx \
142 dim/dim/tokenstring.hxx \
143 src/Dim.h
144libDim___la_SOURCES = \
145 dim/src/diccpp.cxx \
146 dim/src/dimcpp.cxx \
147 dim/src/tokenstring.cxx \
148 dim/src/discpp.cxx
149
150# Divide into Readline / StateMachine / StateMachineDim / Tools?
151libStateMachine_la_SOURCES = \
152 src/WindowLog.h src/WindowLog.cc \
153 src/Readline.h src/Readline.cc \
154 src/ReadlineColor.h src/ReadlineColor.cc \
155 src/ReadlineWindow.h src/ReadlineWindow.cc \
156 src/Console.h src/Console.cc \
157 src/Shell.h src/Shell.cc \
158 \
159 src/EventImp.h src/EventImp.cc \
160 src/Event.h src/Event.cc \
161 src/State.h src/State.cc \
162 src/Description.h src/Description.cc \
163 src/MessageImp.h src/MessageImp.cc \
164 src/Converter.h src/Converter.cc \
165 src/StateMachineImp.h src/StateMachineImp.cc \
166 src/StateMachine.h src/StateMachine.cc \
167 \
168 src/EventDim.h \
169 src/MessageDim.h src/MessageDim.cc \
170 src/StateMachineDim.h src/StateMachineDim.cc \
171 src/DimServerList.h src/DimServerList.cc \
172 src/DimServiceInfoList.h src/DimServiceInfoList.cc \
173 src/DimNetworkList.h src/DimNetwork.cc \
174 src/ServiceList.h src/ServiceList.cc \
175 src/DimErrorRedirecter.h \
176 src/DimErrorRedirecter.cc \
177 src/DimDescriptionService.h \
178 src/DimDescriptionService.cc \
179 \
180 src/Connection.h src/Connection.cc \
181 src/ConnectionUSB.h src/ConnectionUSB.cc \
182 \
183 FACT.h ByteOrder.h \
184 \
185 src/DimWriteStatistics.h src/DimWriteStatistics.cc
186
187
188libConfiguration_la_SOURCES = \
189 src/Configuration.h src/Configuration.cc \
190 src/FACT.h src/FACT.cc
191
192libTime_la_SOURCES = src/Time.h src/Time.cc
193#libAstro_la_SOURCES = src/Astro.h src/Astro.cc
194libTools_la_SOURCES = src/tools.h src/tools.cc
195
196
197dserver2_SOURCES = src/dserver2.cc
198dserver2_LDADD = libTime.la libTools.la
199
200ftm_SOURCES = src/ftm.cc src/HeadersFTM.cc
201ftm_LDADD = libTime.la libTools.la libDim.la libDim++.la libConfiguration.la libDimExtension.la
202
203fad_SOURCES = src/fad.cc src/HeadersFAD.cc
204fad_LDADD = libTime.la libTools.la libTools.la libDim.la libDim++.la libConfiguration.la libDimExtension.la
205
206fsc_SOURCES = src/fsc.cc
207fsc_LDADD = libTime.la libTools.la
208
209
210log_SOURCES = src/log.cc
211log_LDADD = libTime.la libDim.la libDim++.la libTools.la libStateMachine.la
212
213
214logtime_SOURCES = src/logtime.cc
215logtime_LDADD = libTools.la libStateMachine.la libTime.la libDim.la libDim++.la
216
217
218chatserv_SOURCES = src/chatserv.cc src/LocalControl.h
219chatserv_LDADD = libTools.la libStateMachine.la libConfiguration.la libTime.la \
220 libDim.la libDim++.la libDimExtension.la
221
222
223dclient5_SOURCES = src/dclient5.cc src/LocalControl.h
224dclient5_LDADD = libDim.la libDim++.la libTime.la libTools.la libStateMachine.la \
225 libConfiguration.la
226
227ftmctrl_SOURCES = src/ftmctrl.cc src/LocalControl.h src/HeadersFTM.cc
228ftmctrl_LDADD = libDim.la libDim++.la libDimExtension.la \
229 libTime.la libTools.la libStateMachine.la \
230 libConfiguration.la
231
232drivectrl_SOURCES = src/drivectrl.cc src/LocalControl.h src/HeadersFTM.cc
233drivectrl_LDADD = libDim.la libDim++.la libDimExtension.la \
234 libTime.la libTools.la libStateMachine.la \
235 libConfiguration.la
236
237fadctrl_SOURCES = src/fadctrl.cc src/LocalControl.h src/HeadersFAD.cc \
238 src/EventBuilder.c src/EventBuilder.h
239fadctrl_LDADD = libDim.la libDim++.la libDimExtension.la \
240 libTime.la libTools.la libStateMachine.la \
241 libConfiguration.la
242
243fscctrl_SOURCES = src/fscctrl.cc src/LocalControl.h
244fscctrl_LDADD = libDim.la libDim++.la libDimExtension.la \
245 libTime.la libTools.la libStateMachine.la \
246 libConfiguration.la
247
248biasctrl_SOURCES = src/biasctrl.cc src/LocalControl.h
249biasctrl_LDADD = libDim.la libDim++.la libDimExtension.la \
250 libTime.la libTools.la libStateMachine.la \
251 libConfiguration.la
252
253mcp_SOURCES = src/mcp.cc src/LocalControl.h
254mcp_LDADD = libDim.la libDim++.la libDimExtension.la \
255 libTime.la libTools.la libStateMachine.la \
256 libConfiguration.la
257
258
259argv_SOURCES = src/argv.cc
260argv_LDADD = libConfiguration.la
261
262
263dimctrl_SOURCES = src/dimctrl.cc src/RemoteControl.cc src/RemoteControl.h
264dimctrl_LDADD = libTools.la libStateMachine.la libTime.la \
265 libDim.la libDim++.la libDimExtension.la libConfiguration.la
266
267
268chatclient_SOURCES = src/chatclient.cc src/ChatClient.h
269chatclient_LDADD = libTools.la libStateMachine.la libTime.la libDim.la libDim++.la libConfiguration.la
270
271
272time_SOURCES = src/time.cc
273time_LDADD = libTime.la
274
275#astro_SOURCES = src/astro.cc
276#astro_LDADD = libAstro.la libTime.la
277
278test_SOURCES = src/test.cc
279test_LDADD = libTools.la libStateMachine.la libTime.la libDim.la libDim++.la libConfiguration.la
280
281datalogger_SOURCES = src/datalogger.cc src/LocalControl.h
282if HAS_FITS
283datalogger_SOURCES += src/Fits.cc
284endif
285datalogger_LDADD = libDim.la libDim++.la libDimExtension.la \
286 libTime.la libTools.la libStateMachine.la \
287 libConfiguration.la
288
289scheduler_SOURCES = src/scheduler.cc src/LocalControl.h
290scheduler_LDADD = libStateMachine.la libTools.la libTime.la \
291 libDim.la libDim++.la libDimExtension.la libConfiguration.la
292
293fitsloader_SOURCES = src/fitsloader.cc src/LocalControl.h
294fitsloader_LDADD = libStateMachine.la libTools.la libTime.la libDim.la libDim++.la libConfiguration.la
295
296fitsdump_SOURCES = src/fitsdump.cc
297fitsdump_LDADD = libConfiguration.la
298
299readfits_SOURCES = src/readfits.cc src/ReadFits.h
300readfits_LDADD = libStateMachine.la libTools.la libTime.la libDim.la libDim++.la libConfiguration.la
301
302triggerschedule_SOURCES = src/triggerschedule.cc
303triggerschedule_LDADD = libDim.la libDim++.la libDimExtension.la libConfiguration.la
304
305#fitsgrep_SOURCES = src/fitsgrep.cc
306#fitsgrep_LDADD = libConfiguration.la
307
308# -----
309
310if HAS_GUI
311DIALOGS = \
312 gui/design.ui
313
314RESOURCES = \
315 gui/design.qrc
316
317QT_SOURCES = \
318 gui/DockWindow.cc \
319 gui/MainWindow.cc
320endif
321
322BUILT_SOURCES = $(DIALOGS:.ui=.h) $(RESOURCES:.qrc=.cc) $(QT_SOURCES:.cc=.moc.cc)
323
324CLEANFILES += $(BUILT_SOURCES)
325
326EXTRA_DIST += $(DIALOGS) $(RESOURCES)
327
328fact_LDADD = $(ROOTLDFLAGS) $(ROOTGLIBS) $(QT4_LIB) $(QT4_LDFLAGS) -L. \
329 libDim.la libDim++.la libDimExtension.la \
330 libTools.la libTime.la libTools.la libStateMachine.la \
331 libConfiguration.la
332
333fact_SOURCES = $(BUILT_SOURCES) $(QT_SOURCES) \
334 gui/CheckBoxDelegate.cc gui/HtmlDelegate.cc \
335 gui/fact.cc gui/FactGui.cc src/HeadersFTM.cc
336
337
338#-------------------------------------------------------------------------
339
340SUFFIXES = .moc.cc
341
342.ui.h: $<
343 $(AM_V_GEN)$(UIC4) $< -o $@
344
345.h.moc.cc: $<
346 $(AM_V_GEN)$(MOC4) $(EXTRA_CPPFLAGS) $< -o $@
347
348.qrc.cc: $<
349 $(AM_V_GEN)$(RCC4) -name `echo "$<" | sed 's|^.*/\(.*\)\.qrc$$|\1|'` $< -o $@
350
351
352#-------------------------------------------------------------------------
353
354MAN_TARGETS = $(dist_man1_MANS)
355
356if HAS_GROFF
357
358MAN_TARGETS += $(dist_man1_MANS:.man=.html)
359EXTRA_DIST += $(dist_man1_MANS:.man=.html)
360CLEANFILES += $(dist_man1_MANS:.man=.html)
361
362if HAS_PS2PDF
363
364MAN_TARGETS += $(dist_man1_MANS:.man=.pdf)
365EXTRA_DIST += $(dist_man1_MANS:.man=.pdf)
366CLEANFILES += $(dist_man1_MANS:.man=.pdf)
367endif
368
369endif
370
371$(dist_man1_MANS): $(dist_man1_MANS:.man=)
372 @mkdir -p man
373 $(AM_V_GEN)help2man -N -o $@ -m $(@:.man=) ./$(@:.man=)
374
375.man.html: $<
376 $(AM_V_GEN)groff -mandoc `man -w -l $<` -T html > $@
377
378.man.pdf: $<
379 $(AM_V_GEN)groff -mandoc `man -w -l $<` | ps2pdf - $@
380
381man: $(MAN_TARGETS) doxygen-doc
382
383diff:
384 @svn diff | $(COLORDIFF)
385
386#-------------------------------------------------------------------------
387
388# Overwrite rules for silent or other verbosity levels
389#AM_V_MAN = $(AM_MAN_$(V))
390#AM_MAN_ = $(AM_V_GEN)
391#AM_MAN_0 = @echo " MAN "$@;
392
393#$(MyAnalysisDS): $(MyAnalysisH) $(MyAnalysisL)
394# $(ROOTCINT) -f $@ -c -I$(top_builddir)/config $(INCLUDES) $^
395# rootcint_files=`echo $@ | sed -ne 's/\(.*\)\..*/\1.cxx \1.h/p'` && \
396# $(top_srcdir)/config/runsed $(top_srcdir)/config/rootcint.sed $$rootcint_files && \
397# for i in $$rootcint_files; do \
398# if test ! `diff $$i $(srcdir)/$$i >/dev/null 2>&1`; then \
399# cp $$i $(srcdir)/; \
400# fi; \
401# done
402
403#CLEANFILES = *~ *.rej *.orig
404#MAINTAINERCLEANFILES = aclocal.m4 config.h.in configure Makefile.in \
405# stamp-h.in stamp-h[0-9].in
406#DISTCLEANFILES = config.cache config.log
Note: See TracBrowser for help on using the repository browser.