source: trunk/test_more/makefile.am @ 3520

Last change on this file since 3520 was 3519, checked in by bradbell, 5 years ago
  1. Fix some clang 3.5 warnings about local functions that were not used.
  2. Change ndebug -> adfun_copy and test error on ADFun copy constructor usage.

CMakeLists.txt: remove duplicate compliation of eigen_soruces.
makefile.am: :

  • Property svn:keywords set to Id
File size: 4.0 KB
Line 
1# $Id: makefile.am 3519 2014-12-28 16:22:57Z bradbell $
2# -----------------------------------------------------------------------------
3# CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-14 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        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        adfun_copy.cpp \
95        asin.cpp \
96        assign.cpp \
97        add.cpp \
98        add_eq.cpp \
99        add_zero.cpp \
100        atan.cpp \
101        atan2.cpp \
102        base_alloc.cpp \
103        check_simple_vector.cpp \
104        checkpoint.cpp \
105        compare.cpp \
106        compare_change.cpp \
107        cond_exp.cpp \
108        cond_exp_ad.cpp \
109        copy.cpp \
110        cos.cpp \
111        cosh.cpp \
112        dbl_epsilon.cpp \
113        div.cpp \
114        div_eq.cpp \
115        div_zero_one.cpp \
116        erf.cpp \
117        exp.cpp \
118        extern_value.cpp \
119        extern_value.hpp \
120        for_hess.cpp \
121        for_sparse_jac.cpp \
122        forward.cpp \
123        forward_dir.cpp \
124        forward_order.cpp \
125        from_base.cpp \
126        fun_check.cpp \
127        jacobian.cpp \
128        limits.cpp \
129        log.cpp \
130        log10.cpp \
131        mul.cpp \
132        mul_eq.cpp \
133        mul_level.cpp \
134        mul_zero_one.cpp \
135        near_equal_ext.cpp \
136        neg.cpp \
137        ode_err_control.cpp \
138        optimize.cpp \
139        parameter.cpp \
140        poly.cpp \
141        pow.cpp \
142        pow_int.cpp \
143        print_for.cpp \
144        romberg_one.cpp \
145        rosen_34.cpp \
146        runge_45.cpp \
147        reverse.cpp \
148        rev_sparse_hes.cpp \
149        rev_sparse_jac.cpp \
150        rev_two.cpp \
151        simple_vector.cpp \
152        sin.cpp \
153        sin_cos.cpp \
154        sinh.cpp \
155        sparse_hessian.cpp \
156        sparse_jacobian.cpp \
157        sparse_vec_ad.cpp \
158        sqrt.cpp \
159        std_math.cpp \
160        sub.cpp \
161        sub_eq.cpp \
162        sub_zero.cpp \
163        tan.cpp \
164        test_vector.cpp \
165        track_new_del.cpp \
166        value.cpp \
167        vec_ad.cpp \
168        vec_ad_par.cpp \
169        vec_unary.cpp
170
171test: check
172        ./test_more
Note: See TracBrowser for help on using the repository browser.