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

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