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

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