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

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