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

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