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

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