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

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