source: trunk/FACT++/Makefile.am@ 11366

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