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

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