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

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