source: trunk/example/makefile.am @ 3704

Last change on this file since 3704 was 3704, checked in by bradbell, 5 years ago

merge to branch: trunk
from repository: https://github.com/coin-or/CppAD
start hash code: 4211b637c3ed2df88a58ca06c6b215d41b2b5e61
end hash code: da455aacd01d5088b78bff735595b5f3482f342d

commit da455aacd01d5088b78bff735595b5f3482f342d
Author: Brad Bell <bradbell@…>
Date: Sat Aug 1 11:51:33 2015 -0700

Add example/sparse_sub_hes.cpp to auto-tools distribution.

  • Property svn:keywords set to Id
File size: 4.7 KB
Line 
1# $Id: makefile.am 3704 2015-08-01 18:53:05Z bradbell $
2# -----------------------------------------------------------------------------
3# CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-15 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# automake input file
13#
14# CppAD puts all it's preprocessor definitions in the cppad/configure.hpp
15DEFS          =
16# -------------------------------------------------------------------------
17if CppAD_ADOLC
18ADOLC_SRC_FILES    =  mul_level_adolc.cpp mul_level_adolc_ode.cpp
19ADOLC_EXTRA_FILES  =
20ADOLC_LIB          = -ladolc -lColPack -L$(ADOLC_DIR)/lib -L$(ADOLC_DIR)/lib64
21ADOLC_FLAGS        = -DCPPAD_ADOLC_EXAMPLES -I$(ADOLC_DIR)/include
22else
23ADOLC_EXTRA_FILES =  mul_level_adolc.cpp mul_level_adolc_ode.cpp
24ADOLC_SRC_FILES   =
25ADOLC_LIB         =
26ADOLC_FLAGS       =
27endif
28# -------------------------------------------------------------------------
29if CppAD_HAVE_AR
30if CppAD_EIGEN_DIR
31# make a special library so can have it's own compile flags (see configure.ac)
32EIGEN_EXTRA_FILES   =
33noinst_LIBRARIES    = libeigen.a
34libeigen_a_SOURCES  =  eigen_det.cpp eigen_array.cpp
35EIGEN_LIB           = -L. -leigen
36EIGEN_FLAGS         = -DCPPAD_EIGEN_EXAMPLES
37libeigen_a_CXXFLAGS = \
38        -g $(CXX_FLAGS_EIGEN) \
39        -DCPPAD_EIGEN_EXAMPLES \
40        -I$(EIGEN_DIR)/include
41else
42EIGEN_EXTRA_FILES   = eigen_det.cpp eigen_array.cpp
43EIGEN_LIB           =
44EIGEN_FLAGS         =
45endif
46else
47EIGEN_EXTRA_FILES   = eigen_det.cpp eigen_array.cpp
48EIGEN_LIB           =
49EIGEN_FLAGS         =
50endif
51# -------------------------------------------------------------------------
52# auto-tools does not support use of colpack
53EXTRA_DIST        =  \
54        test_one.sh.in \
55        colpack_hes.cpp \
56        colpack_jac.cpp \
57        $(ADOLC_EXTRA_FILES) \
58        $(EIGEN_EXTRA_FILES)
59#
60check_PROGRAMS    = example
61#
62if CppAD_MS_COMPILER
63AM_CXXFLAGS       = -EHsc -g $(ADOLC_FLAGS) $(EIGEN_FLAGS) $(CXX_FLAGS)
64else
65AM_CXXFLAGS       = -g $(ADOLC_FLAGS) $(EIGEN_FLAGS) $(CXX_FLAGS)
66endif
67#
68AM_CPPFLAGS       = \
69        -I. \
70        -I$(top_srcdir) \
71        $(BOOST_INCLUDE) \
72        $(EIGEN_INCLUDE) \
73        $(ADOLC_FLAGS) \
74        $(EIGEN_FLAGS)
75#
76LDADD        =  $(ADOLC_LIB)  $(BTHREAD_LIB) $(EIGEN_LIB) $(PTHREAD_LIB)
77#
78example_SOURCES   = \
79        $(ADOLC_SRC_FILES) \
80        \
81        example.cpp \
82        abort_recording.cpp \
83        abs.cpp \
84        acos.cpp \
85        acosh.cpp \
86        add.cpp \
87        add_eq.cpp \
88        ad_assign.cpp \
89        ad_ctor.cpp \
90        ad_fun.cpp \
91        ad_in_c.cpp \
92        ad_input.cpp \
93        ad_output.cpp \
94        asin.cpp \
95        asinh.cpp \
96        atan.cpp \
97        atanh.cpp \
98        atan2.cpp \
99        base_alloc.hpp \
100        base_require.cpp \
101        bender_quad.cpp \
102        bool_fun.cpp \
103        capacity_order.cpp \
104        change_param.cpp \
105        check_for_nan.cpp \
106        check_numeric_type.cpp \
107        check_simple_vector.cpp \
108        compare.cpp \
109        compare_change.cpp \
110        complex_poly.cpp \
111        cond_exp.cpp \
112        conj_grad.cpp \
113        cos.cpp \
114        cosh.cpp \
115        cppad_vector.cpp \
116        div.cpp \
117        div_eq.cpp \
118        equal_op_seq.cpp \
119        erf.cpp \
120        error_handler.cpp \
121        exp.cpp \
122        expm1.cpp \
123        for_one.cpp \
124        for_two.cpp \
125        forward.cpp \
126        forward_dir.cpp \
127        forward_order.cpp \
128        for_sparse_jac.cpp \
129        fun_assign.cpp \
130        fun_check.cpp \
131        hes_lagrangian.cpp \
132        hes_lu_det.cpp \
133        hes_minor_det.cpp \
134        hessian.cpp \
135        hes_times_dir.cpp \
136        independent.cpp \
137        index_sort.cpp \
138        integer.cpp \
139        interface2c.cpp\
140        interp_onetape.cpp\
141        interp_retape.cpp\
142        jac_lu_det.cpp \
143        jac_minor_det.cpp \
144        jacobian.cpp \
145        limits.cpp \
146        log.cpp \
147        log1p.cpp \
148        log10.cpp \
149        lu_factor.cpp \
150        lu_invert.cpp \
151        lu_ratio.cpp \
152        lu_solve.cpp \
153        lu_vec_ad.cpp \
154        lu_vec_ad.hpp \
155        lu_vec_ad_ok.cpp \
156        mul.cpp \
157        mul_eq.cpp \
158        mul_level.cpp \
159        mul_level_ode.cpp \
160        nan.cpp \
161        near_equal.cpp \
162        near_equal_ext.cpp \
163        number_skip.cpp \
164        numeric_type.cpp \
165        ode_err_control.cpp \
166        ode_err_maxabs.cpp \
167        ode_gear.cpp \
168        ode_gear_control.cpp\
169        ode_stiff.cpp \
170        ode_taylor.cpp \
171        omp_alloc.cpp \
172        opt_val_hes.cpp \
173        optimize.cpp \
174        par_var.cpp \
175        poly.cpp \
176        pow.cpp \
177        pow_int.cpp \
178        print_for.cpp \
179        reverse_any.cpp \
180        reverse_one.cpp \
181        reverse_three.cpp \
182        reverse_two.cpp \
183        rev_one.cpp \
184        rev_sparse_hes.cpp \
185        rev_sparse_jac.cpp \
186        rev_two.cpp \
187        romberg_mul.cpp \
188        romberg_one.cpp \
189        rosen_34.cpp \
190        runge45_1.cpp \
191        runge45_2.cpp \
192        seq_property.cpp \
193        simple_vector.cpp \
194        sign.cpp \
195        sin.cpp \
196        sinh.cpp \
197        sparse_hessian.cpp \
198        sparse_jacobian.cpp \
199        sparse_sub_hes.cpp \
200        sqrt.cpp \
201        stack_machine.cpp \
202        sub.cpp \
203        sub_eq.cpp \
204        sub_sparse_hes.cpp \
205        tan.cpp \
206        tanh.cpp \
207        tape_index.cpp \
208        thread_alloc.cpp \
209        unary_minus.cpp \
210        unary_plus.cpp \
211        value.cpp \
212        var2par.cpp \
213        vec_ad.cpp  \
214        vector_bool.cpp \
215        zdouble.cpp
216
217test: check
218        ./example
Note: See TracBrowser for help on using the repository browser.