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

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