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

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