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

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