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

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