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

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