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

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