# $Id: makefile.am 3481 2014-12-17 23:39:47Z bradbell $ # ----------------------------------------------------------------------------- # CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-14 Bradley M. Bell # # CppAD is distributed under multiple licenses. This distribution is under # the terms of the # Eclipse Public License Version 1.0. # # A copy of this license is included in the COPYING file of this distribution. # Please visit http://www.coin-or.org/CppAD/ for information on other licenses. # ----------------------------------------------------------------------------- # # Copy source file so that main.o does not end up in parent directory BUILT_SOURCES = main.cpp main.cpp: cp $(srcdir)/../main.cpp main.cpp # # # CppAD pusts all it's preprocessor definitions in the cppad/configure.hpp DEFS = # check_PROGRAMS = speed_sacado # AM_CPPFLAGS = \ -I$(top_srcdir) \ -I$(SACADO_DIR)/include \ $(BOOST_INCLUDE) \ $(EIGEN_INCLUDE) # # BEGIN OPTIMIZE AM_CXXFLAGS = -O2 -DNDEBUG -DCPPAD_SACADO_SPEED \ -DRAD_EQ_ALIAS -DRAD_AUTO_AD_Const $(CXX_FLAGS) # END OPTIMIZE # # BEGIN DEBUG # AM_CXXFLAGS = -g $(CXX_FLAGS) $(CXX_FLAGS) -DCPPAD_SACADO_SPEED -DRAD_AUTO_AD_Const # END DEBUG # LDADD = -lspeed -lsacado -lteuchoscore AM_LDFLAGS = -L../src -L$(SACADO_DIR)/lib -L$(SACADO_DIR)/lib64 # speed_sacado_SOURCES = \ main.cpp \ det_lu.cpp \ det_minor.cpp \ mat_mul.cpp \ ode.cpp \ poly.cpp \ sparse_hessian.cpp \ sparse_jacobian.cpp test: check ./speed_sacado correct 123