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

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