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

Last change on this file since 42 was 42, checked in by jpfasano, 13 years ago

Working on building on linux

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 4.4 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 42 2006-07-24 14:50:58Z jpfasano $
6
7# Author:  Andreas Waechter           IBM    2006-04-13
8
9AUTOMAKE_OPTIONS = foreign
10
11########################################################################
12#                         unitTest for FlopCpp                         #
13########################################################################
14
15noinst_PROGRAMS = unitTest
16
17unitTest_SOURCES = unitTest.cpp
18
19# List libraries of COIN projects
20unitTest_LDADD = ../src/libFlopCpp.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
38# Depending of what solvers are available, we add the corresponding files,
39# libraries and include dirs
40
41if COIN_HAS_CLP
42  AM_CPPFLAGS += -I`$(CYGPATH_W) $(CLPSRCDIR)/src` \
43        -I`$(CYGPATH_W) $(CLPOBJDIR)/inc` \
44        -I`$(CYGPATH_W) $(OSISRCDIR)/src/OsiClp`
45  unitTest_LDADD += $(OSIOBJDIR)/src/OsiClp/libOsiClp.la \
46        $(CLPOBJDIR)/src/libClp.la
47  LIBS  += `cat $(CLPOBJDIR)/clp_addlibs.txt`
48endif
49
50if COIN_HAS_CBC
51  AM_CPPFLAGS += -I`$(CYGPATH_W) $(CBCSRCDIR)/src` \
52        -I`$(CYGPATH_W) $(OSISRCDIR)/src/OsiCbc`
53  unitTest_LDADD += $(OSIOBJDIR)/src/OsiCbc/libOsiCbc.la \
54        $(CBCOBJDIR)/src/libCbc.la
55  LIBS += `cat $(CBCOBJDIR)/cbc_addlibs.txt`
56endif
57
58if COIN_HAS_CGL
59  unitTest_LDADD += $(CGLOBJDIR)/src/libCgl.la
60  LIBS += `cat $(CGLOBJDIR)/cgl_addlibs.txt`
61endif
62
63#if COIN_HAS_CPX
64#  AM_CPPFLAGS += -I`$(CYGPATH_W) $(CPXINCDIR)` \
65#       -I`$(CYGPATH_W) $(OSISRCDIR)/src/OsiCpx`
66#  unitTest_LDADD += $(OSIOBJDIR)/src/OsiCpx/libOsiCpx.la
67#endif
68
69#if COIN_HAS_DYLP
70#  AM_CPPFLAGS += -I`$(CYGPATH_W) $(DYLPSRCDIR)/src/Dylp` \
71#       -I`$(CYGPATH_W) $(DYLPSRCDIR)/src/DylpStdLib` \
72#       -I`$(CYGPATH_W) $(DYLPOBJDIR)/inc` \
73#       -I`$(CYGPATH_W) $(OSISRCDIR)/src/OsiDylp`
74#  unitTest_LDADD += $(OSIOBJDIR)/src/OsiDylp/libOsiDylp.la \
75#       $(DYLPOBJDIR)/src/Dylp/libDylp.la
76#  LIBS += `cat $(DYLPOBJDIR)/dylp_addlibs.txt`
77#endif
78
79#if COIN_HAS_FMP
80#  AM_CPPFLAGS += -I`$(CYGPATH_W) $(OSISRCDIR)/src/OsiFmp`
81#  unitTest_LDADD += $(OSIOBJDIR)/src/OsiFmp/libOsiFmp.la
82#endif
83
84#if COIN_HAS_GLPK
85#  AM_CPPFLAGS += -I`$(CYGPATH_W) $(GLPKINCDIR)` \
86#       -I`$(CYGPATH_W) $(OSISRCDIR)/src/OsiGlpk`
87#  unitTest_LDADD += $(OSIOBJDIR)/src/OsiGlpk/libOsiGlpk.la
88#endif
89
90#if COIN_HAS_MSK
91#  AM_CPPFLAGS += -I`$(CYGPATH_W) $(MSKINCDIR)` \
92#       -I`$(CYGPATH_W) $(OSISRCDIR)/src/OsiMsk`
93#  unitTest_LDADD += $(OSIOBJDIR)/src/OsiMsk/libOsiMsk.la
94#endif
95
96#if COIN_HAS_OSL
97#  AM_CPPFLAGS += -I`$(CYGPATH_W) $(OSLINCDIR)` \
98#       -I`$(CYGPATH_W) $(OSISRCDIR)/src/OsiOsl`
99#  unitTest_LDADD += $(OSIOBJDIR)/src/OsiOsl/libOsiOsl.la
100#endif
101
102#if COIN_HAS_SPX
103#  AM_CPPFLAGS += -I`$(CYGPATH_W) $(SPXINCDIR)` \
104#       -I`$(CYGPATH_W) $(OSISRCDIR)/src/OsiSpx`
105#  unitTest_LDADD += $(OSIOBJDIR)/src/OsiSpx/libOsiSpx.la
106#endif
107
108#if COIN_HAS_SYM
109#  AM_CPPFLAGS += -I`$(CYGPATH_W) $(SYMSRCDIR)/src` \
110#       -I`$(CYGPATH_W) $(OSISRCDIR)/src/OsiSym`
111#  unitTest_LDADD += $(OSIOBJDIR)/src/OsiSym/libOsiSym.la \
112#       $(SYMOBJDIR)/src/libSym.la
113#  LIBS += `cat $(SYMOBJDIR)/sym_addlibs.txt`
114#endif
115
116#if COIN_HAS_XPR
117#  AM_CPPFLAGS += -I`$(CYGPATH_W) $(XPRINCDIR)` \
118#       -I`$(CYGPATH_W) $(OSISRCDIR)/src/OsiXpr`
119#  unitTest_LDADD += $(OSIOBJDIR)/src/OsiXpr/libOsiXpr.la
120#endif
121
122# Finally the Coin library (many of the above need it)
123unitTest_LDADD += \
124        $(OSIOBJDIR)/src/libOsi.la \
125        $(COINUTILSOBJDIR)/src/libCoinUtils.la
126
127# List additional libraries
128LIBS += `cat $(OSIOBJDIR)/osi_addlibs.txt`\
129        `cat $(COINUTILSOBJDIR)/coinutils_addlibs.txt` \
130        $(ADDLIBS)
131
132test: unitTest$(EXEEXT)
133        ./unitTest$(EXEEXT)
134
135.PHONY: test
136
137########################################################################
138#                          Cleaning stuff                              #
139########################################################################
140
141# Here we list everything that is not generated by the compiler, e.g.,
142# output files of a program
143
144DISTCLEANFILES =
Note: See TracBrowser for help on using the repository browser.