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

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