source: trunk/test_more/makefile.am @ 3008

Last change on this file since 3008 was 2940, checked in by bradbell, 6 years ago

Working on getting jenkins.sh (with adolc) to run under cygwin.

get_adolc.sh: for cygwin: special edits version 2.3.0 and build static only.
get_colpack.sh: cygwin: build static only

  • Property svn:keywords set to Id
File size: 4.1 KB
Line 
1# $Id: makefile.am 2940 2013-10-14 16:14:52Z 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 -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        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        checkpoint.cpp \
104        compare.cpp \
105        compare_change.cpp \
106        cond_exp.cpp \
107        cond_exp_ad.cpp \
108        copy.cpp \
109        cos.cpp \
110        cosh.cpp \
111        dbl_epsilon.cpp \
112        div.cpp \
113        div_eq.cpp \
114        div_zero_one.cpp \
115        erf.cpp \
116        exp.cpp \
117        extern_value.cpp \
118        extern_value.hpp \
119        for_hess.cpp \
120        for_sparse_jac.cpp \
121        forward.cpp \
122        forward_mul.cpp \
123        from_base.cpp \
124        fun_check.cpp \
125        jacobian.cpp \
126        limits.cpp \
127        log.cpp \
128        log10.cpp \
129        mul.cpp \
130        mul_eq.cpp \
131        mul_level.cpp \
132        mul_zero_one.cpp \
133        ndebug.cpp \
134        near_equal_ext.cpp \
135        neg.cpp \
136        ode_err_control.cpp \
137        optimize.cpp \
138        parameter.cpp \
139        poly.cpp \
140        pow.cpp \
141        pow_int.cpp \
142        print_for.cpp \
143        romberg_one.cpp \
144        rosen_34.cpp \
145        runge_45.cpp \
146        reverse.cpp \
147        rev_sparse_hes.cpp \
148        rev_sparse_jac.cpp \
149        rev_two.cpp \
150        simple_vector.cpp \
151        sin.cpp \
152        sin_cos.cpp \
153        sinh.cpp \
154        sparse_hessian.cpp \
155        sparse_jacobian.cpp \
156        sparse_vec_ad.cpp \
157        sqrt.cpp \
158        std_math.cpp \
159        sub.cpp \
160        sub_eq.cpp \
161        sub_zero.cpp \
162        tan.cpp \
163        test_vector.cpp \
164        track_new_del.cpp \
165        value.cpp \
166        vec_ad.cpp \
167        vec_ad_par.cpp \
168        vec_unary.cpp
169
170ndebug.$(OBJEXT): ndebug.cpp
171        $(CXXCOMPILE) \
172        -DNDEBUG -c $(top_srcdir)/test_more/ndebug.cpp -o ndebug.$(OBJEXT)
173
174test: check
175        ./test_more
Note: See TracBrowser for help on using the repository browser.