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

Last change on this file since 14098 was 14056, checked in by tbretz, 12 years ago
Added InterpreterV8 to dimctrl
File size: 14.4 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 src/RemoteControl.cc src/RemoteControl.h src/InterpreterV8.cc src/InterpreterV8.h
336dimctrl_LDADD = libStateMachine.la libTools.la libTime.la \
337 libDim++.la libDim.la libDimExtension.la libConfiguration.la
338
339
340chatclient_SOURCES = src/chatclient.cc src/ChatClient.h
341chatclient_LDADD = libStateMachine.la libTools.la libTime.la \
342 libDim++.la libDim.la libDimExtension.la libConfiguration.la
343
344skypeclient_SOURCES = src/skypeclient.cc src/ChatClient.h
345skypeclient_LDADD = libStateMachine.la libTools.la libTime.la \
346 libDim++.la libDim.la libDimExtension.la libConfiguration.la
347
348
349time_SOURCES = src/time.cc
350time_LDADD = libTime.la
351
352#astro_SOURCES = src/astro.cc
353#astro_LDADD = libAstro.la libTime.la
354
355test_SOURCES = src/test.cc
356test_LDADD = libStateMachine.la libTools.la libTime.la libDim++.la libDim.la libConfiguration.la
357
358datalogger_SOURCES = src/datalogger.cc src/LocalControl.h
359if HAS_FITS
360datalogger_SOURCES += src/FitsFile.h src/FitsFile.cc src/Fits.h src/Fits.cc
361endif
362datalogger_LDADD = libDim++.la libDim.la libDimExtension.la \
363 libStateMachine.la libTools.la libTime.la \
364 libConfiguration.la
365
366scheduler_SOURCES = src/scheduler.cc src/LocalControl.h
367scheduler_LDADD = libStateMachine.la libTools.la libTime.la \
368 libDim++.la libDim.la libDimExtension.la libConfiguration.la
369
370fitsloader_SOURCES = src/fitsloader.cc src/LocalControl.h
371fitsloader_LDADD = libStateMachine.la libTools.la libTime.la libDim++.la libDim.la libConfiguration.la
372
373fitsdump_SOURCES = src/fitsdump.cc
374fitsdump_LDADD = $(ROOTLDFLAGS) $(ROOTLIBS) libConfiguration.la libTime.la
375
376fitscheck_SOURCES = src/fitscheck.cc
377fitscheck_LDADD = libConfiguration.la
378
379
380readfits_SOURCES = src/readfits.cc src/ReadFits.h
381readfits_LDADD = libStateMachine.la libTools.la libTime.la libDim++.la libDim.la libConfiguration.la
382
383triggerschedule_SOURCES = src/triggerschedule.cc
384triggerschedule_LDADD = libDim++.la libDim.la libDimExtension.la libConfiguration.la
385
386#fitsgrep_SOURCES = src/fitsgrep.cc
387#fitsgrep_LDADD = libConfiguration.la
388
389# -----
390
391if HAS_GUI
392
393fact_DIALOGS = \
394 gui/design.ui
395
396fact_RESOURCES = \
397 gui/design.qrc
398
399fact_QT_SOURCES = \
400 gui/DockWindow.cc \
401 gui/MainWindow.cc \
402 gui/QCameraWidget.cc \
403 gui/BasicGlCamera.cc
404
405fact_SRCADD = $(fact_DIALOGS:.ui=.h) $(fact_RESOURCES:.qrc=.cc) $(fact_QT_SOURCES:.cc=.moc.cc)
406
407endif
408
409# -----
410
411if HAS_VIEWER
412
413viewer_DIALOGS = \
414 gui/RawEventsViewer/viewer.ui
415
416viewer_QT_SOURCES = \
417 gui/RawEventsViewer/RawEventsViewer.cc \
418 gui/BasicGlCamera.cc \
419 gui/QCameraWidget.cc
420
421viewer_SRCADD = $(viewer_DIALOGS:.ui=.h) $(viewer_RESOURCES:.qrc=.cc) $(viewer_QT_SOURCES:.cc=.moc.cc)
422
423endif
424
425
426
427BUILT_SOURCES = $(fact_SRCADD) $(viewer_SRCADD)
428
429CLEANFILES += $(BUILT_SOURCES)
430
431EXTRA_DIST += \
432 $(fact_DIALOGS) $(fact_RESOURCES) \
433 $(viewer_DIALOGS) $(viewer_RESOURCES)
434
435fact_LDADD = $(ROOTLDFLAGS) $(ROOTGLIBS) $(QT4_LIB) $(QT4_LDFLAGS) -L. \
436 libDim++.la libDim.la libDimExtension.la \
437 libTools.la libStateMachine.la libTime.la libTools.la \
438 libConfiguration.la
439
440fact_SOURCES = $(fact_SRCADD) $(fact_QT_SOURCES) \
441 gui/CheckBoxDelegate.cc gui/HtmlDelegate.cc \
442 gui/fact.cc gui/FactGui.cc src/HeadersFTM.cc \
443 src/PixelMap.cc
444
445# Switch off most qwt warnings
446viewer_CXXFLAGS = $(AM_CXXFLAGS) -Wno-shadow
447
448viewer_LDADD = $(QT4_LIB) $(QT4_LDFLAGS) -L. -lQtOpenGL -lGLU \
449 libDimExtension.la \
450 libConfiguration.la libStateMachine.la libTools.la \
451 libTime.la libDim++.la libDim.la
452
453viewer_SOURCES = $(viewer_SRCADD) $(viewer_QT_SOURCES) \
454 src/DataProcessorImp.cc src/DataProcessorImp.h \
455 src/FitsFile.cc src/FitsFile.h \
456 src/Fits.cc src/Fits.h \
457 src/PixelMap.cc
458
459
460
461#-------------------------------------------------------------------------
462
463SUFFIXES = .moc.cc
464
465.ui.h: $<
466 $(AM_V_GEN)$(UIC4) $< -o $@
467
468.h.moc.cc: $<
469 $(AM_V_GEN)$(MOC4) $(EXTRA_CPPFLAGS) $< -o $@
470
471.qrc.cc: $<
472 $(AM_V_GEN)$(RCC4) -name `echo "$<" | sed 's|^.*/\(.*\)\.qrc$$|\1|'` $< -o $@
473
474
475#-------------------------------------------------------------------------
476
477MAN_TARGETS = $(dist_man1_MANS)
478
479if HAS_GROFF
480
481MAN_TARGETS += $(dist_man1_MANS:.man=.html)
482EXTRA_DIST += $(dist_man1_MANS:.man=.html)
483CLEANFILES += $(dist_man1_MANS:.man=.html)
484
485if HAS_PS2PDF
486
487MAN_TARGETS += $(dist_man1_MANS:.man=.pdf)
488EXTRA_DIST += $(dist_man1_MANS:.man=.pdf)
489CLEANFILES += $(dist_man1_MANS:.man=.pdf)
490endif
491
492endif
493
494$(dist_man1_MANS): $(dist_man1_MANS:.man=)
495 @mkdir -p man
496 $(AM_V_GEN)help2man -N -o $@ -m $(@:.man=) ./$(@:.man=)
497
498.man.html: $<
499 $(AM_V_GEN)groff -mandoc `man -w -l $<` -T html > $@
500
501.man.pdf: $<
502 $(AM_V_GEN)groff -mandoc `man -w -l $<` | ps2pdf - $@
503
504man: $(MAN_TARGETS) doxygen-doc
505
506diff:
507 @svn diff | $(COLORDIFF)
508 @svn diff externals | $(COLORDIFF)
509
510#-------------------------------------------------------------------------
511
512# Overwrite rules for silent or other verbosity levels
513#AM_V_MAN = $(AM_MAN_$(V))
514#AM_MAN_ = $(AM_V_GEN)
515#AM_MAN_0 = @echo " MAN "$@;
516
517#$(MyAnalysisDS): $(MyAnalysisH) $(MyAnalysisL)
518# $(ROOTCINT) -f $@ -c -I$(top_builddir)/config $(INCLUDES) $^
519# rootcint_files=`echo $@ | sed -ne 's/\(.*\)\..*/\1.cxx \1.h/p'` && \
520# $(top_srcdir)/config/runsed $(top_srcdir)/config/rootcint.sed $$rootcint_files && \
521# for i in $$rootcint_files; do \
522# if test ! `diff $$i $(srcdir)/$$i >/dev/null 2>&1`; then \
523# cp $$i $(srcdir)/; \
524# fi; \
525# done
526
527#CLEANFILES = *~ *.rej *.orig
528#MAINTAINERCLEANFILES = aclocal.m4 config.h.in configure Makefile.in \
529# stamp-h.in stamp-h[0-9].in
530#DISTCLEANFILES = config.cache config.log
Note: See TracBrowser for help on using the repository browser.