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

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