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 forrest $ |
---|
6 | |
---|
7 | # Author: Andreas Waechter IBM 2006-04-13 |
---|
8 | |
---|
9 | AUTOMAKE_OPTIONS = foreign |
---|
10 | |
---|
11 | ######################################################################## |
---|
12 | # unitTest for OsiClp # |
---|
13 | ######################################################################## |
---|
14 | |
---|
15 | if COIN_HAS_OSITESTS |
---|
16 | |
---|
17 | noinst_PROGRAMS = osiUnitTest |
---|
18 | |
---|
19 | osiUnitTest_SOURCES = osiUnitTest.cpp OsiClpSolverInterfaceTest.cpp |
---|
20 | |
---|
21 | osiUnitTest_LDADD = ../src/libClp.la ../src/OsiClp/libOsiClp.la \ |
---|
22 | $(CLPLIB_LIBS) $(OSICLP_LIBS) $(OSITESTS_LIBS) |
---|
23 | |
---|
24 | osiUnitTest_DEPENDENCIES = ../src/libClp.la ../src/OsiClp/libOsiClp.la \ |
---|
25 | $(CLPLIB_DEPENDENCIES) $(OSICLP_DEPENDENCIES) $(OSITESTS_DEPENDENCIES) |
---|
26 | |
---|
27 | AM_CPPFLAGS = \ |
---|
28 | -I`$(CYGPATH_W) $(srcdir)/../src` \ |
---|
29 | -I`$(CYGPATH_W) $(srcdir)/../src/OsiClp` \ |
---|
30 | $(COINUTILS_CFLAGS) $(OSI_CFLAGS) $(OSITESTS_CFLAGS) |
---|
31 | |
---|
32 | testdepend = osiUnitTest$(EXEEXT) |
---|
33 | endif |
---|
34 | |
---|
35 | ######################################################################## |
---|
36 | # unitTest for Clp # |
---|
37 | ######################################################################## |
---|
38 | |
---|
39 | unittestflags = |
---|
40 | osiunittestflags = |
---|
41 | if COIN_HAS_SAMPLE |
---|
42 | unittestflags += -dirSample `$(CYGPATH_W) $(SAMPLE_DATA)` |
---|
43 | osiunittestflags += -mpsDir=`$(CYGPATH_W) $(SAMPLE_DATA)` |
---|
44 | endif |
---|
45 | unittestflags += -unitTest |
---|
46 | if COIN_HAS_NETLIB |
---|
47 | unittestflags += -dirNetlib `$(CYGPATH_W) $(NETLIB_DATA)` -netlib |
---|
48 | osiunittestflags += -netlibDir=`$(CYGPATH_W) $(NETLIB_DATA)` -testOsiSolverInterface |
---|
49 | endif |
---|
50 | |
---|
51 | # We are using the CLP solver executable to do the unit test |
---|
52 | test: ../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 | |
---|
67 | DISTCLEANFILES = yy.mps xx.mps |
---|