# $Id: makefile.am 3785 2016-02-08 12:53:06Z bradbell $
# -----------------------------------------------------------------------------
# CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-15 Bradley M. Bell
#
# CppAD is distributed under multiple licenses. This distribution is under
# the terms of the
#                     GNU General Public License Version 3.
#
# 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.
# -----------------------------------------------------------------------------
# automake input file
# See ./CMakeLists.txt for specifications.
#
BUILT_SOURCES = det_by_minor_c.c det_by_minor_cpp.cpp
det_by_minor_c.c: det_by_minor.c
	cp $(srcdir)/det_by_minor.c det_by_minor_c.c
det_by_minor_cpp.cpp: det_by_minor.c
	cp $(srcdir)/det_by_minor.c det_by_minor_cpp.cpp
#
EXTRA_DIST = \
	det_by_minor.c
#
# erase configures choice of flags
DEFS =
#
# AM_CXXFLAGS = -g
# AM_CFLAGS   = -g
#
AM_CXXFLAGS = -O2 -DNDEBUG
AM_CFLAGS   = -O2 -DNDEBUG
#
check_PROGRAMS    = det_by_minor_c det_by_minor_cpp
#
det_by_minor_c_SOURCES   = det_by_minor_c.c
det_by_minor_cpp_SOURCES = det_by_minor_cpp.cpp
#
test: det_by_minor_c det_by_minor_cpp
	echo "Running version compiled using C compiler"
	./det_by_minor_c
	echo "Running version compiled using C++ compiler"
	./det_by_minor_cpp
