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

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