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

Last change on this file since 10362 was 10362, checked in by tbretz, 14 years ago
Replaced dim_v19r15 by just dim whihc is now a symbolic link to the current version.
File size: 6.6 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 = \
11 -O3 -Wall -Winit-self -Wpointer-arith -Wcast-align -Wextra -Wformat=2 \
12 -Idim/dim $(DIM_FLAGS) $(BOOST_FLAGS)
13
14AM_CXXFLAGS = $(AM_CPPFLAGS) -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
25bin_PROGRAMS = \
26 dns did \
27 log logtime argv time \
28 test3 dclient5 dserver2 dataLogger
29# sched astro test ftm ftmctrl
30
31lib_LTLIBRARIES = libDim.la libDim++.la libTime.la libTools.la \
32 libConfiguration.la libStateMachine.la
33# libAstro.la
34
35dist_man1_MANS = test3.man
36
37#-------------------------------------------------------------------------
38
39dist_noinst_SCRIPTS = autogen.sh
40
41EXTRA_DIST = \
42 Doxyfile \
43 dim/DIM_Performance.pdf \
44 dim/LICENSE.GPL \
45 dim/README.txt \
46 dim/README_v9.txt \
47 dim/README_v10.txt \
48 dim/README_v11.txt \
49 dim/README_v12.txt \
50 dim/README_v13.txt \
51 dim/README_v14.txt \
52 dim/README_v17.txt \
53 dim/README_v16.txt \
54 dim/README_v17.txt \
55 dim/README_v18.txt \
56 dim/README_v19.txt
57
58EXTRA_DIST += $(dist_man1_MANS:.man=.html) $(dist_man1_MANS:.man=.pdf)
59CLEANFILES = $(dist_man1_MANS:.man=.pdf) $(dist_man1_MANS:.man=.html)
60
61dns_LDADD = libDim.la
62dns_SOURCES = dim/src/dns.c
63#dns_CPPFLAGS = $(AM_CPPFLAGS) $(DIM_FLAGS)
64
65did_LDADD = libDim.la
66did_CPPFLAGS = $(AM_CPPFLAGS) -Idim/src/did
67did_SOURCES = \
68 dim/src/did/did.c dim/src/did/did.h \
69 dim/src/did/dui_util.c dim/src/did/dui_util.h \
70 dim/src/did/dui_colors.h
71
72
73#libDim_la_CPPFLAGS = $(AM_CPPFLAGS) $(DIM_FLAGS)
74libDim_ladir =
75libDim_la_HEADERS = \
76 dim/dim/dic.h \
77 dim/dim/dim_common.h \
78 dim/dim/dim.h \
79 dim/dim/dim_tcpip.h \
80 dim/dim/dis.h
81
82libDim_la_SOURCES = \
83 dim/src/dic.c \
84 dim/src/dis.c \
85 dim/src/dna.c \
86 dim/src/sll.c \
87 dim/src/dll.c \
88 dim/src/hash.c \
89 dim/src/swap.c \
90 dim/src/copy_swap.c \
91 dim/src/open_dns.c \
92 dim/src/conn_handler.c \
93 dim/src/tcpip.c \
94 dim/src/dtq.c \
95 dim/src/dim_thr.c \
96 dim/src/utilities.c
97
98#libDimCpp_la_CXXFLAGS = $(AM_CXXFLAGS) $(DIM_FLAGS)
99libDim___ladir =
100libDim___la_HEADERS = \
101 dim/dim/dic.hxx \
102 dim/dim/dis.hxx \
103 dim/dim/dim_core.hxx \
104 dim/dim/dim.hxx \
105 dim/dim/dim_tcpip.h \
106 dim/dim/dllist.hxx \
107 dim/dim/sllist.hxx \
108 dim/dim/tokenstring.hxx
109
110libDim___la_SOURCES = \
111 dim/src/diccpp.cxx \
112 dim/src/dimcpp.cxx \
113 dim/src/tokenstring.cxx \
114 dim/src/discpp.cxx
115
116# Divide into Readline / StateMachine / StateMachineDim / Tools?
117libStateMachine_la_SOURCES = \
118 src/WindowLog.h src/WindowLog.cc \
119 src/Readline.h src/Readline.cc \
120 src/ReadlineColor.h src/ReadlineColor.cc \
121 src/ReadlineWindow.h src/ReadlineWindow.cc \
122 src/Console.h src/Console.cc \
123 src/Shell.h src/Shell.cc \
124 \
125 src/EventImp.h src/EventImp.cc \
126 src/Event.h src/Event.cc \
127 src/Description.h src/Description.cc \
128 src/MessageImp.h src/MessageImp.cc \
129 src/Converter.h src/Converter.cc \
130 src/StateMachineImp.h src/StateMachineImp.cc \
131 src/StateMachine.h src/StateMachine.cc \
132 \
133 src/EventDim.h \
134 src/MessageDim.h src/MessageDim.cc \
135 src/StateMachineDim.h src/StateMachineDim.cc \
136 src/ServiceList.h src/ServiceList.cc \
137 src/DimErrorRedirecter.h \
138 src/DimErrorRedirecter.cc \
139 src/DimDescriptionService.h \
140 src/DimDescriptionService.cc \
141 \
142 src/Connection.h src/Connection.cc
143
144
145libConfiguration_la_SOURCES = src/Configuration.h src/Configuration.cc
146
147libTime_la_SOURCES = src/Time.h src/Time.cc
148#libAstro_la_SOURCES = src/Astro.h src/Astro.cc
149libTools_la_SOURCES = src/tools.h src/tools.cc
150
151
152dserver2_SOURCES = src/dserver2.cc
153dserver2_LDADD = libTime.la libTools.la libStateMachine.la libDim.la libDim++.la
154
155#ftm_SOURCES = src/ftm.cc
156#ftm_LDADD = libTime.la libTools.la libStateMachine.la libDim.la libDim++.la
157
158
159log_SOURCES = src/log.cc
160log_LDADD = libTime.la libTools.la libDim.la libDim++.la libStateMachine.la
161
162
163logtime_LDADD = libStateMachine.la libTools.la libTime.la libDim.la libDim++.la
164logtime_SOURCES = src/logtime.cc
165
166
167dclient5_SOURCES = src/dclient5.cc src/LocalControl.cc src/LocalControl.h
168dclient5_LDADD = libDim.la libDim++.la libTools.la libTime.la libStateMachine.la \
169 libConfiguration.la
170
171#ftmctrl_SOURCES = src/ftmctrl.cc src/LocalControl.cc src/LocalControl.h
172#ftmctrl_LDADD = libDim.la libDim++.la libTools.la libTime.la libStateMachine.la \
173# libConfiguration.la
174
175#sched_SOURCES = src/sched.cc src/LocalControl.cc src/LocalControl.h
176#sched_LDADD = libDim.la libDim++.la libTools.la libTime.la libStateMachine.la \
177# libConfiguration.la
178
179
180argv_SOURCES = src/argv.cc
181argv_LDADD = libConfiguration.la
182
183
184test3_SOURCES = src/test3.cc src/RemoteControl.cc src/RemoteControl.h
185test3_LDADD = libStateMachine.la libTools.la libTime.la libDim.la libDim++.la libConfiguration.la
186
187
188time_SOURCES = src/time.cc
189time_LDADD = libTime.la
190
191#astro_SOURCES = src/astro.cc
192#astro_LDADD = libAstro.la libTime.la
193
194#test_SOURCES = src/test.cc
195#test_LDADD = libStateMachine.la libTools.la libTime.la libDim.la libDim++.la libConfiguration.la
196
197dataLogger_SOURCES = src/dataLogger.cc src/LocalControl.cc src/LocalControl.h
198dataLogger_LDADD = libDim.la libDim++.la libTools.la libTime.la libStateMachine.la \
199 libConfiguration.la
200
201#-------------------------------------------------------------------------
202
203MAN_TARGETS =
204
205if HAS_GROFF
206
207.man.html: $<
208 $(AM_V_GEN)groff -mandoc `man -w ./$<` -T html > $@
209
210MAN_TARGETS += $(dist_man1_MANS:.man=.html)
211
212
213if HAS_PS2PDF
214.man.pdf: $<
215 $(AM_V_GEN)groff -mandoc `man -w ./$<` | ps2pdf - $@
216
217MAN_TARGETS += $(dist_man1_MANS:.man=.pdf)
218endif
219
220endif
221
222if HAS_HELP2MAN
223$(dist_man1_MANS): $(dist_man1_MANS:.man=)
224 @mkdir -p man
225 $(AM_V_GEN)help2man -N -o $@ -m $(@:.man=) $(@:.man=)
226
227MAN_TARGETS += $(dist_man1_MANS)
228endif
229
230man: $(MAN_TARGETS) doxygen-doc
231
232
233diff:
234 @svn diff | $(COLORDIFF)
235
236
237# Overwrite rules for silent or other verbosity levels
238#AM_V_MAN = $(AM_MAN_$(V))
239#AM_MAN_ = $(AM_V_GEN)
240#AM_MAN_0 = @echo " MAN "$@;
241
242#$(MyAnalysisDS): $(MyAnalysisH) $(MyAnalysisL)
243# $(ROOTCINT) -f $@ -c -I$(top_builddir)/config $(INCLUDES) $^
244# rootcint_files=`echo $@ | sed -ne 's/\(.*\)\..*/\1.cxx \1.h/p'` && \
245# $(top_srcdir)/config/runsed $(top_srcdir)/config/rootcint.sed $$rootcint_files && \
246# for i in $$rootcint_files; do \
247# if test ! `diff $$i $(srcdir)/$$i >/dev/null 2>&1`; then \
248# cp $$i $(srcdir)/; \
249# fi; \
250# done
251
Note: See TracBrowser for help on using the repository browser.