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

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