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

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