source: trunk/test_more/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.3 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 pusts all it's preprocessor definitions in the cppad/configure.hpp
15DEFS          =
16#
17# -------------------------------------------------------------------------
18if CppAD_OPENMP
19OPENMP_SRC_FILES   = alloc_openmp.cpp
20else
21OPENMP_SRC_FILES   =
22endif
23# -------------------------------------------------------------------------
24if CppAD_ADOLC
25ADOLC_SRC_FILES   = base_adolc.cpp
26ADOLC_EXTRA_FILES =
27ADOLC_LIB         = -ladolc -lColPack -L$(ADOLC_DIR)/lib -L$(ADOLC_DIR)/lib64
28ADOLC_FLAGS       = -DCPPAD_ADOLC_TEST -I$(ADOLC_DIR)/include
29else
30ADOLC_EXTRA_FILES = base_adolc.cpp
31ADOLC_SRC_FILES   =
32ADOLC_LIB         =
33ADOLC_FLAGS       =
34endif
35# -------------------------------------------------------------------------
36if CppAD_IPOPT
37IPOPT_SRC_FILES   = ipopt_solve.cpp
38IPOPT_EXTRA_FILES =
39IPOPT_LIB         = -lipopt \
40        $(CPPAD_IPOPT_LIBS) $(FCLIBS) $(PTHREAD_LIB) $(DL_LIB)
41IPOPT_FLAGS       = -DCPPAD_IPOPT_TEST -I$(IPOPT_DIR)/include
42else
43IPOPT_EXTRA_FILES = ipopt_solve.cpp
44IPOPT_SRC_FILES   =
45IPOPT_LIB         =
46IPOPT_FLAGS       =
47endif
48# -------------------------------------------------------------------------
49if CppAD_EIGEN_DIR
50# make a special library so can have it's own compile flags (see configure.ac)
51EIGEN_EXTRA_FILES   =
52noinst_LIBRARIES    = libeigen.a
53libeigen_a_SOURCES  =  cppad_eigen.cpp
54EIGEN_LIB           = -L. -leigen
55libeigen_a_CXXFLAGS = \
56        -g \
57        $(CXX_FLAGS_EIGEN) \
58        -DCPPAD_EIGEN_TEST \
59         -I$(EIGEN_DIR)/include
60else
61EIGEN_EXTRA_FILES   = cppad_eigen.cpp
62EIGEN_LIB           =
63endif
64# -------------------------------------------------------------------------
65# Microsoft project files and script to run a single test
66EXTRA_DIST        =  \
67        $(ADOLC_EXTRA_FILES) \
68        $(IPOPT_EXTRA_FILES) \
69        $(EIGEN_EXTRA_FILES)
70#
71check_PROGRAMS    = test_more
72#
73AM_CPPFLAGS       = -I. \
74        -I$(top_srcdir) \
75        $(BOOST_INCLUDE) \
76        $(EIGEN_INCLUDE) \
77        $(ADOLC_FLAGS) \
78        $(IPOPT_FLAGS) \
79        $(OPENMP_FLAGS)
80#
81AM_CXXFLAGS       = -g $(ADOLC_FLAGS) $(IPOPT_FLAGS) $(CXX_FLAGS)
82#
83AM_LDFLAGS        = $(OPENMP_FLAGS)
84LDADD             = $(ADOLC_LIB) $(IPOPT_LIB) $(EIGEN_LIB) $(OPENMP_FLAGS)
85#
86test_more_SOURCES  = \
87        $(ADOLC_SRC_FILES) \
88        $(IPOPT_SRC_FILES) \
89        $(OPENMP_SRC_FILES) \
90        test_more.cpp \
91        abs.cpp \
92        acos.cpp \
93        acosh.cpp \
94        adfun_copy.cpp \
95        asin.cpp \
96        asinh.cpp \
97        assign.cpp \
98        add.cpp \
99        add_eq.cpp \
100        add_zero.cpp \
101        atan.cpp \
102        atanh.cpp \
103        atan2.cpp \
104        azmul.cpp \
105        base_alloc.cpp \
106        check_simple_vector.cpp \
107        checkpoint.cpp \
108        compare.cpp \
109        compare_change.cpp \
110        cond_exp.cpp \
111        cond_exp_ad.cpp \
112        cond_exp_rev.cpp \
113        copy.cpp \
114        cos.cpp \
115        cosh.cpp \
116        dbl_epsilon.cpp \
117        div.cpp \
118        div_eq.cpp \
119        div_zero_one.cpp \
120        erf.cpp \
121        exp.cpp \
122        expm1.cpp \
123        extern_value.cpp \
124        extern_value.hpp \
125        for_hess.cpp \
126        for_sparse_hes.cpp \
127        for_sparse_jac.cpp \
128        forward.cpp \
129        forward_dir.cpp \
130        forward_order.cpp \
131        from_base.cpp \
132        fun_check.cpp \
133        hes_sparsity.cpp \
134        jacobian.cpp \
135        num_limits.cpp \
136        log.cpp \
137        log1p.cpp \
138        log10.cpp \
139        mul.cpp \
140        mul_cskip.cpp \
141        mul_eq.cpp \
142        mul_level.cpp \
143        mul_cond_rev.cpp \
144        mul_zdouble.cpp \
145        mul_zero_one.cpp \
146        near_equal_ext.cpp \
147        neg.cpp \
148        ode_err_control.cpp \
149        old_usead_2.cpp \
150        old_usead_1.cpp \
151        old_tan.cpp \
152        old_reciprocal.cpp \
153        old_mat_mul.cpp \
154        old_mat_mul.hpp \
155        omp_alloc.cpp \
156        optimize.cpp \
157        parameter.cpp \
158        poly.cpp \
159        pow.cpp \
160        pow_int.cpp \
161        print_for.cpp \
162        romberg_one.cpp \
163        rosen_34.cpp \
164        runge_45.cpp \
165        reverse.cpp \
166        rev_sparse_jac.cpp \
167        rev_two.cpp \
168        simple_vector.cpp \
169        sin.cpp \
170        sin_cos.cpp \
171        sinh.cpp \
172        sparse_hessian.cpp \
173        sparse_jacobian.cpp \
174        sparse_vec_ad.cpp \
175        sqrt.cpp \
176        std_math.cpp \
177        sub.cpp \
178        sub_eq.cpp \
179        sub_zero.cpp \
180        tan.cpp \
181        test_vector.cpp \
182        to_string.cpp \
183        track_new_del.cpp \
184        value.cpp \
185        vec_ad.cpp \
186        vec_ad_par.cpp \
187        vec_unary.cpp \
188        zdouble.cpp
189
190test: check
191        ./test_more
Note: See TracBrowser for help on using the repository browser.