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

Last change on this file since 12374 was 12354, checked in by tbretz, 13 years ago
Added ratecontrol.
File size: 12.9 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 ratecontrol \
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
290ratecontrol_SOURCES = src/ratecontrol.cc src/LocalControl.h src/PixelMap.cc
291ratecontrol_LDADD = libDim.la libDim++.la libDimExtension.la \
292 libTime.la libTools.la libStateMachine.la \
293 libConfiguration.la
294
295
296argv_SOURCES = src/argv.cc
297argv_LDADD = libConfiguration.la
298
299
300dimctrl_SOURCES = src/dimctrl.cc src/RemoteControl.cc src/RemoteControl.h
301dimctrl_LDADD = libTools.la libStateMachine.la libTime.la \
302 libDim.la libDim++.la libDimExtension.la libConfiguration.la
303
304
305chatclient_SOURCES = src/chatclient.cc src/ChatClient.h
306chatclient_LDADD = libTools.la libStateMachine.la libTime.la \
307 libDim.la libDim++.la libDimExtension.la libConfiguration.la
308
309
310time_SOURCES = src/time.cc
311time_LDADD = libTime.la
312
313#astro_SOURCES = src/astro.cc
314#astro_LDADD = libAstro.la libTime.la
315
316test_SOURCES = src/test.cc
317test_LDADD = libTools.la libStateMachine.la libTime.la libDim.la libDim++.la libConfiguration.la
318
319datalogger_SOURCES = src/datalogger.cc src/LocalControl.h
320if HAS_FITS
321datalogger_SOURCES += src/FitsFile.h src/FitsFile.cc src/Fits.h src/Fits.cc
322endif
323datalogger_LDADD = libDim.la libDim++.la libDimExtension.la \
324 libTime.la libTools.la libStateMachine.la \
325 libConfiguration.la
326
327scheduler_SOURCES = src/scheduler.cc src/LocalControl.h
328scheduler_LDADD = libStateMachine.la libTools.la libTime.la \
329 libDim.la libDim++.la libDimExtension.la libConfiguration.la
330
331fitsloader_SOURCES = src/fitsloader.cc src/LocalControl.h
332fitsloader_LDADD = libStateMachine.la libTools.la libTime.la libDim.la libDim++.la libConfiguration.la
333
334fitsdump_SOURCES = src/fitsdump.cc
335fitsdump_LDADD = libConfiguration.la libTime.la
336
337readfits_SOURCES = src/readfits.cc src/ReadFits.h
338readfits_LDADD = libStateMachine.la libTools.la libTime.la libDim.la libDim++.la libConfiguration.la
339
340triggerschedule_SOURCES = src/triggerschedule.cc
341triggerschedule_LDADD = libDim.la libDim++.la libDimExtension.la libConfiguration.la
342
343#fitsgrep_SOURCES = src/fitsgrep.cc
344#fitsgrep_LDADD = libConfiguration.la
345
346# -----
347
348if HAS_GUI
349
350fact_DIALOGS = \
351 gui/design.ui
352
353fact_RESOURCES = \
354 gui/design.qrc
355
356fact_QT_SOURCES = \
357 gui/DockWindow.cc \
358 gui/MainWindow.cc \
359 gui/QCameraWidget.cc \
360 gui/BasicGlCamera.cc
361
362fact_SRCADD = $(fact_DIALOGS:.ui=.h) $(fact_RESOURCES:.qrc=.cc) $(fact_QT_SOURCES:.cc=.moc.cc)
363
364endif
365
366# -----
367
368if HAS_VIEWER
369
370viewer_DIALOGS = \
371 gui/RawEventsViewer/viewer.ui
372
373viewer_QT_SOURCES = \
374 gui/RawEventsViewer/RawEventsViewer.cc \
375 gui/BasicGlCamera.cc \
376 gui/QCameraWidget.cc
377
378viewer_SRCADD = $(viewer_DIALOGS:.ui=.h) $(viewer_RESOURCES:.qrc=.cc) $(viewer_QT_SOURCES:.cc=.moc.cc)
379
380endif
381
382
383
384BUILT_SOURCES = $(fact_SRCADD) $(viewer_SRCADD)
385
386CLEANFILES += $(BUILT_SOURCES)
387
388EXTRA_DIST += \
389 $(fact_DIALOGS) $(fact_RESOURCES) \
390 $(viewer_DIALOGS) $(viewer_RESOURCES)
391
392fact_LDADD = $(ROOTLDFLAGS) $(ROOTGLIBS) $(QT4_LIB) $(QT4_LDFLAGS) -L. \
393 libDim.la libDim++.la libDimExtension.la \
394 libTools.la libTime.la libTools.la libStateMachine.la \
395 libConfiguration.la
396
397fact_SOURCES = $(fact_SRCADD) $(fact_QT_SOURCES) \
398 gui/CheckBoxDelegate.cc gui/HtmlDelegate.cc \
399 gui/fact.cc gui/FactGui.cc src/HeadersFTM.cc \
400 src/PixelMap.cc
401
402viewer_LDADD = $(QT4_LIB) $(QT4_LDFLAGS) -L. -lQtOpenGL -lGLU \
403 libDim.la libDim++.la libDimExtension.la \
404 libConfiguration.la libTools.la libStateMachine.la \
405 libTime.la
406
407
408viewer_SOURCES = $(viewer_SRCADD) $(viewer_QT_SOURCES) \
409 src/DataProcessorImp.cc src/DataProcessorImp.h \
410 src/FitsFile.cc src/FitsFile.h
411 src/Fits.cc src/Fits.h
412
413
414
415#-------------------------------------------------------------------------
416
417SUFFIXES = .moc.cc
418
419.ui.h: $<
420 $(AM_V_GEN)$(UIC4) $< -o $@
421
422.h.moc.cc: $<
423 $(AM_V_GEN)$(MOC4) $(EXTRA_CPPFLAGS) $< -o $@
424
425.qrc.cc: $<
426 $(AM_V_GEN)$(RCC4) -name `echo "$<" | sed 's|^.*/\(.*\)\.qrc$$|\1|'` $< -o $@
427
428
429#-------------------------------------------------------------------------
430
431MAN_TARGETS = $(dist_man1_MANS)
432
433if HAS_GROFF
434
435MAN_TARGETS += $(dist_man1_MANS:.man=.html)
436EXTRA_DIST += $(dist_man1_MANS:.man=.html)
437CLEANFILES += $(dist_man1_MANS:.man=.html)
438
439if HAS_PS2PDF
440
441MAN_TARGETS += $(dist_man1_MANS:.man=.pdf)
442EXTRA_DIST += $(dist_man1_MANS:.man=.pdf)
443CLEANFILES += $(dist_man1_MANS:.man=.pdf)
444endif
445
446endif
447
448$(dist_man1_MANS): $(dist_man1_MANS:.man=)
449 @mkdir -p man
450 $(AM_V_GEN)help2man -N -o $@ -m $(@:.man=) ./$(@:.man=)
451
452.man.html: $<
453 $(AM_V_GEN)groff -mandoc `man -w -l $<` -T html > $@
454
455.man.pdf: $<
456 $(AM_V_GEN)groff -mandoc `man -w -l $<` | ps2pdf - $@
457
458man: $(MAN_TARGETS) doxygen-doc
459
460diff:
461 @svn diff | $(COLORDIFF)
462 @svn diff externals | $(COLORDIFF)
463
464#-------------------------------------------------------------------------
465
466# Overwrite rules for silent or other verbosity levels
467#AM_V_MAN = $(AM_MAN_$(V))
468#AM_MAN_ = $(AM_V_GEN)
469#AM_MAN_0 = @echo " MAN "$@;
470
471#$(MyAnalysisDS): $(MyAnalysisH) $(MyAnalysisL)
472# $(ROOTCINT) -f $@ -c -I$(top_builddir)/config $(INCLUDES) $^
473# rootcint_files=`echo $@ | sed -ne 's/\(.*\)\..*/\1.cxx \1.h/p'` && \
474# $(top_srcdir)/config/runsed $(top_srcdir)/config/rootcint.sed $$rootcint_files && \
475# for i in $$rootcint_files; do \
476# if test ! `diff $$i $(srcdir)/$$i >/dev/null 2>&1`; then \
477# cp $$i $(srcdir)/; \
478# fi; \
479# done
480
481#CLEANFILES = *~ *.rej *.orig
482#MAINTAINERCLEANFILES = aclocal.m4 config.h.in configure Makefile.in \
483# stamp-h.in stamp-h[0-9].in
484#DISTCLEANFILES = config.cache config.log
Note: See TracBrowser for help on using the repository browser.