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

Last change on this file since 10543 was 10543, checked in by tbretz, 9 years ago
Added HeadersFTM.cc to fact.
File size: 8.7 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 scheduler
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
227scheduler_SOURCES = src/scheduler.cc src/LocalControl.cc src/LocalControl.h
228scheduler_LDADD   = libStateMachine.la libTools.la libTime.la libDim.la libDim++.la 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 libTools.la libStateMachine.la \
257        libConfiguration.la
258
259fact_SOURCES = $(BUILT_SOURCES) $(QT_SOURCES) \
260        gui/fact.cc gui/FactGui.cc src/HeadersFTM.cc
261
262
263#-------------------------------------------------------------------------
264
265SUFFIXES = .moc.cc
266
267.ui.h: $<
268        $(AM_V_GEN)$(UIC4) $< -o $@
269
270.h.moc.cc: $<
271        $(AM_V_GEN)$(MOC4) $(EXTRA_CPPFLAGS) $< -o $@
272
273.qrc.cc: $<
274        $(AM_V_GEN)$(RCC4) -name `echo "$<" | sed 's|^.*/\(.*\)\.qrc$$|\1|'` $< -o $@
275
276
277#-------------------------------------------------------------------------
278
279MAN_TARGETS =
280
281if HAS_HELP2MAN
282$(dist_man1_MANS): $(dist_man1_MANS:.man=)
283        @mkdir -p man
284        $(AM_V_GEN)help2man -N -o $@ -m $(@:.man=) $(@:.man=)
285
286dist_man1_MANS = test3.man
287MAN_TARGETS   += $(dist_man1_MANS)
288endif
289
290if HAS_GROFF
291
292.man.html: $<
293        $(AM_V_GEN)groff -mandoc `man -w -l $<` -T html > $@
294
295MAN_TARGETS += $(dist_man1_MANS:.man=.html)
296EXTRA_DIST  += $(dist_man1_MANS:.man=.html)
297CLEANFILES  += $(dist_man1_MANS:.man=.html)
298
299if HAS_PS2PDF
300.man.pdf: $<
301        $(AM_V_GEN)groff -mandoc `man -w -l $<` | ps2pdf - $@
302
303MAN_TARGETS += $(dist_man1_MANS:.man=.pdf)
304EXTRA_DIST  += $(dist_man1_MANS:.man=.pdf)
305CLEANFILES  += $(dist_man1_MANS:.man=.pdf)
306endif
307
308endif
309
310man: $(MAN_TARGETS) doxygen-doc
311
312diff:
313        @svn diff | $(COLORDIFF)
314
315#-------------------------------------------------------------------------
316
317# Overwrite rules for silent or other verbosity levels
318#AM_V_MAN = $(AM_MAN_$(V))
319#AM_MAN_ = $(AM_V_GEN)
320#AM_MAN_0 = @echo  "  MAN    "$@;
321
322#$(MyAnalysisDS): $(MyAnalysisH) $(MyAnalysisL)
323#       $(ROOTCINT) -f $@ -c -I$(top_builddir)/config $(INCLUDES) $^
324#       rootcint_files=`echo $@ | sed -ne 's/\(.*\)\..*/\1.cxx \1.h/p'` && \
325#        $(top_srcdir)/config/runsed $(top_srcdir)/config/rootcint.sed $$rootcint_files && \
326#        for i in $$rootcint_files; do \
327#          if test ! `diff $$i $(srcdir)/$$i >/dev/null 2>&1`; then \
328#            cp $$i $(srcdir)/; \
329#          fi; \
330#        done
331
332#CLEANFILES = *~ *.rej *.orig
333#MAINTAINERCLEANFILES = aclocal.m4 config.h.in configure Makefile.in \
334#        stamp-h.in stamp-h[0-9].in
335#DISTCLEANFILES = config.cache config.log
Note: See TracBrowser for help on using the repository browser.