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

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