source: trunk/test_more/makefile.am @ 2506

Last change on this file since 2506 was 2506, checked in by bradbell, 8 years ago

Change Licenses: CPL-1.0 -> EPL-1.0, GPL-2.0->GPL-3.0

  • Property svn:keywords set to Id
File size: 3.4 KB
Line 
1# $Id: makefile.am 2506 2012-10-24 19:36:49Z bradbell $
2# -----------------------------------------------------------------------------
3# CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-12 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#
17if CppAD_OPENMP
18OPENMP_SRC_FILES   = alloc_openmp.cpp
19else
20OPENMP_SRC_FILES   =
21endif
22if CppAD_ADOLC
23ADOLC_SRC_FILES   = base_adolc.cpp
24ADOLC_EXTRA_FILES =
25ADOLC_LIB         = -ladolc -L$(ADOLC_DIR)/lib -L$(ADOLC_DIR)/lib64
26ADOLC_FLAGS       = -DCPPAD_ADOLC_TEST -I$(ADOLC_DIR)/include
27else
28ADOLC_EXTRA_FILES = base_adolc.cpp
29ADOLC_SRC_FILES   =
30ADOLC_LIB         =
31ADOLC_FLAGS       =
32endif
33# -------------------------------------------------------------------------
34if CppAD_EIGEN_DIR
35# make a special library so can have it's own compile flags (see configure.ac)
36EIGEN_EXTRA_FILES   =
37noinst_LIBRARIES    = libeigen.a
38libeigen_a_SOURCES  =  cppad_eigen.cpp
39EIGEN_LIB           = -L. -leigen
40libeigen_a_CXXFLAGS = \
41        -g \
42        $(CXX_FLAGS_EIGEN) \
43        -DCPPAD_EIGEN_TEST \
44         -I$(EIGEN_DIR)/include
45else
46EIGEN_EXTRA_FILES   = cppad_eigen.cpp
47EIGEN_LIB           =
48endif
49# -------------------------------------------------------------------------
50# Microsoft project files and script to run a single test
51EXTRA_DIST        =  \
52        test_more.sln \
53        test_more.vcproj \
54        test_one.sh.in  \
55        $(ADOLC_EXTRA_FILES) \
56        $(EIGEN_EXTRA_FILES)
57#
58check_PROGRAMS    = test_more
59#
60AM_CPPFLAGS       = -I. \
61        -I$(top_srcdir) \
62        $(BOOST_INCLUDE) \
63        $(EIGEN_INCLUDE) \
64        $(ADOLC_FLAGS) \
65        $(OPENMP_FLAGS)
66#
67AM_CXXFLAGS       = -g $(ADOLC_FLAGS) $(CXX_FLAGS)
68#
69AM_LDFLAGS        = $(ADOLC_LIB) $(EIGEN_LIB) $(OPENMP_FLAGS)
70#
71test_more_SOURCES  = \
72        $(ADOLC_SRC_FILES) \
73        $(OPENMP_SRC_FILES) \
74        test_more.cpp \
75        abs.cpp \
76        acos.cpp \
77        asin.cpp \
78        assign.cpp \
79        add.cpp \
80        add_eq.cpp \
81        add_zero.cpp \
82        atan.cpp \
83        atan2.cpp \
84        base_alloc.cpp \
85        check_simple_vector.cpp \
86        compare.cpp \
87        compare_change.cpp \
88        cond_exp.cpp \
89        cond_exp_ad.cpp \
90        copy.cpp \
91        cos.cpp \
92        cosh.cpp \
93        dbl_epsilon.cpp \
94        div.cpp \
95        div_eq.cpp \
96        div_zero_one.cpp \
97        erf.cpp \
98        epsilon.cpp \
99        exp.cpp \
100        for_hess.cpp \
101        for_sparse_jac.cpp \
102        forward.cpp \
103        from_base.cpp \
104        fun_check.cpp \
105        jacobian.cpp \
106        log.cpp \
107        log10.cpp \
108        mul.cpp \
109        mul_eq.cpp \
110        mul_level.cpp \
111        mul_zero_one.cpp \
112        ndebug.cpp \
113        near_equal_ext.cpp \
114        neg.cpp \
115        ode_err_control.cpp \
116        optimize.cpp \
117        parameter.cpp \
118        poly.cpp \
119        pow.cpp \
120        pow_int.cpp \
121        print_for.cpp \
122        romberg_one.cpp \
123        rosen_34.cpp \
124        runge_45.cpp \
125        reverse.cpp \
126        rev_sparse_hes.cpp \
127        rev_sparse_jac.cpp \
128        rev_two.cpp \
129        simple_vector.cpp \
130        sin.cpp \
131        sin_cos.cpp \
132        sinh.cpp \
133        sparse_hessian.cpp \
134        sparse_jacobian.cpp \
135        sparse_vec_ad.cpp \
136        sqrt.cpp \
137        std_math.cpp \
138        sub.cpp \
139        sub_eq.cpp \
140        sub_zero.cpp \
141        tan.cpp \
142        test_vector.cpp \
143        track_new_del.cpp \
144        value.cpp \
145        vec_ad.cpp \
146        vec_ad_par.cpp \
147        vec_unary.cpp
148
149ndebug.$(OBJEXT): ndebug.cpp
150        $(CXXCOMPILE) \
151        -DNDEBUG -c $(top_srcdir)/test_more/ndebug.cpp -o ndebug.$(OBJEXT)
152
153test: check
154        ./test_more
Note: See TracBrowser for help on using the repository browser.