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

Last change on this file since 11002 was 11001, checked in by tbretz, 13 years ago
Added libDimExtension.la and a wrapped dns
File size: 9.8 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 fitsdump
39
40
41if HAS_LIBXP
42bin_PROGRAMS+= did
43endif
44
45# This is a trick to be able to build them but not having them in 'all'
46if IS_FALSE
47bin_PROGRAMS+= \
48 test \
49 fadctrl \
50 chatclient chatserv \
51 fitsloader fitsgrep test \
52 sched astro drivectrl
53endif
54
55lib_LTLIBRARIES = \
56 libDim.la libDim++.la libDimExtension.la libTime.la libTools.la \
57 libConfiguration.la libStateMachine.la
58# libAstro.la
59
60if HAS_HELP2MAN
61dist_man1_MANS = \
62 dimctrl.man ftmctrl.man dataLogger.man triggerschedule.man fitsdump.man
63endif
64
65#-------------------------------------------------------------------------
66
67CLEANFILES =
68
69dist_noinst_SCRIPTS = autogen.sh
70
71EXTRA_DIST = \
72 Doxyfile \
73 dim/DIM_Performance.pdf \
74 dim/LICENSE.GPL \
75 dim/README.txt \
76 dim/README_v9.txt \
77 dim/README_v10.txt \
78 dim/README_v11.txt \
79 dim/README_v12.txt \
80 dim/README_v13.txt \
81 dim/README_v14.txt \
82 dim/README_v17.txt \
83 dim/README_v16.txt \
84 dim/README_v17.txt \
85 dim/README_v18.txt \
86 dim/README_v19.txt
87
88dns_LDADD = libDim.la libDimExtension.la
89dns_SOURCES = src/dns.c
90#dns_CPPFLAGS = $(AM_CPPFLAGS) $(DIM_FLAGS)
91
92did_LDADD = libDim.la
93did_CPPFLAGS = $(AM_CPPFLAGS) -Idim/src/did
94did_SOURCES = \
95 dim/src/did/did.c dim/src/did/did.h \
96 dim/src/did/dui_util.c dim/src/did/dui_util.h \
97 dim/src/did/dui_colors.h
98
99
100#libDim_la_CPPFLAGS = $(AM_CPPFLAGS) $(DIM_FLAGS)
101libDim_ladir =
102libDim_la_HEADERS = \
103 dim/dim/dic.h \
104 dim/dim/dim_common.h \
105 dim/dim/dim.h \
106 dim/dim/dim_tcpip.h \
107 dim/dim/dis.h
108
109libDim_la_SOURCES = \
110 dim/src/dic.c \
111 dim/src/dis.c \
112 dim/src/dna.c \
113 dim/src/sll.c \
114 dim/src/dll.c \
115 dim/src/hash.c \
116 dim/src/swap.c \
117 dim/src/copy_swap.c \
118 dim/src/open_dns.c \
119 dim/src/conn_handler.c \
120 dim/src/tcpip.c \
121 dim/src/dtq.c \
122 dim/src/dim_thr.c \
123 dim/src/utilities.c
124
125libDimExtension_la_SOURCES = src/DimSetup.cc src/DimSetup.h
126
127#libDimCpp_la_CXXFLAGS = $(AM_CXXFLAGS) $(DIM_FLAGS)
128libDim___ladir =
129libDim___la_HEADERS = \
130 dim/dim/dic.hxx \
131 dim/dim/dis.hxx \
132 dim/dim/dim_core.hxx \
133 dim/dim/dim.hxx \
134 dim/dim/dim_tcpip.h \
135 dim/dim/dllist.hxx \
136 dim/dim/sllist.hxx \
137 dim/dim/tokenstring.hxx \
138 src/Dim.h
139libDim___la_SOURCES = \
140 dim/src/diccpp.cxx \
141 dim/src/dimcpp.cxx \
142 dim/src/tokenstring.cxx \
143 dim/src/discpp.cxx \
144 src/Dim.cc
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 libStateMachine.la libDim.la libDim++.la
192
193ftm_SOURCES = src/ftm.cc src/HeadersFTM.cc
194ftm_LDADD = libTime.la libTools.la libStateMachine.la libDim.la libDim++.la
195
196fad_SOURCES = src/fad.cc src/HeadersFAD.cc
197fad_LDADD = libTime.la libTools.la libStateMachine.la libDim.la libDim++.la
198
199
200log_SOURCES = src/log.cc
201log_LDADD = libTime.la libDim.la libDim++.la libTools.la libStateMachine.la
202
203
204logtime_SOURCES = src/logtime.cc
205logtime_LDADD = libTools.la libStateMachine.la libTime.la libDim.la libDim++.la
206
207
208chatserv_SOURCES = src/chatserv.cc src/LocalControl.h
209chatserv_LDADD = libTools.la libStateMachine.la libConfiguration.la libTime.la libDim.la libDim++.la
210
211
212dclient5_SOURCES = src/dclient5.cc src/LocalControl.h
213dclient5_LDADD = libDim.la libDim++.la libTime.la libTools.la libStateMachine.la \
214 libConfiguration.la
215
216ftmctrl_SOURCES = src/ftmctrl.cc src/LocalControl.h src/HeadersFTM.cc
217ftmctrl_LDADD = libDim.la libDim++.la libTime.la libTools.la libStateMachine.la \
218 libConfiguration.la
219
220drivectrl_SOURCES = src/drivectrl.cc src/LocalControl.h src/HeadersFTM.cc
221drivectrl_LDADD = libDim.la libDim++.la libTime.la libTools.la libStateMachine.la \
222 libConfiguration.la
223
224fadctrl_SOURCES = src/fadctrl.cc src/LocalControl.h src/HeadersFAD.cc \
225 src/EventBuilder.c src/EventBuilder.h
226fadctrl_LDADD = libDim.la libDim++.la libTime.la libTools.la libStateMachine.la \
227 libConfiguration.la
228
229
230argv_SOURCES = src/argv.cc
231argv_LDADD = libConfiguration.la
232
233
234dimctrl_SOURCES = src/dimctrl.cc src/RemoteControl.cc src/RemoteControl.h
235dimctrl_LDADD = libTools.la libStateMachine.la libTime.la libDim.la libDim++.la libConfiguration.la
236
237
238chatclient_SOURCES = src/chatclient.cc src/ChatClient.h
239chatclient_LDADD = libTools.la libStateMachine.la libTime.la libDim.la libDim++.la libConfiguration.la
240
241
242time_SOURCES = src/time.cc
243time_LDADD = libTime.la
244
245#astro_SOURCES = src/astro.cc
246#astro_LDADD = libAstro.la libTime.la
247
248test_SOURCES = src/test.cc
249test_LDADD = libTools.la libStateMachine.la libTime.la libDim.la libDim++.la libConfiguration.la
250
251dataLogger_SOURCES = src/dataLogger.cc src/LocalControl.h
252if HAS_FITS
253dataLogger_SOURCES += src/Fits.cc
254endif
255dataLogger_LDADD = libDim.la libDim++.la libTime.la libTools.la libStateMachine.la \
256 libConfiguration.la
257
258scheduler_SOURCES = src/scheduler.cc src/LocalControl.h
259scheduler_LDADD = libStateMachine.la libTools.la libTime.la libDim.la libDim++.la libConfiguration.la
260
261fitsloader_SOURCES = src/fitsloader.cc src/LocalControl.h
262fitsloader_LDADD = libStateMachine.la libTools.la libTime.la libDim.la libDim++.la libConfiguration.la
263
264fitsdump_SOURCES = src/fitsdump.cc
265fitsdump_LDADD = libConfiguration.la
266
267triggerschedule_SOURCES = src/triggerschedule.cc
268triggerschedule_LDADD = libDim.la libDim++.la libConfiguration.la
269
270#fitsgrep_SOURCES = src/fitsgrep.cc
271#fitsgrep_LDADD = libConfiguration.la
272
273# -----
274
275if HAS_GUI
276DIALOGS = \
277 gui/design.ui
278
279RESOURCES = \
280 gui/design.qrc
281
282QT_SOURCES = \
283 gui/DockWindow.cc \
284 gui/MainWindow.cc
285endif
286
287BUILT_SOURCES = $(DIALOGS:.ui=.h) $(RESOURCES:.qrc=.cc) $(QT_SOURCES:.cc=.moc.cc)
288
289CLEANFILES += $(BUILT_SOURCES)
290
291EXTRA_DIST += $(DIALOGS) $(RESOURCES)
292
293fact_LDADD = $(ROOTLDFLAGS) $(ROOTGLIBS) $(QT4_LIB) $(QT4_LDFLAGS) -L. \
294 libDim.la libDim++.la libTools.la libTime.la libTools.la libStateMachine.la \
295 libConfiguration.la
296
297fact_SOURCES = $(BUILT_SOURCES) $(QT_SOURCES) \
298 gui/CheckBoxDelegate.cc gui/HtmlDelegate.cc \
299 gui/fact.cc gui/FactGui.cc src/HeadersFTM.cc
300
301
302#-------------------------------------------------------------------------
303
304SUFFIXES = .moc.cc
305
306.ui.h: $<
307 $(AM_V_GEN)$(UIC4) $< -o $@
308
309.h.moc.cc: $<
310 $(AM_V_GEN)$(MOC4) $(EXTRA_CPPFLAGS) $< -o $@
311
312.qrc.cc: $<
313 $(AM_V_GEN)$(RCC4) -name `echo "$<" | sed 's|^.*/\(.*\)\.qrc$$|\1|'` $< -o $@
314
315
316#-------------------------------------------------------------------------
317
318MAN_TARGETS = $(dist_man1_MANS)
319
320if HAS_GROFF
321
322MAN_TARGETS += $(dist_man1_MANS:.man=.html)
323EXTRA_DIST += $(dist_man1_MANS:.man=.html)
324CLEANFILES += $(dist_man1_MANS:.man=.html)
325
326if HAS_PS2PDF
327
328MAN_TARGETS += $(dist_man1_MANS:.man=.pdf)
329EXTRA_DIST += $(dist_man1_MANS:.man=.pdf)
330CLEANFILES += $(dist_man1_MANS:.man=.pdf)
331endif
332
333endif
334
335$(dist_man1_MANS): $(dist_man1_MANS:.man=)
336 @mkdir -p man
337 $(AM_V_GEN)help2man -N -o $@ -m $(@:.man=) ./$(@:.man=)
338
339.man.html: $<
340 $(AM_V_GEN)groff -mandoc `man -w -l $<` -T html > $@
341
342.man.pdf: $<
343 $(AM_V_GEN)groff -mandoc `man -w -l $<` | ps2pdf - $@
344
345man: $(MAN_TARGETS) doxygen-doc
346
347diff:
348 @svn diff | $(COLORDIFF)
349
350#-------------------------------------------------------------------------
351
352# Overwrite rules for silent or other verbosity levels
353#AM_V_MAN = $(AM_MAN_$(V))
354#AM_MAN_ = $(AM_V_GEN)
355#AM_MAN_0 = @echo " MAN "$@;
356
357#$(MyAnalysisDS): $(MyAnalysisH) $(MyAnalysisL)
358# $(ROOTCINT) -f $@ -c -I$(top_builddir)/config $(INCLUDES) $^
359# rootcint_files=`echo $@ | sed -ne 's/\(.*\)\..*/\1.cxx \1.h/p'` && \
360# $(top_srcdir)/config/runsed $(top_srcdir)/config/rootcint.sed $$rootcint_files && \
361# for i in $$rootcint_files; do \
362# if test ! `diff $$i $(srcdir)/$$i >/dev/null 2>&1`; then \
363# cp $$i $(srcdir)/; \
364# fi; \
365# done
366
367#CLEANFILES = *~ *.rej *.orig
368#MAINTAINERCLEANFILES = aclocal.m4 config.h.in configure Makefile.in \
369# stamp-h.in stamp-h[0-9].in
370#DISTCLEANFILES = config.cache config.log
Note: See TracBrowser for help on using the repository browser.