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

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