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 | dimctrl dclient5 dserver2 \
|
---|
34 | dataLogger scheduler \
|
---|
35 | triggerschedule \
|
---|
36 | ftmctrl ftm \
|
---|
37 | fadctrl fad \
|
---|
38 | fitsdump
|
---|
39 |
|
---|
40 |
|
---|
41 | if HAS_LIBXP
|
---|
42 | bin_PROGRAMS+= did
|
---|
43 | endif
|
---|
44 |
|
---|
45 | # This is a trick to be able to build them but not having them in 'all'
|
---|
46 | if IS_FALSE
|
---|
47 | bin_PROGRAMS+= \
|
---|
48 | test \
|
---|
49 | fadctrl \
|
---|
50 | chatclient chatserv \
|
---|
51 | fitsloader fitsgrep test \
|
---|
52 | sched astro drivectrl
|
---|
53 | endif
|
---|
54 |
|
---|
55 | lib_LTLIBRARIES = \
|
---|
56 | libDim.la libDim++.la libDimExtension.la libTime.la libTools.la \
|
---|
57 | libConfiguration.la libStateMachine.la
|
---|
58 | # libAstro.la
|
---|
59 |
|
---|
60 | if HAS_HELP2MAN
|
---|
61 | dist_man1_MANS = \
|
---|
62 | dimctrl.man ftmctrl.man dataLogger.man triggerschedule.man fitsdump.man
|
---|
63 | endif
|
---|
64 |
|
---|
65 | #-------------------------------------------------------------------------
|
---|
66 |
|
---|
67 | CLEANFILES =
|
---|
68 |
|
---|
69 | dist_noinst_SCRIPTS = autogen.sh
|
---|
70 |
|
---|
71 | EXTRA_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 |
|
---|
88 | dns_LDADD = libDim.la libDimExtension.la
|
---|
89 | dns_SOURCES = src/dns.c
|
---|
90 | #dns_CPPFLAGS = $(AM_CPPFLAGS) $(DIM_FLAGS)
|
---|
91 |
|
---|
92 | did_LDADD = libDim.la
|
---|
93 | did_CPPFLAGS = $(AM_CPPFLAGS) -Idim/src/did
|
---|
94 | did_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)
|
---|
101 | libDim_ladir =
|
---|
102 | libDim_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 |
|
---|
109 | libDim_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 |
|
---|
125 | libDimExtension_la_SOURCES = src/DimSetup.cc src/DimSetup.h
|
---|
126 |
|
---|
127 | #libDimCpp_la_CXXFLAGS = $(AM_CXXFLAGS) $(DIM_FLAGS)
|
---|
128 | libDim___ladir =
|
---|
129 | libDim___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
|
---|
139 | libDim___la_SOURCES = \
|
---|
140 | dim/src/diccpp.cxx \
|
---|
141 | dim/src/dimcpp.cxx \
|
---|
142 | dim/src/tokenstring.cxx \
|
---|
143 | dim/src/discpp.cxx
|
---|
144 |
|
---|
145 | # Divide into Readline / StateMachine / StateMachineDim / Tools?
|
---|
146 | libStateMachine_la_SOURCES = \
|
---|
147 | src/WindowLog.h src/WindowLog.cc \
|
---|
148 | src/Readline.h src/Readline.cc \
|
---|
149 | src/ReadlineColor.h src/ReadlineColor.cc \
|
---|
150 | src/ReadlineWindow.h src/ReadlineWindow.cc \
|
---|
151 | src/Console.h src/Console.cc \
|
---|
152 | src/Shell.h src/Shell.cc \
|
---|
153 | \
|
---|
154 | src/EventImp.h src/EventImp.cc \
|
---|
155 | src/Event.h src/Event.cc \
|
---|
156 | src/State.h src/State.cc \
|
---|
157 | src/Description.h src/Description.cc \
|
---|
158 | src/MessageImp.h src/MessageImp.cc \
|
---|
159 | src/Converter.h src/Converter.cc \
|
---|
160 | src/StateMachineImp.h src/StateMachineImp.cc \
|
---|
161 | src/StateMachine.h src/StateMachine.cc \
|
---|
162 | \
|
---|
163 | src/EventDim.h \
|
---|
164 | src/MessageDim.h src/MessageDim.cc \
|
---|
165 | src/StateMachineDim.h src/StateMachineDim.cc \
|
---|
166 | src/DimServerList.h src/DimServerList.cc \
|
---|
167 | src/DimServiceInfoList.h src/DimServiceInfoList.cc \
|
---|
168 | src/DimNetworkList.h src/DimNetwork.cc \
|
---|
169 | src/ServiceList.h src/ServiceList.cc \
|
---|
170 | src/DimErrorRedirecter.h \
|
---|
171 | src/DimErrorRedirecter.cc \
|
---|
172 | src/DimDescriptionService.h \
|
---|
173 | src/DimDescriptionService.cc \
|
---|
174 | \
|
---|
175 | src/Connection.h src/Connection.cc \
|
---|
176 | \
|
---|
177 | FACT.h ByteOrder.h
|
---|
178 |
|
---|
179 |
|
---|
180 | libConfiguration_la_SOURCES = \
|
---|
181 | src/Configuration.h src/Configuration.cc \
|
---|
182 | src/FACT.h src/FACT.cc
|
---|
183 |
|
---|
184 | libTime_la_SOURCES = src/Time.h src/Time.cc
|
---|
185 | #libAstro_la_SOURCES = src/Astro.h src/Astro.cc
|
---|
186 | libTools_la_SOURCES = src/tools.h src/tools.cc
|
---|
187 |
|
---|
188 |
|
---|
189 | dserver2_SOURCES = src/dserver2.cc
|
---|
190 | dserver2_LDADD = libTime.la libTools.la libStateMachine.la libDim.la libDim++.la
|
---|
191 |
|
---|
192 | ftm_SOURCES = src/ftm.cc src/HeadersFTM.cc
|
---|
193 | ftm_LDADD = libTime.la libTools.la libStateMachine.la libDim.la libDim++.la
|
---|
194 |
|
---|
195 | fad_SOURCES = src/fad.cc src/HeadersFAD.cc
|
---|
196 | fad_LDADD = libTime.la libTools.la libStateMachine.la libDim.la libDim++.la
|
---|
197 |
|
---|
198 |
|
---|
199 | log_SOURCES = src/log.cc
|
---|
200 | log_LDADD = libTime.la libDim.la libDim++.la libTools.la libStateMachine.la
|
---|
201 |
|
---|
202 |
|
---|
203 | logtime_SOURCES = src/logtime.cc
|
---|
204 | logtime_LDADD = libTools.la libStateMachine.la libTime.la libDim.la libDim++.la
|
---|
205 |
|
---|
206 |
|
---|
207 | chatserv_SOURCES = src/chatserv.cc src/LocalControl.h
|
---|
208 | chatserv_LDADD = libTools.la libStateMachine.la libConfiguration.la libTime.la \
|
---|
209 | libDim.la libDim++.la libDimExtension.la
|
---|
210 |
|
---|
211 |
|
---|
212 | dclient5_SOURCES = src/dclient5.cc src/LocalControl.h
|
---|
213 | dclient5_LDADD = libDim.la libDim++.la libTime.la libTools.la libStateMachine.la \
|
---|
214 | libConfiguration.la
|
---|
215 |
|
---|
216 | ftmctrl_SOURCES = src/ftmctrl.cc src/LocalControl.h src/HeadersFTM.cc
|
---|
217 | ftmctrl_LDADD = libDim.la libDim++.la libDimExtension.la \
|
---|
218 | libTime.la libTools.la libStateMachine.la \
|
---|
219 | libConfiguration.la
|
---|
220 |
|
---|
221 | drivectrl_SOURCES = src/drivectrl.cc src/LocalControl.h src/HeadersFTM.cc
|
---|
222 | drivectrl_LDADD = libDim.la libDim++.la libTime.la libTools.la libStateMachine.la \
|
---|
223 | libConfiguration.la
|
---|
224 |
|
---|
225 | fadctrl_SOURCES = src/fadctrl.cc src/LocalControl.h src/HeadersFAD.cc \
|
---|
226 | src/EventBuilder.c src/EventBuilder.h
|
---|
227 | fadctrl_LDADD = libDim.la libDim++.la libDimExtension.la \
|
---|
228 | libTime.la libTools.la libStateMachine.la \
|
---|
229 | libConfiguration.la
|
---|
230 |
|
---|
231 |
|
---|
232 | argv_SOURCES = src/argv.cc
|
---|
233 | argv_LDADD = libConfiguration.la
|
---|
234 |
|
---|
235 |
|
---|
236 | dimctrl_SOURCES = src/dimctrl.cc src/RemoteControl.cc src/RemoteControl.h
|
---|
237 | dimctrl_LDADD = libTools.la libStateMachine.la libTime.la \
|
---|
238 | libDim.la libDim++.la libDimExtension.la libConfiguration.la
|
---|
239 |
|
---|
240 |
|
---|
241 | chatclient_SOURCES = src/chatclient.cc src/ChatClient.h
|
---|
242 | chatclient_LDADD = libTools.la libStateMachine.la libTime.la libDim.la libDim++.la libConfiguration.la
|
---|
243 |
|
---|
244 |
|
---|
245 | time_SOURCES = src/time.cc
|
---|
246 | time_LDADD = libTime.la
|
---|
247 |
|
---|
248 | #astro_SOURCES = src/astro.cc
|
---|
249 | #astro_LDADD = libAstro.la libTime.la
|
---|
250 |
|
---|
251 | test_SOURCES = src/test.cc
|
---|
252 | test_LDADD = libTools.la libStateMachine.la libTime.la libDim.la libDim++.la libConfiguration.la
|
---|
253 |
|
---|
254 | dataLogger_SOURCES = src/dataLogger.cc src/LocalControl.h
|
---|
255 | if HAS_FITS
|
---|
256 | dataLogger_SOURCES += src/Fits.cc
|
---|
257 | endif
|
---|
258 | dataLogger_LDADD = libDim.la libDim++.la libDimExtension.la \
|
---|
259 | libTime.la libTools.la libStateMachine.la \
|
---|
260 | libConfiguration.la
|
---|
261 |
|
---|
262 | scheduler_SOURCES = src/scheduler.cc src/LocalControl.h
|
---|
263 | scheduler_LDADD = libStateMachine.la libTools.la libTime.la \
|
---|
264 | libDim.la libDim++.la libDimExtension.la libConfiguration.la
|
---|
265 |
|
---|
266 | fitsloader_SOURCES = src/fitsloader.cc src/LocalControl.h
|
---|
267 | fitsloader_LDADD = libStateMachine.la libTools.la libTime.la libDim.la libDim++.la libConfiguration.la
|
---|
268 |
|
---|
269 | fitsdump_SOURCES = src/fitsdump.cc
|
---|
270 | fitsdump_LDADD = libConfiguration.la
|
---|
271 |
|
---|
272 | triggerschedule_SOURCES = src/triggerschedule.cc
|
---|
273 | triggerschedule_LDADD = libDim.la libDim++.la libDimExtension.la libConfiguration.la
|
---|
274 |
|
---|
275 | #fitsgrep_SOURCES = src/fitsgrep.cc
|
---|
276 | #fitsgrep_LDADD = libConfiguration.la
|
---|
277 |
|
---|
278 | # -----
|
---|
279 |
|
---|
280 | if HAS_GUI
|
---|
281 | DIALOGS = \
|
---|
282 | gui/design.ui
|
---|
283 |
|
---|
284 | RESOURCES = \
|
---|
285 | gui/design.qrc
|
---|
286 |
|
---|
287 | QT_SOURCES = \
|
---|
288 | gui/DockWindow.cc \
|
---|
289 | gui/MainWindow.cc
|
---|
290 | endif
|
---|
291 |
|
---|
292 | BUILT_SOURCES = $(DIALOGS:.ui=.h) $(RESOURCES:.qrc=.cc) $(QT_SOURCES:.cc=.moc.cc)
|
---|
293 |
|
---|
294 | CLEANFILES += $(BUILT_SOURCES)
|
---|
295 |
|
---|
296 | EXTRA_DIST += $(DIALOGS) $(RESOURCES)
|
---|
297 |
|
---|
298 | fact_LDADD = $(ROOTLDFLAGS) $(ROOTGLIBS) $(QT4_LIB) $(QT4_LDFLAGS) -L. \
|
---|
299 | libDim.la libDim++.la libDimExtension.la \
|
---|
300 | libTools.la libTime.la libTools.la libStateMachine.la \
|
---|
301 | libConfiguration.la
|
---|
302 |
|
---|
303 | fact_SOURCES = $(BUILT_SOURCES) $(QT_SOURCES) \
|
---|
304 | gui/CheckBoxDelegate.cc gui/HtmlDelegate.cc \
|
---|
305 | gui/fact.cc gui/FactGui.cc src/HeadersFTM.cc
|
---|
306 |
|
---|
307 |
|
---|
308 | #-------------------------------------------------------------------------
|
---|
309 |
|
---|
310 | SUFFIXES = .moc.cc
|
---|
311 |
|
---|
312 | .ui.h: $<
|
---|
313 | $(AM_V_GEN)$(UIC4) $< -o $@
|
---|
314 |
|
---|
315 | .h.moc.cc: $<
|
---|
316 | $(AM_V_GEN)$(MOC4) $(EXTRA_CPPFLAGS) $< -o $@
|
---|
317 |
|
---|
318 | .qrc.cc: $<
|
---|
319 | $(AM_V_GEN)$(RCC4) -name `echo "$<" | sed 's|^.*/\(.*\)\.qrc$$|\1|'` $< -o $@
|
---|
320 |
|
---|
321 |
|
---|
322 | #-------------------------------------------------------------------------
|
---|
323 |
|
---|
324 | MAN_TARGETS = $(dist_man1_MANS)
|
---|
325 |
|
---|
326 | if HAS_GROFF
|
---|
327 |
|
---|
328 | MAN_TARGETS += $(dist_man1_MANS:.man=.html)
|
---|
329 | EXTRA_DIST += $(dist_man1_MANS:.man=.html)
|
---|
330 | CLEANFILES += $(dist_man1_MANS:.man=.html)
|
---|
331 |
|
---|
332 | if HAS_PS2PDF
|
---|
333 |
|
---|
334 | MAN_TARGETS += $(dist_man1_MANS:.man=.pdf)
|
---|
335 | EXTRA_DIST += $(dist_man1_MANS:.man=.pdf)
|
---|
336 | CLEANFILES += $(dist_man1_MANS:.man=.pdf)
|
---|
337 | endif
|
---|
338 |
|
---|
339 | endif
|
---|
340 |
|
---|
341 | $(dist_man1_MANS): $(dist_man1_MANS:.man=)
|
---|
342 | @mkdir -p man
|
---|
343 | $(AM_V_GEN)help2man -N -o $@ -m $(@:.man=) ./$(@:.man=)
|
---|
344 |
|
---|
345 | .man.html: $<
|
---|
346 | $(AM_V_GEN)groff -mandoc `man -w -l $<` -T html > $@
|
---|
347 |
|
---|
348 | .man.pdf: $<
|
---|
349 | $(AM_V_GEN)groff -mandoc `man -w -l $<` | ps2pdf - $@
|
---|
350 |
|
---|
351 | man: $(MAN_TARGETS) doxygen-doc
|
---|
352 |
|
---|
353 | diff:
|
---|
354 | @svn diff | $(COLORDIFF)
|
---|
355 |
|
---|
356 | #-------------------------------------------------------------------------
|
---|
357 |
|
---|
358 | # Overwrite rules for silent or other verbosity levels
|
---|
359 | #AM_V_MAN = $(AM_MAN_$(V))
|
---|
360 | #AM_MAN_ = $(AM_V_GEN)
|
---|
361 | #AM_MAN_0 = @echo " MAN "$@;
|
---|
362 |
|
---|
363 | #$(MyAnalysisDS): $(MyAnalysisH) $(MyAnalysisL)
|
---|
364 | # $(ROOTCINT) -f $@ -c -I$(top_builddir)/config $(INCLUDES) $^
|
---|
365 | # rootcint_files=`echo $@ | sed -ne 's/\(.*\)\..*/\1.cxx \1.h/p'` && \
|
---|
366 | # $(top_srcdir)/config/runsed $(top_srcdir)/config/rootcint.sed $$rootcint_files && \
|
---|
367 | # for i in $$rootcint_files; do \
|
---|
368 | # if test ! `diff $$i $(srcdir)/$$i >/dev/null 2>&1`; then \
|
---|
369 | # cp $$i $(srcdir)/; \
|
---|
370 | # fi; \
|
---|
371 | # done
|
---|
372 |
|
---|
373 | #CLEANFILES = *~ *.rej *.orig
|
---|
374 | #MAINTAINERCLEANFILES = aclocal.m4 config.h.in configure Makefile.in \
|
---|
375 | # stamp-h.in stamp-h[0-9].in
|
---|
376 | #DISTCLEANFILES = config.cache config.log
|
---|