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

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