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

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