source: trunk/test_more/makefile.am @ 2722

Last change on this file since 2722 was 2722, checked in by bradbell, 7 years ago
  1. Change echo_exec to echo_eval.

limits.hpp: Improve documentation.
limits.cpp: Simplify example.
epsilon.cpp: Replace by more general limits.cpp.
limits.cpp: Modified version of old example/limits.cpp.

  • Property svn:keywords set to Id
File size: 4.0 KB
Line 
1# $Id: makefile.am 2722 2013-01-06 16:52:46Z 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# 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 -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        test_one.sh.in  \
68        $(ADOLC_EXTRA_FILES) \
69        $(IPOPT_EXTRA_FILES) \
70        $(EIGEN_EXTRA_FILES)
71#
72check_PROGRAMS    = test_more
73#
74AM_CPPFLAGS       = -I. \
75        -I$(top_srcdir) \
76        $(BOOST_INCLUDE) \
77        $(EIGEN_INCLUDE) \
78        $(ADOLC_FLAGS) \
79        $(IPOPT_FLAGS) \
80        $(OPENMP_FLAGS)
81#
82AM_CXXFLAGS       = -g $(ADOLC_FLAGS) $(IPOPT_FLAGS) $(CXX_FLAGS)
83#
84AM_LDFLAGS        = $(OPENMP_FLAGS)
85LDADD             = $(ADOLC_LIB) $(IPOPT_LIB) $(EIGEN_LIB) $(OPENMP_FLAGS)
86#
87test_more_SOURCES  = \
88        $(ADOLC_SRC_FILES) \
89        $(IPOPT_SRC_FILES) \
90        $(OPENMP_SRC_FILES) \
91        test_more.cpp \
92        abs.cpp \
93        acos.cpp \
94        asin.cpp \
95        assign.cpp \
96        add.cpp \
97        add_eq.cpp \
98        add_zero.cpp \
99        atan.cpp \
100        atan2.cpp \
101        base_alloc.cpp \
102        check_simple_vector.cpp \
103        compare.cpp \
104        compare_change.cpp \
105        cond_exp.cpp \
106        cond_exp_ad.cpp \
107        copy.cpp \
108        cos.cpp \
109        cosh.cpp \
110        dbl_epsilon.cpp \
111        div.cpp \
112        div_eq.cpp \
113        div_zero_one.cpp \
114        erf.cpp \
115        exp.cpp \
116        for_hess.cpp \
117        for_sparse_jac.cpp \
118        forward.cpp \
119        from_base.cpp \
120        fun_check.cpp \
121        jacobian.cpp \
122        limits.cpp \
123        log.cpp \
124        log10.cpp \
125        mul.cpp \
126        mul_eq.cpp \
127        mul_level.cpp \
128        mul_zero_one.cpp \
129        ndebug.cpp \
130        near_equal_ext.cpp \
131        neg.cpp \
132        ode_err_control.cpp \
133        optimize.cpp \
134        parameter.cpp \
135        poly.cpp \
136        pow.cpp \
137        pow_int.cpp \
138        print_for.cpp \
139        romberg_one.cpp \
140        rosen_34.cpp \
141        runge_45.cpp \
142        reverse.cpp \
143        rev_sparse_hes.cpp \
144        rev_sparse_jac.cpp \
145        rev_two.cpp \
146        simple_vector.cpp \
147        sin.cpp \
148        sin_cos.cpp \
149        sinh.cpp \
150        sparse_hessian.cpp \
151        sparse_jacobian.cpp \
152        sparse_vec_ad.cpp \
153        sqrt.cpp \
154        std_math.cpp \
155        sub.cpp \
156        sub_eq.cpp \
157        sub_zero.cpp \
158        tan.cpp \
159        test_vector.cpp \
160        track_new_del.cpp \
161        value.cpp \
162        vec_ad.cpp \
163        vec_ad_par.cpp \
164        vec_unary.cpp
165
166ndebug.$(OBJEXT): ndebug.cpp
167        $(CXXCOMPILE) \
168        -DNDEBUG -c $(top_srcdir)/test_more/ndebug.cpp -o ndebug.$(OBJEXT)
169
170test: check
171        ./test_more
Note: See TracBrowser for help on using the repository browser.