source: trunk/Bonmin/test/Makefile.am @ 1

Last change on this file since 1 was 1, checked in by andreasw, 13 years ago

imported initial code

  • Property svn:eol-style set to native
  • Property svn:keywords set to Authors Date Id Revision
File size: 3.1 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 1 2006-07-11 14:59:53Z andreasw $
6
7# Author:  Andreas Waechter           IBM    2006-04-13
8
9AUTOMAKE_OPTIONS = foreign
10
11########################################################################
12#                       unitTest for Bonmin                            #
13########################################################################
14
15noinst_PROGRAMS = unitTest CppExample
16
17unitTest_SOURCES = \
18        InterfaceTest.cpp
19
20# List libraries of COIN projects
21unitTest_LDADD = ../src/Apps/libbonmin.la \
22        ../src/BonminAmplInterface/libamplinterface.la \
23        $(IPOPTOBJDIR)/src/Apps/AmplSolver/libamplinterface.la \
24        $(IPOPTLIBS) \
25        $(ASLLIB) \
26        $(LIBCBCCOPY) \
27        $(COINLIBS) \
28        $(ADDLIBS)
29
30#########################################################################
31##                      Example C++ program                             #
32#########################################################################
33
34CppExample_SOURCES = MyBonmin.cpp  MyTMINLP.cpp  MyTMINLP.hpp
35
36# List libraries of COIN projects
37CppExample_LDADD = ../src/Apps/libbonmin.la \
38        $(IPOPTLIBS) \
39        $(LIBCBCCOPY) \
40        $(COINLIBS) \
41        $(ADDLIBS)
42
43COINLIBS = \
44        $(CBCOBJDIR)/src/libCbc.la \
45        $(CGLOBJDIR)/src/libCgl.la \
46        $(OSIOBJDIR)/src/OsiClp/libOsiClp.la \
47        $(OSIOBJDIR)/src/libOsi.la \
48        $(CLPOBJDIR)/src/libClp.la \
49        $(COINUTILSOBJDIR)/src/libCoinUtils.la
50
51if COIN_HAS_CPX
52  COINLIBS += \
53        $(OSIOBJDIR)/src/OsiCpx/libOsiCpx.la \
54        $(COINUTILSOBJDIR)/src/libCoinUtils.la \
55        $(CPXLIB)
56endif
57
58IPOPTLIBS = \
59        $(IPOPTOBJDIR)/src/Interfaces/libipopt.la
60
61# List additional libraries
62LIBS += `cat $(IPOPTOBJDIR)/src/Interfaces/ipopt_addlibs_cpp.txt`
63
64# Here list all include flags, relative to this "srcdir" directory.  This
65# "cygpath" stuff is necessary to compile with native compilers on Cygwin
66AM_CPPFLAGS = \
67        -I`$(CYGPATH_W) $(srcdir)/../src/Apps` \
68        -I`$(CYGPATH_W) $(srcdir)/../src/IpoptInterface` \
69        -I`$(CYGPATH_W) $(srcdir)/../src/BonminAmplInterface` \
70        -I`$(CYGPATH_W) $(srcdir)/../src/CbcBonmin` \
71        -I`$(CYGPATH_W) $(IPOPTOBJDIR)/inc` \
72        -I`$(CYGPATH_W) $(IPOPTSRCDIR)/src/Common` \
73        -I`$(CYGPATH_W) $(IPOPTSRCDIR)/src/Interfaces` \
74        -I`$(CYGPATH_W) $(IPOPTSRCDIR)/src/LinAlg` \
75        -I`$(CYGPATH_W) $(COINUTILSSRCDIR)/src` \
76        -I`$(CYGPATH_W) $(OSISRCDIR)/src` \
77        -I`$(CYGPATH_W) $(OSISRCDIR)/src/OsiClp` \
78        -I`$(CYGPATH_W) $(CLPOBJDIR)/inc` \
79        -I`$(CYGPATH_W) $(CLPSRCDIR)/src`
80
81# This line is necessary to allow VPATH compilation with MS compilers
82# on Cygwin
83DEFAULT_INCLUDES = -I. -I`$(CYGPATH_W) $(srcdir)` -I$(top_builddir)/inc
84
85test: unitTest$(EXEEXT) CppExample$(EXEEXT)
86        ./unitTest$(EXEEXT)
87        ./CppExample$(EXEEXT)
88
89.PHONY: test
90
91########################################################################
92#                          Cleaning stuff                              #
93########################################################################
94
95# Here we list everything that is not generated by the compiler, e.g.,
96# output files of a program
97
98DISTCLEANFILES = MyBonmin.cpp  MyTMINLP.cpp  MyTMINLP.hpp
Note: See TracBrowser for help on using the repository browser.