source: trunk/example/makefile.am @ 3803

Last change on this file since 3803 was 3803, checked in by bradbell, 4 years ago

merge to branch: trunk
from repository: https://github.com/coin-or/CppAD
start hash code: d75b0cba62a41b958b974a326168299773bc4614
end hash code: 8dd8b10d36b325a3f4bbf3c03f1ea00e288331ae

commit 8dd8b10d36b325a3f4bbf3c03f1ea00e288331ae
Author: Brad Bell <bradbell@…>
Date: Fri Mar 18 20:25:17 2016 -0700

  1. replace multiple */test_one.sh.in by one bin/test_one.sh.
  2. remove test_one.sh.in from auto-tools build.

commit e524af11d04938103d42963e393b3637616dc278
Author: Brad Bell <bradbell@…>
Date: Fri Mar 18 10:02:38 2016 -0700

Move solve.cpp -> ipopt_solve.cpp so has same name as its directory.

commit 4714099e4eef9226536760e206f988440eec2f48
Author: Brad Bell <bradbell@…>
Date: Fri Mar 18 09:50:37 2016 -0700

Use system include option to supress all warnings in eigen and fadbad source.

  • Property svn:keywords set to Id
File size: 4.8 KB
Line 
1# $Id: makefile.am 3803 2016-03-19 05:07:48Z bradbell $
2# -----------------------------------------------------------------------------
3# CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-16 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        colpack_hes.cpp \
55        colpack_jac.cpp \
56        $(ADOLC_EXTRA_FILES) \
57        $(EIGEN_EXTRA_FILES)
58#
59check_PROGRAMS    = example
60#
61if CppAD_MS_COMPILER
62AM_CXXFLAGS       = -EHsc -g $(ADOLC_FLAGS) $(EIGEN_FLAGS) $(CXX_FLAGS)
63else
64AM_CXXFLAGS       = -g $(ADOLC_FLAGS) $(EIGEN_FLAGS) $(CXX_FLAGS)
65endif
66#
67AM_CPPFLAGS       = \
68        -I. \
69        -I$(top_srcdir) \
70        $(BOOST_INCLUDE) \
71        $(EIGEN_INCLUDE) \
72        $(ADOLC_FLAGS) \
73        $(EIGEN_FLAGS)
74#
75LDADD        =  $(ADOLC_LIB)  $(BTHREAD_LIB) $(EIGEN_LIB) $(PTHREAD_LIB)
76#
77example_SOURCES   = \
78        $(ADOLC_SRC_FILES) \
79        \
80        example.cpp \
81        abort_recording.cpp \
82        abs.cpp \
83        acos.cpp \
84        acosh.cpp \
85        add.cpp \
86        add_eq.cpp \
87        ad_assign.cpp \
88        ad_ctor.cpp \
89        ad_fun.cpp \
90        ad_in_c.cpp \
91        ad_input.cpp \
92        ad_output.cpp \
93        asin.cpp \
94        asinh.cpp \
95        atan.cpp \
96        atanh.cpp \
97        atan2.cpp \
98        azmul.cpp \
99        base_alloc.hpp \
100        base_require.cpp \
101        bender_quad.cpp \
102        bool_fun.cpp \
103        bool_sparsity.cpp \
104        capacity_order.cpp \
105        change_param.cpp \
106        check_for_nan.cpp \
107        check_numeric_type.cpp \
108        check_simple_vector.cpp \
109        compare.cpp \
110        compare_change.cpp \
111        complex_poly.cpp \
112        cond_exp.cpp \
113        conj_grad.cpp \
114        cos.cpp \
115        cosh.cpp \
116        cppad_vector.cpp \
117        dependency.cpp \
118        div.cpp \
119        div_eq.cpp \
120        equal_op_seq.cpp \
121        erf.cpp \
122        error_handler.cpp \
123        exp.cpp \
124        expm1.cpp \
125        for_one.cpp \
126        for_two.cpp \
127        forward.cpp \
128        forward_dir.cpp \
129        forward_order.cpp \
130        for_sparse_hes.cpp \
131        for_sparse_jac.cpp \
132        fun_assign.cpp \
133        fun_check.cpp \
134        hes_lagrangian.cpp \
135        hes_lu_det.cpp \
136        hes_minor_det.cpp \
137        hessian.cpp \
138        hes_times_dir.cpp \
139        independent.cpp \
140        index_sort.cpp \
141        integer.cpp \
142        interface2c.cpp\
143        interp_onetape.cpp\
144        interp_retape.cpp\
145        jac_lu_det.cpp \
146        jac_minor_det.cpp \
147        jacobian.cpp \
148        num_limits.cpp \
149        log.cpp \
150        log1p.cpp \
151        log10.cpp \
152        lu_factor.cpp \
153        lu_invert.cpp \
154        lu_ratio.cpp \
155        lu_solve.cpp \
156        lu_vec_ad.cpp \
157        lu_vec_ad.hpp \
158        lu_vec_ad_ok.cpp \
159        mul.cpp \
160        mul_eq.cpp \
161        mul_level.cpp \
162        mul_level_ode.cpp \
163        nan.cpp \
164        near_equal.cpp \
165        near_equal_ext.cpp \
166        number_skip.cpp \
167        numeric_type.cpp \
168        ode_err_control.cpp \
169        ode_err_maxabs.cpp \
170        ode_gear.cpp \
171        ode_gear_control.cpp\
172        ode_stiff.cpp \
173        ode_taylor.cpp \
174        opt_val_hes.cpp \
175        optimize.cpp \
176        par_var.cpp \
177        poly.cpp \
178        pow.cpp \
179        pow_int.cpp \
180        print_for.cpp \
181        reverse_checkpoint.cpp \
182        reverse_one.cpp \
183        reverse_three.cpp \
184        reverse_two.cpp \
185        rev_one.cpp \
186        rev_sparse_hes.cpp \
187        rev_sparse_jac.cpp \
188        rev_two.cpp \
189        romberg_mul.cpp \
190        romberg_one.cpp \
191        rosen_34.cpp \
192        runge45_1.cpp \
193        runge45_2.cpp \
194        seq_property.cpp \
195        simple_vector.cpp \
196        sign.cpp \
197        sin.cpp \
198        sinh.cpp \
199        sparse_hessian.cpp \
200        sparse_jacobian.cpp \
201        sparse_sub_hes.cpp \
202        sparsity_sub.cpp \
203        sqrt.cpp \
204        stack_machine.cpp \
205        sub.cpp \
206        sub_eq.cpp \
207        sub_sparse_hes.cpp \
208        tan.cpp \
209        tanh.cpp \
210        tape_index.cpp \
211        thread_alloc.cpp \
212        to_string.cpp \
213        unary_minus.cpp \
214        unary_plus.cpp \
215        value.cpp \
216        var2par.cpp \
217        vec_ad.cpp  \
218        vector_bool.cpp
219
220test: check
221        ./example
Note: See TracBrowser for help on using the repository browser.