1# ----------------------------------------------------------------------------- 2# CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-18 Bradley M. Bell 3# 4# CppAD is distributed under the terms of the 5# Eclipse Public License Version 2.0. 6# 7# This Source Code may also be made available under the following 8# Secondary License when the conditions for such availability set forth 9# in the Eclipse Public License, Version 2.0 are satisfied: 10# GNU General Public License, Version 2.0 or later. 11# ----------------------------------------------------------------------------- 12# 13# Copy source file so that main.o does not end up in parent directory 14BUILT_SOURCES = main.cpp 15main.cpp: 16 cp $(srcdir)/../main.cpp main.cpp 17# 18# CppAD pusts all it's preprocessor definitions in the cppad/configure.hpp 19DEFS = 20# 21check_PROGRAMS = speed_cppad 22# 23# 24AM_CXXFLAGS = \ 25 -DCPPAD_CPPAD_SPEED \ 26 $(CXX_FLAGS) \ 27 -I$(top_srcdir)/include \ 28 $(BOOST_INCLUDE) \ 29 $(EIGEN_INCLUDE) 30# 31# 32# directly address the library so works with windows 33LDADD = ../src/libspeed.a 34# 35../src/libspeed.a: 36 (cd ../src; make libspeed.a) 37# 38speed_cppad_SOURCES = \ 39 main.cpp \ 40 det_lu.cpp \ 41 det_minor.cpp \ 42 mat_mul.cpp \ 43 ode.cpp \ 44 poly.cpp \ 45 sparse_hessian.cpp \ 46 sparse_jacobian.cpp 47 48test: check 49 ./speed_cppad correct 123 50 ./speed_cppad correct 123 onetape 51 ./speed_cppad correct 123 optimize 52 ./speed_cppad correct 123 atomic 53 ./speed_cppad correct 123 memory 54 ./speed_cppad correct 123 boolsparsity 55