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_double 22# 23# 24AM_CXXFLAGS = \ 25 -DCPPAD_DOUBLE_SPEED \ 26 $(CXX_FLAGS) \ 27 -I$(top_srcdir)/include \ 28 $(BOOST_INCLUDE) \ 29 $(EIGEN_INCLUDE) 30# 31# 32LDADD = ../src/libspeed.a 33# 34../src/libspeed.a: 35 (cd ../src; make libspeed.a) 36# 37speed_double_SOURCES = \ 38 main.cpp \ 39 det_lu.cpp \ 40 det_minor.cpp \ 41 mat_mul.cpp \ 42 ode.cpp \ 43 poly.cpp \ 44 sparse_hessian.cpp \ 45 sparse_jacobian.cpp 46 47test: check 48 ./speed_double correct 123 49