source: trunk/Clp/test/Makefile.am @ 1781

Last change on this file since 1781 was 1781, checked in by stefan, 8 years ago

fix order of -I flags, so uninstalled headers are prefered to installed ones in case headers of dependencies are in installation directory; fix addlibs file for cl

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.2 KB
Line 
1# Copyright (C) 2006 International Business Machines and others.
2# All Rights Reserved.
3# This file is distributed under the Eclipse Public License.
4
5## $Id: Makefile.am 1781 2011-08-14 10:42:40Z stefan $
6
7# Author:  Andreas Waechter           IBM    2006-04-13
8
9AUTOMAKE_OPTIONS = foreign
10
11########################################################################
12#                         unitTest for OsiClp                          #
13########################################################################
14
15if COIN_HAS_OSITESTS
16
17noinst_PROGRAMS = osiUnitTest
18
19osiUnitTest_SOURCES = osiUnitTest.cpp OsiClpSolverInterfaceTest.cpp
20
21osiUnitTest_LDADD = ../src/libClp.la ../src/OsiClp/libOsiClp.la \
22  $(CLPLIB_LIBS) $(OSICLP_LIBS) $(OSITESTS_LIBS)
23
24osiUnitTest_DEPENDENCIES = ../src/libClp.la ../src/OsiClp/libOsiClp.la \
25  $(CLPLIB_DEPENDENCIES) $(OSICLP_DEPENDENCIES) $(OSITESTS_DEPENDENCIES)
26
27AM_CPPFLAGS = \
28        -I`$(CYGPATH_W) $(srcdir)/../src` \
29        -I`$(CYGPATH_W) $(srcdir)/../src/OsiClp` \
30        $(COINUTILS_CFLAGS) $(OSI_CFLAGS) $(OSITESTS_CFLAGS)
31
32testdepend =  osiUnitTest$(EXEEXT)
33endif
34
35########################################################################
36#                         unitTest for Clp                             #
37########################################################################
38
39unittestflags =
40osiunittestflags =
41if COIN_HAS_SAMPLE
42  unittestflags += -dirSample `$(CYGPATH_W) $(SAMPLE_DATA)`
43  osiunittestflags += -mpsDir=`$(CYGPATH_W) $(SAMPLE_DATA)`
44endif
45unittestflags += -unitTest
46if COIN_HAS_NETLIB
47  unittestflags += -dirNetlib `$(CYGPATH_W) $(NETLIB_DATA)` -netlib
48  osiunittestflags += -netlibDir=`$(CYGPATH_W) $(NETLIB_DATA)` -testOsiSolverInterface
49endif
50
51# We are using the CLP solver executable to do the unit test
52test: ../src/clp$(EXEEXT) $(testdepend)
53        ../src/clp$(EXEEXT) $(unittestflags) || exit 1
54        if test -e osiUnitTest$(EXEEXT) ; then \
55          ./osiUnitTest$(EXEEXT) $(osiunittestflags) || exit 1 ; \
56        fi
57
58.PHONY: test
59
60########################################################################
61#                          Cleaning stuff                              #
62########################################################################
63
64# Here we list everything that is not generated by the compiler, e.g.,
65# output files of a program
66
67DISTCLEANFILES = yy.mps xx.mps
Note: See TracBrowser for help on using the repository browser.