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

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