# Copyright (C) 2006 International Business Machines and others.
# All Rights Reserved.
# This file is distributed under the Common Public License.

## $Id$

# Author:  Andreas Waechter           IBM    2006-04-13

AUTOMAKE_OPTIONS = foreign

########################################################################
#                         unitTest for Coin                            #
########################################################################

if COIN_HAS_CLP

noinst_PROGRAMS = unitTest

unitTest_SOURCES = unitTest.cpp

# List libraries of COIN projects
unitTest_LDADD = ../src/libSmi.la $(SMI_LIBS) $(CLP_LIBS)
unitTest_DEPENDENCIES = ../src/libSmi.la $(SMI_DEPENDENCIES) $(CLP_DEPENDENCIES)

# Here list all include flags, relative to this "srcdir" directory.  This
# "cygpath" stuff is necessary to compile with native compilers on Cygwin
AM_CPPFLAGS = -I`$(CYGPATH_W) $(srcdir)/../src` $(SMI_CFLAGS) $(CLP_CFLAGS)

test: unitTest$(EXEEXT)
	./unitTest$(EXEEXT)

else
test:
	echo "Clp required to run unittest."
	
endif

.PHONY: test

# This line is necessary to allow VPATH compilation
DEFAULT_INCLUDES = -I. -I`$(CYGPATH_W) $(srcdir)` 

########################################################################
#                          Cleaning stuff                              #
########################################################################

# Here we list everything that is not generated by the compiler, e.g.,
# output files of a program

DISTCLEANFILES = bug_gen.mps
