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

Last change on this file since 11942 was 11903, checked in by tbretz, 13 years ago
Updated what is needed to compiule the viewer.
File size: 12.0 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 gui/BasicGlCamera.cc
352
353viewer_SRCADD = $(viewer_DIALOGS:.ui=.h) $(viewer_RESOURCES:.qrc=.cc) $(viewer_QT_SOURCES:.cc=.moc.cc)
354
355endif
356
357
358
359BUILT_SOURCES = $(fact_SRCADD) $(viewer_SRCADD)
360
361CLEANFILES += $(BUILT_SOURCES)
362
363EXTRA_DIST += \
364 $(fact_DIALOGS) $(fact_RESOURCES) \
365 $(viewer_DIALOGS) $(viewer_RESOURCES)
366
367fact_LDADD = $(ROOTLDFLAGS) $(ROOTGLIBS) $(QT4_LIB) $(QT4_LDFLAGS) -L. \
368 libDim.la libDim++.la libDimExtension.la \
369 libTools.la libTime.la libTools.la libStateMachine.la \
370 libConfiguration.la
371
372fact_SOURCES = $(fact_SRCADD) $(fact_QT_SOURCES) \
373 gui/CheckBoxDelegate.cc gui/HtmlDelegate.cc \
374 gui/fact.cc gui/FactGui.cc src/HeadersFTM.cc
375
376viewer_LDADD = $(QT4_LIB) $(QT4_LDFLAGS) -L. -lQtOpenGL -lGLU libConfiguration.la libTools.la
377
378viewer_SOURCES = $(viewer_SRCADD) $(viewer_QT_SOURCES)
379
380
381
382#-------------------------------------------------------------------------
383
384SUFFIXES = .moc.cc
385
386.ui.h: $<
387 $(AM_V_GEN)$(UIC4) $< -o $@
388
389.h.moc.cc: $<
390 $(AM_V_GEN)$(MOC4) $(EXTRA_CPPFLAGS) $< -o $@
391
392.qrc.cc: $<
393 $(AM_V_GEN)$(RCC4) -name `echo "$<" | sed 's|^.*/\(.*\)\.qrc$$|\1|'` $< -o $@
394
395
396#-------------------------------------------------------------------------
397
398MAN_TARGETS = $(dist_man1_MANS)
399
400if HAS_GROFF
401
402MAN_TARGETS += $(dist_man1_MANS:.man=.html)
403EXTRA_DIST += $(dist_man1_MANS:.man=.html)
404CLEANFILES += $(dist_man1_MANS:.man=.html)
405
406if HAS_PS2PDF
407
408MAN_TARGETS += $(dist_man1_MANS:.man=.pdf)
409EXTRA_DIST += $(dist_man1_MANS:.man=.pdf)
410CLEANFILES += $(dist_man1_MANS:.man=.pdf)
411endif
412
413endif
414
415$(dist_man1_MANS): $(dist_man1_MANS:.man=)
416 @mkdir -p man
417 $(AM_V_GEN)help2man -N -o $@ -m $(@:.man=) ./$(@:.man=)
418
419.man.html: $<
420 $(AM_V_GEN)groff -mandoc `man -w -l $<` -T html > $@
421
422.man.pdf: $<
423 $(AM_V_GEN)groff -mandoc `man -w -l $<` | ps2pdf - $@
424
425man: $(MAN_TARGETS) doxygen-doc
426
427diff:
428 @svn diff | $(COLORDIFF)
429 @svn diff externals | $(COLORDIFF)
430
431#-------------------------------------------------------------------------
432
433# Overwrite rules for silent or other verbosity levels
434#AM_V_MAN = $(AM_MAN_$(V))
435#AM_MAN_ = $(AM_V_GEN)
436#AM_MAN_0 = @echo " MAN "$@;
437
438#$(MyAnalysisDS): $(MyAnalysisH) $(MyAnalysisL)
439# $(ROOTCINT) -f $@ -c -I$(top_builddir)/config $(INCLUDES) $^
440# rootcint_files=`echo $@ | sed -ne 's/\(.*\)\..*/\1.cxx \1.h/p'` && \
441# $(top_srcdir)/config/runsed $(top_srcdir)/config/rootcint.sed $$rootcint_files && \
442# for i in $$rootcint_files; do \
443# if test ! `diff $$i $(srcdir)/$$i >/dev/null 2>&1`; then \
444# cp $$i $(srcdir)/; \
445# fi; \
446# done
447
448#CLEANFILES = *~ *.rej *.orig
449#MAINTAINERCLEANFILES = aclocal.m4 config.h.in configure Makefile.in \
450# stamp-h.in stamp-h[0-9].in
451#DISTCLEANFILES = config.cache config.log
Note: See TracBrowser for help on using the repository browser.