source: trunk/CoinMP/test/Makefile.am @ 158

Last change on this file since 158 was 158, checked in by bjarni, 11 years ago

Merging stable/1.2 back into trunk (rev 157)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 4.6 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 158 2008-09-23 05:28:55Z bjarni $
6
7# Author:  Andreas Waechter           IBM    2006-04-13
8
9AUTOMAKE_OPTIONS = foreign
10
11########################################################################
12#                         unitTest for CoinMP                          #
13########################################################################
14
15noinst_PROGRAMS = unitTest
16
17unitTest_SOURCES = unitTest.cpp
18
19# List libraries of COIN projects
20unitTest_LDADD = ../src/libCoinMP.la
21
22# Here list all include flags, relative to this "srcdir" directory.  This
23# "cygpath" stuff is necessary to compile with native compilers on Windows
24AM_CPPFLAGS = \
25        -I`$(CYGPATH_W) $(COINUTILSSRCDIR)/src` \
26        -I`$(CYGPATH_W) $(COINUTILSOBJDIR)/inc` \
27        -I`$(CYGPATH_W) $(OSISRCDIR)/src` \
28        -I`$(CYGPATH_W) $(OSIOBJDIR)/inc` \
29        -I`$(CYGPATH_W) $(srcdir)/../src`
30
31# This line is necessary to allow VPATH compilation with MS compilers
32# on Cygwin
33DEFAULT_INCLUDES = -I. -I`$(CYGPATH_W) $(srcdir)` -I$(top_builddir)/inc
34
35# Depending of what solvers are available, we add the corresponding files,
36# libraries and include dirs
37
38if COIN_HAS_CBC
39  AM_CPPFLAGS += -I`$(CYGPATH_W) $(CBCSRCDIR)/src` \
40        -I`$(CYGPATH_W) $(OSISRCDIR)/src/OsiCbc`
41  unitTest_LDADD += $(OSIOBJDIR)/src/OsiCbc/libOsiCbc.la \
42        $(CBCOBJDIR)/src/libCbcSolver.la $(CBCOBJDIR)/src/libCbc.la
43  LIBS += `cat $(CBCOBJDIR)/cbc_addlibs.txt`
44endif
45
46if COIN_HAS_CGL
47  unitTest_LDADD += $(CGLOBJDIR)/src/libCgl.la
48  LIBS += `cat $(CGLOBJDIR)/cgl_addlibs.txt`
49endif
50
51if COIN_HAS_CLP
52  AM_CPPFLAGS += -I`$(CYGPATH_W) $(CLPSRCDIR)/src` \
53        -I`$(CYGPATH_W) $(CLPOBJDIR)/inc` \
54        -I`$(CYGPATH_W) $(OSISRCDIR)/src/OsiClp`
55  unitTest_LDADD += $(OSIOBJDIR)/src/OsiClp/libOsiClp.la \
56        $(CLPOBJDIR)/src/libClp.la
57  LIBS  += `cat $(CLPOBJDIR)/clp_addlibs.txt`
58endif
59
60if COIN_HAS_CPX
61  AM_CPPFLAGS += -I`$(CYGPATH_W) $(CPXINCDIR)` \
62        -I`$(CYGPATH_W) $(OSISRCDIR)/src/OsiCpx`
63  unitTest_LDADD += $(OSIOBJDIR)/src/OsiCpx/libOsiCpx.la
64endif
65
66if COIN_HAS_DYLP
67  AM_CPPFLAGS += -I`$(CYGPATH_W) $(DYLPSRCDIR)/src/Dylp` \
68        -I`$(CYGPATH_W) $(DYLPSRCDIR)/src/DylpStdLib` \
69        -I`$(CYGPATH_W) $(DYLPOBJDIR)/inc` \
70        -I`$(CYGPATH_W) $(OSISRCDIR)/src/OsiDylp`
71  unitTest_LDADD += $(OSIOBJDIR)/src/OsiDylp/libOsiDylp.la \
72        $(DYLPOBJDIR)/src/Dylp/libDylp.la
73  LIBS += `cat $(DYLPOBJDIR)/dylp_addlibs.txt`
74endif
75
76if COIN_HAS_FMP
77  AM_CPPFLAGS += -I`$(CYGPATH_W) $(OSISRCDIR)/src/OsiFmp`
78  unitTest_LDADD += $(OSIOBJDIR)/src/OsiFmp/libOsiFmp.la
79endif
80
81if COIN_HAS_GLPK
82  AM_CPPFLAGS += -I`$(CYGPATH_W) $(GLPKINCDIR)` \
83        -I`$(CYGPATH_W) $(OSISRCDIR)/src/OsiGlpk`
84  unitTest_LDADD += $(OSIOBJDIR)/src/OsiGlpk/libOsiGlpk.la
85endif
86
87if COIN_HAS_MSK
88  AM_CPPFLAGS += -I`$(CYGPATH_W) $(MSKINCDIR)` \
89        -I`$(CYGPATH_W) $(OSISRCDIR)/src/OsiMsk`
90  unitTest_LDADD += $(OSIOBJDIR)/src/OsiMsk/libOsiMsk.la
91endif
92
93if COIN_HAS_OSL
94  AM_CPPFLAGS += -I`$(CYGPATH_W) $(OSLINCDIR)` \
95        -I`$(CYGPATH_W) $(OSISRCDIR)/src/OsiOsl`
96  unitTest_LDADD += $(OSIOBJDIR)/src/OsiOsl/libOsiOsl.la
97endif
98
99if COIN_HAS_SPX
100  AM_CPPFLAGS += -I`$(CYGPATH_W) $(SPXINCDIR)` \
101        -I`$(CYGPATH_W) $(OSISRCDIR)/src/OsiSpx`
102  unitTest_LDADD += $(OSIOBJDIR)/src/OsiSpx/libOsiSpx.la
103endif
104
105if COIN_HAS_SYMPHONY
106  AM_CPPFLAGS += -I`$(CYGPATH_W) $(SYMPHONYSRCDIR)/src` \
107        -I`$(CYGPATH_W) $(OSISRCDIR)/src/OsiSym`
108  unitTest_LDADD += $(OSIOBJDIR)/src/OsiSym/libOsiSym.la \
109        $(SYMPHONYOBJDIR)/src/libSym.la
110  LIBS += `cat $(SYMPHONYOBJDIR)/sym_addlibs.txt`
111endif
112
113if COIN_HAS_VOL
114  AM_CPPFLAGS += -I`$(CYGPATH_W) $(VOLSRCDIR)/src` \
115        -I`$(CYGPATH_W) $(OSISRCDIR)/src/OsiVol`
116  unitTest_LDADD += $(OSIOBJDIR)/src/OsiVol/libOsiVol.la \
117        $(VOLOBJDIR)/src/libVol.la
118  LIBS += `cat $(VOLOBJDIR)/vol_addlibs.txt`
119endif
120
121if COIN_HAS_XPR
122  AM_CPPFLAGS += -I`$(CYGPATH_W) $(XPRINCDIR)` \
123        -I`$(CYGPATH_W) $(OSISRCDIR)/src/OsiXpr`
124  unitTest_LDADD += $(OSIOBJDIR)/src/OsiXpr/libOsiXpr.la
125endif
126
127if COIN_HAS_ASL
128  AM_CPPFLAGS += $(ASL_CPPFLAGS) -DCOIN_HAS_ASL
129  unitTest_LDADD += $(ASLLIB)
130endif
131
132# Finally the Coin library (many of the above need it)
133unitTest_LDADD += \
134        $(OSIOBJDIR)/src/libOsi.la \
135        $(COINUTILSOBJDIR)/src/libCoinUtils.la
136
137# List additional libraries
138LIBS += `cat $(OSIOBJDIR)/osi_addlibs.txt`\
139        `cat $(COINUTILSOBJDIR)/coinutils_addlibs.txt` \
140        $(ADDLIBS)
141
142test: unitTest$(EXEEXT)
143        ./unitTest$(EXEEXT)
144
145.PHONY: test
146
147########################################################################
148#                          Cleaning stuff                              #
149########################################################################
150
151# Here we list everything that is not generated by the compiler, e.g.,
152# output files of a program
153
154DISTCLEANFILES =
Note: See TracBrowser for help on using the repository browser.