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

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