1 | include aminclude.am
|
---|
2 |
|
---|
3 | #-------------------------------------------------------------------------
|
---|
4 |
|
---|
5 | ACLOCAL_AMFLAGS = -I .macro_dir
|
---|
6 |
|
---|
7 | SVN_REVISION = -DREVISION=\"`svnversion -n .`\"
|
---|
8 |
|
---|
9 | DIM_FLAGS = -DMIPSEL -DPROTOCOL=1 -Dunix -Dlinux
|
---|
10 | BOOST_FLAGS = -DBOOST_DISABLE_ASSERTS
|
---|
11 |
|
---|
12 | AM_CPPFLAGS = -Idim/dim $(DIM_FLAGS) $(BOOST_FLAGS) $(ROOTCPPFLAGS) \
|
---|
13 | -O3 -Wall -Winit-self -Wpointer-arith -Wcast-align -Wextra -Wformat=2 \
|
---|
14 | $(SVN_REVISION)
|
---|
15 |
|
---|
16 | AM_CXXFLAGS = $(AM_CPPFLAGS) $(QT4_INCLUDES) \
|
---|
17 | -Woverloaded-virtual -Wnon-virtual-dtor -Wshadow -std=c++0x
|
---|
18 |
|
---|
19 | # -no-undefined
|
---|
20 | AM_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')
|
---|
29 | bin_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 |
|
---|
42 | if HAS_GUI
|
---|
43 | bin_PROGRAMS += fact
|
---|
44 | endif
|
---|
45 |
|
---|
46 | if HAS_LIBXP
|
---|
47 | bin_PROGRAMS += did
|
---|
48 | endif
|
---|
49 |
|
---|
50 | # This is a trick to be able to build them but not having them in 'all'
|
---|
51 | if IS_FALSE
|
---|
52 | bin_PROGRAMS += \
|
---|
53 | test \
|
---|
54 | dclient5 dserver2 \
|
---|
55 | fitsloader fitsgrep \
|
---|
56 | sched astro drivectrl \
|
---|
57 | readfits mcp
|
---|
58 | endif
|
---|
59 |
|
---|
60 | lib_LTLIBRARIES = \
|
---|
61 | libDim.la libDim++.la libDimExtension.la libTime.la libTools.la \
|
---|
62 | libConfiguration.la libStateMachine.la
|
---|
63 | # libAstro.la
|
---|
64 |
|
---|
65 | if HAS_HELP2MAN
|
---|
66 | dist_man1_MANS = \
|
---|
67 | dimctrl.man ftmctrl.man datalogger.man triggerschedule.man fitsdump.man
|
---|
68 | endif
|
---|
69 |
|
---|
70 | #-------------------------------------------------------------------------
|
---|
71 |
|
---|
72 | CLEANFILES =
|
---|
73 |
|
---|
74 | dist_noinst_SCRIPTS = autogen.sh
|
---|
75 |
|
---|
76 | EXTRA_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 |
|
---|
93 | dns_LDADD = libDim.la libDimExtension.la
|
---|
94 | dns_SOURCES = src/dns.c
|
---|
95 | #dns_CPPFLAGS = $(AM_CPPFLAGS) $(DIM_FLAGS)
|
---|
96 |
|
---|
97 | did_LDADD = libDim.la
|
---|
98 | did_CPPFLAGS = $(AM_CPPFLAGS) -Idim/src/did
|
---|
99 | did_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)
|
---|
106 | libDim_ladir =
|
---|
107 | libDim_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 |
|
---|
114 | libDim_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 |
|
---|
130 | libDimExtension_la_SOURCES = src/DimSetup.cc src/DimSetup.h
|
---|
131 |
|
---|
132 | #libDimCpp_la_CXXFLAGS = $(AM_CXXFLAGS) $(DIM_FLAGS)
|
---|
133 | libDim___ladir =
|
---|
134 | libDim___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
|
---|
144 | libDim___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?
|
---|
151 | libStateMachine_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 |
|
---|
188 | libConfiguration_la_SOURCES = \
|
---|
189 | src/Configuration.h src/Configuration.cc \
|
---|
190 | src/FACT.h src/FACT.cc
|
---|
191 |
|
---|
192 | libTime_la_SOURCES = src/Time.h src/Time.cc
|
---|
193 | #libAstro_la_SOURCES = src/Astro.h src/Astro.cc
|
---|
194 | libTools_la_SOURCES = src/tools.h src/tools.cc
|
---|
195 |
|
---|
196 |
|
---|
197 | dserver2_SOURCES = src/dserver2.cc
|
---|
198 | dserver2_LDADD = libTime.la libTools.la
|
---|
199 |
|
---|
200 | ftm_SOURCES = src/ftm.cc src/HeadersFTM.cc
|
---|
201 | ftm_LDADD = libTime.la libTools.la libDim.la libDim++.la libConfiguration.la libDimExtension.la
|
---|
202 |
|
---|
203 | fad_SOURCES = src/fad.cc src/HeadersFAD.cc
|
---|
204 | fad_LDADD = libTime.la libTools.la libTools.la libDim.la libDim++.la libConfiguration.la libDimExtension.la
|
---|
205 |
|
---|
206 | fsc_SOURCES = src/fsc.cc
|
---|
207 | fsc_LDADD = libTime.la libTools.la
|
---|
208 |
|
---|
209 |
|
---|
210 | log_SOURCES = src/log.cc
|
---|
211 | log_LDADD = libTime.la libDim.la libDim++.la libTools.la libStateMachine.la
|
---|
212 |
|
---|
213 |
|
---|
214 | logtime_SOURCES = src/logtime.cc
|
---|
215 | logtime_LDADD = libTools.la libStateMachine.la libTime.la libDim.la libDim++.la
|
---|
216 |
|
---|
217 |
|
---|
218 | chatserv_SOURCES = src/chatserv.cc src/LocalControl.h
|
---|
219 | chatserv_LDADD = libTools.la libStateMachine.la libConfiguration.la libTime.la \
|
---|
220 | libDim.la libDim++.la libDimExtension.la
|
---|
221 |
|
---|
222 |
|
---|
223 | dclient5_SOURCES = src/dclient5.cc src/LocalControl.h
|
---|
224 | dclient5_LDADD = libDim.la libDim++.la libTime.la libTools.la libStateMachine.la \
|
---|
225 | libConfiguration.la
|
---|
226 |
|
---|
227 | ftmctrl_SOURCES = src/ftmctrl.cc src/LocalControl.h src/HeadersFTM.cc
|
---|
228 | ftmctrl_LDADD = libDim.la libDim++.la libDimExtension.la \
|
---|
229 | libTime.la libTools.la libStateMachine.la \
|
---|
230 | libConfiguration.la
|
---|
231 |
|
---|
232 | drivectrl_SOURCES = src/drivectrl.cc src/LocalControl.h src/HeadersFTM.cc
|
---|
233 | drivectrl_LDADD = libDim.la libDim++.la libTime.la libTools.la libStateMachine.la \
|
---|
234 | libConfiguration.la
|
---|
235 |
|
---|
236 | fadctrl_SOURCES = src/fadctrl.cc src/LocalControl.h src/HeadersFAD.cc \
|
---|
237 | src/EventBuilder.c src/EventBuilder.h
|
---|
238 | fadctrl_LDADD = libDim.la libDim++.la libDimExtension.la \
|
---|
239 | libTime.la libTools.la libStateMachine.la \
|
---|
240 | libConfiguration.la
|
---|
241 |
|
---|
242 | fscctrl_SOURCES = src/fscctrl.cc src/LocalControl.h
|
---|
243 | fscctrl_LDADD = libDim.la libDim++.la libDimExtension.la \
|
---|
244 | libTime.la libTools.la libStateMachine.la \
|
---|
245 | libConfiguration.la
|
---|
246 |
|
---|
247 | biasctrl_SOURCES = src/biasctrl.cc src/LocalControl.h
|
---|
248 | biasctrl_LDADD = libDim.la libDim++.la libDimExtension.la \
|
---|
249 | libTime.la libTools.la libStateMachine.la \
|
---|
250 | libConfiguration.la
|
---|
251 |
|
---|
252 | mcp_SOURCES = src/mcp.cc src/LocalControl.h
|
---|
253 | mcp_LDADD = libDim.la libDim++.la libDimExtension.la \
|
---|
254 | libTime.la libTools.la libStateMachine.la \
|
---|
255 | libConfiguration.la
|
---|
256 |
|
---|
257 |
|
---|
258 | argv_SOURCES = src/argv.cc
|
---|
259 | argv_LDADD = libConfiguration.la
|
---|
260 |
|
---|
261 |
|
---|
262 | dimctrl_SOURCES = src/dimctrl.cc src/RemoteControl.cc src/RemoteControl.h
|
---|
263 | dimctrl_LDADD = libTools.la libStateMachine.la libTime.la \
|
---|
264 | libDim.la libDim++.la libDimExtension.la libConfiguration.la
|
---|
265 |
|
---|
266 |
|
---|
267 | chatclient_SOURCES = src/chatclient.cc src/ChatClient.h
|
---|
268 | chatclient_LDADD = libTools.la libStateMachine.la libTime.la libDim.la libDim++.la libConfiguration.la
|
---|
269 |
|
---|
270 |
|
---|
271 | time_SOURCES = src/time.cc
|
---|
272 | time_LDADD = libTime.la
|
---|
273 |
|
---|
274 | #astro_SOURCES = src/astro.cc
|
---|
275 | #astro_LDADD = libAstro.la libTime.la
|
---|
276 |
|
---|
277 | test_SOURCES = src/test.cc
|
---|
278 | test_LDADD = libTools.la libStateMachine.la libTime.la libDim.la libDim++.la libConfiguration.la
|
---|
279 |
|
---|
280 | datalogger_SOURCES = src/datalogger.cc src/LocalControl.h
|
---|
281 | if HAS_FITS
|
---|
282 | datalogger_SOURCES += src/Fits.cc
|
---|
283 | endif
|
---|
284 | datalogger_LDADD = libDim.la libDim++.la libDimExtension.la \
|
---|
285 | libTime.la libTools.la libStateMachine.la \
|
---|
286 | libConfiguration.la
|
---|
287 |
|
---|
288 | scheduler_SOURCES = src/scheduler.cc src/LocalControl.h
|
---|
289 | scheduler_LDADD = libStateMachine.la libTools.la libTime.la \
|
---|
290 | libDim.la libDim++.la libDimExtension.la libConfiguration.la
|
---|
291 |
|
---|
292 | fitsloader_SOURCES = src/fitsloader.cc src/LocalControl.h
|
---|
293 | fitsloader_LDADD = libStateMachine.la libTools.la libTime.la libDim.la libDim++.la libConfiguration.la
|
---|
294 |
|
---|
295 | fitsdump_SOURCES = src/fitsdump.cc
|
---|
296 | fitsdump_LDADD = libConfiguration.la
|
---|
297 |
|
---|
298 | readfits_SOURCES = src/readfits.cc src/ReadFits.h
|
---|
299 | readfits_LDADD = libStateMachine.la libTools.la libTime.la libDim.la libDim++.la libConfiguration.la
|
---|
300 |
|
---|
301 | triggerschedule_SOURCES = src/triggerschedule.cc
|
---|
302 | triggerschedule_LDADD = libDim.la libDim++.la libDimExtension.la libConfiguration.la
|
---|
303 |
|
---|
304 | #fitsgrep_SOURCES = src/fitsgrep.cc
|
---|
305 | #fitsgrep_LDADD = libConfiguration.la
|
---|
306 |
|
---|
307 | # -----
|
---|
308 |
|
---|
309 | if HAS_GUI
|
---|
310 | DIALOGS = \
|
---|
311 | gui/design.ui
|
---|
312 |
|
---|
313 | RESOURCES = \
|
---|
314 | gui/design.qrc
|
---|
315 |
|
---|
316 | QT_SOURCES = \
|
---|
317 | gui/DockWindow.cc \
|
---|
318 | gui/MainWindow.cc
|
---|
319 | endif
|
---|
320 |
|
---|
321 | BUILT_SOURCES = $(DIALOGS:.ui=.h) $(RESOURCES:.qrc=.cc) $(QT_SOURCES:.cc=.moc.cc)
|
---|
322 |
|
---|
323 | CLEANFILES += $(BUILT_SOURCES)
|
---|
324 |
|
---|
325 | EXTRA_DIST += $(DIALOGS) $(RESOURCES)
|
---|
326 |
|
---|
327 | fact_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 |
|
---|
332 | fact_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 |
|
---|
339 | SUFFIXES = .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 |
|
---|
353 | MAN_TARGETS = $(dist_man1_MANS)
|
---|
354 |
|
---|
355 | if HAS_GROFF
|
---|
356 |
|
---|
357 | MAN_TARGETS += $(dist_man1_MANS:.man=.html)
|
---|
358 | EXTRA_DIST += $(dist_man1_MANS:.man=.html)
|
---|
359 | CLEANFILES += $(dist_man1_MANS:.man=.html)
|
---|
360 |
|
---|
361 | if HAS_PS2PDF
|
---|
362 |
|
---|
363 | MAN_TARGETS += $(dist_man1_MANS:.man=.pdf)
|
---|
364 | EXTRA_DIST += $(dist_man1_MANS:.man=.pdf)
|
---|
365 | CLEANFILES += $(dist_man1_MANS:.man=.pdf)
|
---|
366 | endif
|
---|
367 |
|
---|
368 | endif
|
---|
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 |
|
---|
380 | man: $(MAN_TARGETS) doxygen-doc
|
---|
381 |
|
---|
382 | diff:
|
---|
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
|
---|