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

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