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