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

Last change on this file since 1644 was 1644, checked in by stefan, 9 years ago

list .la files in xxx-uninstalled.pc files; setup binary dependencies with _DEPENDENCIES variable; rerun autotools

  • 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 Common Public License.
4
5## $Id: Makefile.am 1644 2010-12-04 15:53:25Z 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 = $(COINUTILS_CFLAGS) $(OSI_CFLAGS) $(OSITESTS_CFLAGS) \
28        -I`$(CYGPATH_W) $(srcdir)/../src` \
29        -I`$(CYGPATH_W) $(srcdir)/../src/OsiClp`
30
31testdepend =  osiUnitTest$(EXEEXT)
32endif
33
34########################################################################
35#                         unitTest for Clp                             #
36########################################################################
37
38unittestflags =
39osiunittestflags =
40if COIN_HAS_SAMPLE
41  unittestflags += -dirSample `$(CYGPATH_W) $(SAMPLE_DATA)`
42  osiunittestflags += -mpsDir=`$(CYGPATH_W) $(SAMPLE_DATA)`
43endif
44unittestflags += -unitTest
45if COIN_HAS_NETLIB
46  unittestflags += -dirNetlib `$(CYGPATH_W) $(NETLIB_DATA)` -netlib
47  osiunittestflags += -netlibDir=`$(CYGPATH_W) $(NETLIB_DATA)` -testOsiSolverInterface
48endif
49
50# We are using the CLP solver executable to do the unit test
51test: ../src/clp$(EXEEXT) $(testdepend)
52        ../src/clp$(EXEEXT) $(unittestflags) || exit 1
53        if test -e osiUnitTest$(EXEEXT) ; then \
54          ./osiUnitTest$(EXEEXT) $(osiunittestflags) || exit 1 ; \
55        fi
56
57.PHONY: test
58
59########################################################################
60#                          Cleaning stuff                              #
61########################################################################
62
63# Here we list everything that is not generated by the compiler, e.g.,
64# output files of a program
65
66DISTCLEANFILES = yy.mps xx.mps
Note: See TracBrowser for help on using the repository browser.