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