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