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