1 | # $Id: makefile.am 2991 2013-10-22 16:25:15Z bradbell $ |
---|
2 | # ----------------------------------------------------------------------------- |
---|
3 | # CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-13 Bradley M. Bell |
---|
4 | # |
---|
5 | # CppAD is distributed under multiple licenses. This distribution is under |
---|
6 | # the terms of the |
---|
7 | # Eclipse Public License Version 1.0. |
---|
8 | # |
---|
9 | # A copy of this license is included in the COPYING file of this distribution. |
---|
10 | # Please visit http://www.coin-or.org/CppAD/ for information on other licenses. |
---|
11 | # ----------------------------------------------------------------------------- |
---|
12 | # |
---|
13 | BUILT_SOURCES = $(top_srcdir)/cppad/configure.hpp |
---|
14 | $(top_srcdir)/cppad/configure.hpp: cppad/configure.hpp |
---|
15 | cp cppad/configure.hpp $(top_srcdir)/cppad/configure.hpp |
---|
16 | # |
---|
17 | if CppAD_POSTFIX |
---|
18 | postfix_dir = $(POSTFIX_DIR) |
---|
19 | else |
---|
20 | postfix_dir = . |
---|
21 | endif |
---|
22 | # |
---|
23 | # Did user specify a value for ADOLC_DIR in configure command line |
---|
24 | if CppAD_ADOLC |
---|
25 | SPEED_ADOLC_TESTS = speed/adolc |
---|
26 | else |
---|
27 | SPEED_ADOLC_TESTS = |
---|
28 | endif |
---|
29 | # |
---|
30 | # Did user specify a value for FADBAD_DIR in configure command line |
---|
31 | if CppAD_FADBAD |
---|
32 | SPEED_FADBAD_TESTS = speed/fadbad |
---|
33 | else |
---|
34 | SPEED_FADBAD_TESTS = |
---|
35 | endif |
---|
36 | # |
---|
37 | # Did user specify a value for SACADO_DIR in configure command line |
---|
38 | if CppAD_SACADO |
---|
39 | SPEED_SACADO_TESTS = speed/sacado |
---|
40 | else |
---|
41 | SPEED_SACADO_TESTS = |
---|
42 | endif |
---|
43 | # |
---|
44 | # Did user specify a value for IPOPT_DIR in configure command line |
---|
45 | if CppAD_IPOPT |
---|
46 | IPOPT_TESTS = \ |
---|
47 | example/ipopt_solve \ |
---|
48 | cppad_ipopt/example \ |
---|
49 | cppad_ipopt/speed \ |
---|
50 | cppad_ipopt/test |
---|
51 | # |
---|
52 | IPOPT_DIRS = \ |
---|
53 | cppad_ipopt/src \ |
---|
54 | $(IPOPT_TESTS) |
---|
55 | # |
---|
56 | IPOPT_HEADER = \ |
---|
57 | cppad_ipopt/src/cppad_ipopt_nlp.hpp |
---|
58 | else |
---|
59 | IPOPT_TESTS = |
---|
60 | IPOPT_DIRS = |
---|
61 | IPOPT_HEADER = |
---|
62 | endif |
---|
63 | # |
---|
64 | # Is the library archiving program present |
---|
65 | if CppAD_HAVE_AR |
---|
66 | SPEED_TESTS = \ |
---|
67 | $(SPEED_ADOLC_TESTS) \ |
---|
68 | speed/cppad \ |
---|
69 | speed/double \ |
---|
70 | speed/example \ |
---|
71 | $(SPEED_FADBAD_TESTS) \ |
---|
72 | speed/profile \ |
---|
73 | $(SPEED_SACADO_TESTS) |
---|
74 | # |
---|
75 | SPEED_DIRS = \ |
---|
76 | speed/src \ |
---|
77 | $(SPEED_TESTS) |
---|
78 | else |
---|
79 | SPEED_DIRS = |
---|
80 | endif |
---|
81 | # --------------------------------------------------------------------------- |
---|
82 | myincludedir = $(includedir)/$(postfix_dir) |
---|
83 | # |
---|
84 | myinclude_HEADERS = \ |
---|
85 | $(IPOPT_HEADER) |
---|
86 | # |
---|
87 | nobase_myinclude_HEADERS = \ |
---|
88 | cppad/CheckNumericType.h \ |
---|
89 | cppad/CheckSimpleVector.h \ |
---|
90 | cppad/CppAD.h \ |
---|
91 | cppad/CppAD_vector.h \ |
---|
92 | cppad/ErrorHandler.h \ |
---|
93 | cppad/LuFactor.h \ |
---|
94 | cppad/LuInvert.h \ |
---|
95 | cppad/LuSolve.h \ |
---|
96 | cppad/NearEqual.h \ |
---|
97 | cppad/OdeErrControl.h \ |
---|
98 | cppad/OdeGearControl.h \ |
---|
99 | cppad/OdeGear.h \ |
---|
100 | cppad/Poly.h \ |
---|
101 | cppad/PowInt.h \ |
---|
102 | cppad/RombergMul.h \ |
---|
103 | cppad/RombergOne.h \ |
---|
104 | cppad/Rosen34.h \ |
---|
105 | cppad/Runge45.h \ |
---|
106 | cppad/SpeedTest.h \ |
---|
107 | cppad/TrackNewDel.h \ |
---|
108 | \ |
---|
109 | cppad/base_require.hpp \ |
---|
110 | cppad/check_numeric_type.hpp \ |
---|
111 | cppad/check_simple_vector.hpp \ |
---|
112 | cppad/configure.hpp \ |
---|
113 | cppad/cppad.hpp \ |
---|
114 | cppad/elapsed_seconds.hpp \ |
---|
115 | cppad/example/base_adolc.hpp \ |
---|
116 | cppad/example/cppad_eigen.hpp \ |
---|
117 | cppad/example/eigen_plugin.hpp \ |
---|
118 | cppad/example/matrix_mul.hpp \ |
---|
119 | cppad/error_handler.hpp \ |
---|
120 | cppad/index_sort.hpp \ |
---|
121 | cppad/ipopt/solve.hpp \ |
---|
122 | cppad/ipopt/solve_callback.hpp \ |
---|
123 | cppad/ipopt/solve_result.hpp \ |
---|
124 | cppad/local/abort_recording.hpp \ |
---|
125 | cppad/local/abs.hpp \ |
---|
126 | cppad/local/abs_op.hpp \ |
---|
127 | cppad/local/acos_op.hpp \ |
---|
128 | cppad/local/ad_assign.hpp \ |
---|
129 | cppad/local/ad_binary.hpp \ |
---|
130 | cppad/local/ad_ctor.hpp \ |
---|
131 | cppad/local/add_eq.hpp \ |
---|
132 | cppad/local/add.hpp \ |
---|
133 | cppad/local/add_op.hpp \ |
---|
134 | cppad/local/ad_io.hpp \ |
---|
135 | cppad/local/ad_fun.hpp \ |
---|
136 | cppad/local/ad.hpp \ |
---|
137 | cppad/local/ad_tape.hpp \ |
---|
138 | cppad/local/ad_valued.hpp \ |
---|
139 | cppad/local/arithmetic.hpp \ |
---|
140 | cppad/local/asin_op.hpp \ |
---|
141 | cppad/local/atan2.hpp \ |
---|
142 | cppad/local/atan_op.hpp \ |
---|
143 | cppad/local/atomic_base.hpp \ |
---|
144 | cppad/local/base_complex.hpp \ |
---|
145 | cppad/local/base_cond_exp.hpp \ |
---|
146 | cppad/local/base_double.hpp \ |
---|
147 | cppad/local/base_float.hpp \ |
---|
148 | cppad/local/base_std_math.hpp \ |
---|
149 | cppad/local/bender_quad.hpp \ |
---|
150 | cppad/local/bool_fun.hpp \ |
---|
151 | cppad/local/bool_valued.hpp \ |
---|
152 | cppad/local/cap_taylor.hpp \ |
---|
153 | cppad/local/checkpoint.hpp \ |
---|
154 | cppad/local/compare.hpp \ |
---|
155 | cppad/local/comp_op.hpp \ |
---|
156 | cppad/local/compute_assign.hpp \ |
---|
157 | cppad/local/cond_exp.hpp \ |
---|
158 | cppad/local/cond_op.hpp \ |
---|
159 | cppad/local/convert.hpp \ |
---|
160 | cppad/local/cosh_op.hpp \ |
---|
161 | cppad/local/cos_op.hpp \ |
---|
162 | cppad/local/cppad_assert.hpp \ |
---|
163 | cppad/local/cskip_op.hpp \ |
---|
164 | cppad/local/csum_op.hpp \ |
---|
165 | cppad/local/declare_ad.hpp \ |
---|
166 | cppad/local/define.hpp \ |
---|
167 | cppad/local/dependent.hpp \ |
---|
168 | cppad/local/discrete.hpp \ |
---|
169 | cppad/local/discrete_op.hpp \ |
---|
170 | cppad/local/div_eq.hpp \ |
---|
171 | cppad/local/div.hpp \ |
---|
172 | cppad/local/div_op.hpp \ |
---|
173 | cppad/local/drivers.hpp \ |
---|
174 | cppad/local/epsilon.hpp \ |
---|
175 | cppad/local/equal_op_seq.hpp \ |
---|
176 | cppad/local/erf.hpp \ |
---|
177 | cppad/local/exp_op.hpp \ |
---|
178 | cppad/local/for_jac_sweep.hpp \ |
---|
179 | cppad/local/for_one.hpp \ |
---|
180 | cppad/local/for_sparse_jac.hpp \ |
---|
181 | cppad/local/for_two.hpp \ |
---|
182 | cppad/local/forward0sweep.hpp \ |
---|
183 | cppad/local/forward.hpp \ |
---|
184 | cppad/local/forward_sweep.hpp \ |
---|
185 | cppad/local/fun_check.hpp \ |
---|
186 | cppad/local/fun_construct.hpp \ |
---|
187 | cppad/local/fun_eval.hpp \ |
---|
188 | cppad/local/hash_code.hpp \ |
---|
189 | cppad/local/hessian.hpp \ |
---|
190 | cppad/local/identical.hpp \ |
---|
191 | cppad/local/independent.hpp \ |
---|
192 | cppad/local/integer.hpp \ |
---|
193 | cppad/local/jacobian.hpp \ |
---|
194 | cppad/local/limits.hpp \ |
---|
195 | cppad/local/load_op.hpp \ |
---|
196 | cppad/local/log_op.hpp \ |
---|
197 | cppad/local/lu_ratio.hpp \ |
---|
198 | cppad/local/math_other.hpp \ |
---|
199 | cppad/local/mul_eq.hpp \ |
---|
200 | cppad/local/mul.hpp \ |
---|
201 | cppad/local/mul_op.hpp \ |
---|
202 | cppad/local/near_equal_ext.hpp \ |
---|
203 | cppad/local/num_skip.hpp \ |
---|
204 | cppad/local/omp_max_thread.hpp \ |
---|
205 | cppad/local/op_code.hpp \ |
---|
206 | cppad/local/op.hpp \ |
---|
207 | cppad/local/optimize.hpp \ |
---|
208 | cppad/local/opt_val_hes.hpp \ |
---|
209 | cppad/local/ordered.hpp \ |
---|
210 | cppad/local/parallel_ad.hpp \ |
---|
211 | cppad/local/parameter_op.hpp \ |
---|
212 | cppad/local/par_var.hpp \ |
---|
213 | cppad/local/player.hpp \ |
---|
214 | cppad/local/pod_vector.hpp \ |
---|
215 | cppad/local/pow.hpp \ |
---|
216 | cppad/local/pow_op.hpp \ |
---|
217 | cppad/local/print_for.hpp \ |
---|
218 | cppad/local/print_op.hpp \ |
---|
219 | cppad/local/prototype_op.hpp \ |
---|
220 | cppad/local/recorder.hpp \ |
---|
221 | cppad/local/reverse.hpp \ |
---|
222 | cppad/local/reverse_sweep.hpp \ |
---|
223 | cppad/local/rev_hes_sweep.hpp \ |
---|
224 | cppad/local/rev_jac_sweep.hpp \ |
---|
225 | cppad/local/rev_one.hpp \ |
---|
226 | cppad/local/rev_sparse_hes.hpp \ |
---|
227 | cppad/local/rev_sparse_jac.hpp \ |
---|
228 | cppad/local/rev_two.hpp \ |
---|
229 | cppad/local/sign.hpp \ |
---|
230 | cppad/local/sign_op.hpp \ |
---|
231 | cppad/local/sin_op.hpp \ |
---|
232 | cppad/local/sinh_op.hpp \ |
---|
233 | cppad/local/sparse_binary_op.hpp \ |
---|
234 | cppad/local/sparse_hessian.hpp \ |
---|
235 | cppad/local/sparse.hpp \ |
---|
236 | cppad/local/sparse_jacobian.hpp \ |
---|
237 | cppad/local/sparse_list.hpp \ |
---|
238 | cppad/local/sparse_pack.hpp \ |
---|
239 | cppad/local/sparse_pattern.hpp \ |
---|
240 | cppad/local/sparse_set.hpp \ |
---|
241 | cppad/local/sparse_unary_op.hpp \ |
---|
242 | cppad/local/sqrt_op.hpp \ |
---|
243 | cppad/local/std_math_ad.hpp \ |
---|
244 | cppad/local/std_set.hpp \ |
---|
245 | cppad/local/store_op.hpp \ |
---|
246 | cppad/local/sub_eq.hpp \ |
---|
247 | cppad/local/sub.hpp \ |
---|
248 | cppad/local/sub_op.hpp \ |
---|
249 | cppad/local/tanh_op.hpp \ |
---|
250 | cppad/local/tan_op.hpp \ |
---|
251 | cppad/local/tape_link.hpp \ |
---|
252 | cppad/local/test_vector.hpp \ |
---|
253 | cppad/local/testvector.hpp \ |
---|
254 | cppad/local/unary_minus.hpp \ |
---|
255 | cppad/local/unary_plus.hpp \ |
---|
256 | cppad/local/undef.hpp \ |
---|
257 | cppad/local/user_ad.hpp \ |
---|
258 | cppad/local/old_atomic.hpp \ |
---|
259 | cppad/local/value.hpp \ |
---|
260 | cppad/local/var2par.hpp \ |
---|
261 | cppad/local/vec_ad.hpp \ |
---|
262 | cppad/lu_factor.hpp \ |
---|
263 | cppad/lu_invert.hpp \ |
---|
264 | cppad/lu_solve.hpp \ |
---|
265 | cppad/memory_leak.hpp \ |
---|
266 | cppad/nan.hpp \ |
---|
267 | cppad/near_equal.hpp \ |
---|
268 | cppad/ode_err_control.hpp \ |
---|
269 | cppad/ode_gear_control.hpp \ |
---|
270 | cppad/ode_gear.hpp \ |
---|
271 | cppad/omp_alloc.hpp \ |
---|
272 | cppad/poly.hpp \ |
---|
273 | cppad/pow_int.hpp \ |
---|
274 | cppad/romberg_mul.hpp \ |
---|
275 | cppad/romberg_one.hpp \ |
---|
276 | cppad/rosen_34.hpp \ |
---|
277 | cppad/runge_45.hpp \ |
---|
278 | cppad/speed/det_33.hpp \ |
---|
279 | cppad/speed/det_by_lu.hpp \ |
---|
280 | cppad/speed/det_by_minor.hpp \ |
---|
281 | cppad/speed/det_grad_33.hpp \ |
---|
282 | cppad/speed/det_of_minor.hpp \ |
---|
283 | cppad/speed/mat_sum_sq.hpp \ |
---|
284 | cppad/speed/ode_evaluate.hpp \ |
---|
285 | cppad/speed/sparse_hes_fun.hpp \ |
---|
286 | cppad/speed/sparse_jac_fun.hpp \ |
---|
287 | cppad/speed_test.hpp \ |
---|
288 | cppad/speed/uniform_01.hpp \ |
---|
289 | cppad/thread_alloc.hpp \ |
---|
290 | cppad/time_test.hpp \ |
---|
291 | cppad/track_new_del.hpp \ |
---|
292 | cppad/vector.hpp |
---|
293 | # End nobase_myinclude_HEADERS (check_makefile.sh uses this comment) |
---|
294 | # --------------------------------------------------------------- |
---|
295 | # |
---|
296 | # No objects or executables are required to install CppAD. |
---|
297 | # See 'make test' below for building the tests. |
---|
298 | SUBDIRS = \ |
---|
299 | $(IPOPT_DIRS) \ |
---|
300 | $(SPEED_DIRS) \ |
---|
301 | example \ |
---|
302 | example/atomic \ |
---|
303 | compare_c \ |
---|
304 | introduction/get_started \ |
---|
305 | introduction/exp_apx \ |
---|
306 | print_for \ |
---|
307 | multi_thread \ |
---|
308 | multi_thread/test_multi \ |
---|
309 | test_more |
---|
310 | # |
---|
311 | # note that bin/gpl_license.sh is deleted by dist-hook |
---|
312 | EXTRA_DIST = \ |
---|
313 | bin \ |
---|
314 | build.sh \ |
---|
315 | doc.omh \ |
---|
316 | doc \ |
---|
317 | epl-v10.txt \ |
---|
318 | epl-v10.html \ |
---|
319 | omh \ |
---|
320 | uw_copy_040507.html \ |
---|
321 | \ |
---|
322 | compare_c/CMakeLists.txt \ |
---|
323 | cppad/CMakeLists.txt \ |
---|
324 | pkgconfig/CMakeLists.txt \ |
---|
325 | example/CMakeLists.txt \ |
---|
326 | example/atomic/CMakeLists.txt \ |
---|
327 | example/ipopt_solve/CMakeLists.txt \ |
---|
328 | test_more/CMakeLists.txt \ |
---|
329 | CMakeLists.txt \ |
---|
330 | cppad_ipopt/src/CMakeLists.txt \ |
---|
331 | cppad_ipopt/example/CMakeLists.txt \ |
---|
332 | cppad_ipopt/test/CMakeLists.txt \ |
---|
333 | cppad_ipopt/CMakeLists.txt \ |
---|
334 | cppad_ipopt/speed/CMakeLists.txt \ |
---|
335 | speed/cppad/CMakeLists.txt \ |
---|
336 | speed/adolc/CMakeLists.txt \ |
---|
337 | speed/fadbad/CMakeLists.txt \ |
---|
338 | speed/src/CMakeLists.txt \ |
---|
339 | speed/example/CMakeLists.txt \ |
---|
340 | speed/CMakeLists.txt \ |
---|
341 | speed/double/CMakeLists.txt \ |
---|
342 | speed/profile/CMakeLists.txt \ |
---|
343 | speed/sacado/CMakeLists.txt \ |
---|
344 | multi_thread/bthread/CMakeLists.txt \ |
---|
345 | multi_thread/CMakeLists.txt \ |
---|
346 | multi_thread/openmp/CMakeLists.txt \ |
---|
347 | multi_thread/pthread/CMakeLists.txt \ |
---|
348 | print_for/CMakeLists.txt |
---|
349 | |
---|
350 | test_directory_list = \ |
---|
351 | $(IPOPT_TESTS) \ |
---|
352 | $(SPEED_TESTS) \ |
---|
353 | example \ |
---|
354 | example/atomic \ |
---|
355 | compare_c \ |
---|
356 | introduction/get_started \ |
---|
357 | introduction/exp_apx \ |
---|
358 | multi_thread \ |
---|
359 | multi_thread/test_multi \ |
---|
360 | print_for \ |
---|
361 | test_more |
---|
362 | |
---|
363 | test: all |
---|
364 | rm -f test.log |
---|
365 | touch test.log |
---|
366 | echo "#! /bin/sh -e" > test.sh |
---|
367 | for dir in $(test_directory_list) ; do ( \ |
---|
368 | echo "#" >> test.sh ; \ |
---|
369 | echo "echo \"Running make test in $$dir\"" >> test.sh ; \ |
---|
370 | echo "cd $$dir " >> test.sh ; \ |
---|
371 | echo "make test" >> test.sh ; \ |
---|
372 | echo "cd $(ABS_TOP_BUILDDIR)" >> test.sh ; \ |
---|
373 | ) done |
---|
374 | echo "exit 0" >> test.sh |
---|
375 | chmod +x test.sh |
---|
376 | ./test.sh |
---|
377 | # |
---|
378 | dist-hook: |
---|
379 | rm -rf `find . -name .svn` |
---|
380 | rm $(distdir)/doc/error.wrd |
---|
381 | rm $(distdir)/bin/gpl_license.sh |
---|
382 | # |
---|
383 | if CppAD_DOCUMENTATION |
---|
384 | doc_postfix = $(DESTDIR)$(datadir)/doc/$(postfix_dir) |
---|
385 | doc_package = $(DESTDIR)$(datadir)/doc/$(postfix_dir)/$(PACKAGE)-$(VERSION) |
---|
386 | install-data-hook: |
---|
387 | if [ ! -e $(doc_postfix) ] ; then mkdir -p $(doc_postfix) ; fi |
---|
388 | if [ -e $(doc_package) ] ; then rm -rf $(doc_package) ; fi |
---|
389 | cp -a $(top_srcdir)/doc $(doc_package) |
---|
390 | chmod -R a-w $(doc_package) |
---|
391 | chmod -R u+w $(doc_package) |
---|
392 | chmod -R a+r $(doc_package) |
---|
393 | endif |
---|
394 | # |
---|
395 | pkgconfigdir = $(datadir)/pkgconfig |
---|
396 | pkgconfig_DATA = pkgconfig/cppad.pc |
---|