source: trunk/Cbc/test/Makefile.am @ 1432

Last change on this file since 1432 was 1052, checked in by forrest, 11 years ago

BSP changes from 1028 to 1049

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 4.5 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 1052 2008-08-25 15:05:52Z bjarni $
6
7# Author:  Andreas Waechter           IBM    2006-04-13
8
9AUTOMAKE_OPTIONS = foreign
10
11########################################################################
12#                         unitTest for Cbc                             #
13########################################################################
14
15CBC_TEST_TGTS = gamstests
16
17if COIN_HAS_CLP
18  CBC_TEST_TGTS += test_cbc
19endif
20if CBC_BUILD_CBC_GENERIC
21  CBC_TEST_TGTS += test_cbc_generic
22endif
23
24# We are using the solver executables to do the unit test
25
26test: $(CBC_TEST_TGTS)
27
28test_cbc: ../src/cbc$(EXEEXT)
29        if test x"$(DIRMIPLIB)" != x; then \
30                MIPLIBARG="-dirMiplib $(DIRMIPLIB) -miplib"; \
31        fi; \
32        if test x"$(DIRSAMPLE)" != x; then \
33                SAMPLEARG="-dirSample $(DIRSAMPLE)"; \
34        fi; \
35        ../src/cbc$(EXEEXT) $$SAMPLEARG -unitTest $$MIPLIBARG
36
37test_cbc_generic: ../src/cbc-generic$(EXEEXT)
38        echo "A minimal test is all that cbc-generic can manage just yet."
39        ../src/cbc-generic$(EXEEXT) \
40            -directory ../../Data/Sample -import p0033.mps -branch
41           
42gamstests: gamsTest$(EXEEXT)
43        ./gamsTest$(EXEEXT)
44
45.PHONY: test
46
47bin_PROGRAMS = gamsTest
48gamsTest_SOURCES = gamsTest.cpp
49gamsTest_LDADD = ../src/libCbcSolver.la ../src/libCbc.la \
50  $(CGLOBJDIR)/src/libCgl.la
51gamsTest_LDFLAGS = -rpath $(libdir)
52LIBS = `cat $(CBCOBJDIR)/cbc_addlibs.txt` $(ADDLIBS)
53
54AM_CPPFLAGS = -I`$(CYGPATH_W) $(srcdir)/../src` \
55        -I`$(CYGPATH_W) $(COINUTILSSRCDIR)/src` \
56        -I`$(CYGPATH_W) $(COINUTILSOBJDIR)/inc` \
57        -I`$(CYGPATH_W) $(OSISRCDIR)/src` \
58        -I`$(CYGPATH_W) $(OSIOBJDIR)/inc`
59
60if COIN_HAS_CLP
61  AM_CPPFLAGS += -I`$(CYGPATH_W) $(CLPSRCDIR)/src` \
62        -I`$(CYGPATH_W) $(OSISRCDIR)/src/OsiClp` \
63        -I`$(CYGPATH_W) $(CLPOBJDIR)/inc`
64  gamsTest_LDADD += $(OSIOBJDIR)/src/OsiClp/libOsiClp.la \
65        $(CLPOBJDIR)/src/libClp.la
66  LIBS  += `cat $(CLPOBJDIR)/clp_addlibs.txt`
67endif
68
69if COIN_HAS_CPX
70  AM_CPPFLAGS += -I`$(CYGPATH_W) $(CPXINCDIR)` \
71        -I`$(CYGPATH_W) $(OSISRCDIR)/src/OsiCpx`
72  gamsTest_LDADD += $(OSIOBJDIR)/src/OsiCpx/libOsiCpx.la
73endif
74
75if COIN_HAS_DYLP
76  AM_CPPFLAGS += -I`$(CYGPATH_W) $(DYLPSRCDIR)/src/DylpStdLib` \
77  -I`$(CYGPATH_W) $(DYLPSRCDIR)/src/Dylp` \
78  -I`$(CYGPATH_W) $(DYLPOBJDIR)/inc` \
79        -I`$(CYGPATH_W) $(OSISRCDIR)/src/OsiDylp`
80  gamsTest_LDADD += $(OSIOBJDIR)/src/OsiDylp/libOsiDylp.la \
81        $(DYLPOBJDIR)/src/Dylp/libDylp.la
82  LIBS += `cat $(DYLPOBJDIR)/dylp_addlibs.txt`
83endif
84
85if COIN_HAS_FMP
86  AM_CPPFLAGS += -I`$(CYGPATH_W) $(OSISRCDIR)/src/OsiFmp`
87  gamsTest_LDADD += $(OSIOBJDIR)/src/OsiFmp/libOsiFmp.la
88endif
89
90if COIN_HAS_GLPK
91  AM_CPPFLAGS += -I`$(CYGPATH_W) $(GLPKINCDIR)` \
92        -I`$(CYGPATH_W) $(OSISRCDIR)/src/OsiGlpk`
93  gamsTest_LDADD += $(OSIOBJDIR)/src/OsiGlpk/libOsiGlpk.la
94endif
95
96if COIN_HAS_MSK
97  AM_CPPFLAGS += -I`$(CYGPATH_W) $(MSKINCDIR)` \
98        -I`$(CYGPATH_W) $(OSISRCDIR)/src/OsiMsk`
99  gamsTest_LDADD += $(OSIOBJDIR)/src/OsiMsk/libOsiMsk.la
100endif
101
102if COIN_HAS_OSL
103  AM_CPPFLAGS += -I`$(CYGPATH_W) $(OSLINCDIR)` \
104        -I`$(CYGPATH_W) $(OSISRCDIR)/src/OsiOsl`
105  gamsTest_LDADD += $(OSIOBJDIR)/src/OsiOsl/libOsiOsl.la
106endif
107
108if COIN_HAS_SPX
109  AM_CPPFLAGS += -I`$(CYGPATH_W) $(SPXINCDIR)` \
110        -I`$(CYGPATH_W) $(OSISRCDIR)/src/OsiSpx`
111  gamsTest_LDADD += $(OSIOBJDIR)/src/OsiSpx/libOsiSpx.la
112endif
113
114if COIN_HAS_SYMPHONY
115  AM_CPPFLAGS += -I`$(CYGPATH_W) $(SYMPHONYSRCDIR)/src` \
116        -I`$(CYGPATH_W) $(OSISRCDIR)/src/OsiSym`
117  gamsTest_LDADD += $(OSIOBJDIR)/src/OsiSym/libOsiSym.la \
118        $(SYMPHONYOBJDIR)/src/libSym.la
119  LIBS += `cat $(SYMPHONYOBJDIR)/sym_addlibs.txt`
120endif
121
122if COIN_HAS_VOL
123  AM_CPPFLAGS += -I`$(CYGPATH_W) $(VOLSRCDIR)/src` \
124        -I`$(CYGPATH_W) $(OSISRCDIR)/src/OsiVol`
125  gamsTest_LDADD += $(OSIOBJDIR)/src/OsiVol/libOsiVol.la \
126        $(VOLOBJDIR)/src/libVol.la
127  LIBS += `cat $(VOLOBJDIR)/vol_addlibs.txt`
128endif
129
130if COIN_HAS_XPR
131  AM_CPPFLAGS += -I`$(CYGPATH_W) $(XPRINCDIR)` \
132        -I`$(CYGPATH_W) $(OSISRCDIR)/src/OsiXpr`
133  gamsTest_LDADD += $(OSIOBJDIR)/src/OsiXpr/libOsiXpr.la
134endif
135
136if COIN_HAS_ASL
137  AM_CPPFLAGS += $(ASL_CPPFLAGS) -DCOIN_HAS_ASL
138  gamsTest_LDADD += $(ASLLIB)
139endif
140
141gamsTest_LDADD += $(OSIOBJDIR)/src/libOsi.la \
142        $(COINUTILSOBJDIR)/src/libCoinUtils.la
143LIBS += `cat $(COINUTILSOBJDIR)/coinutils_addlibs.txt`
144
145########################################################################
146#                          Cleaning stuff                              #
147########################################################################
148
149# Here we list everything that is not generated by the compiler, e.g.,
150# output files of a program
151
152DISTCLEANFILES = yy.mps xx.mps
Note: See TracBrowser for help on using the repository browser.