| 1 |
# Copyright (C) 2006 International Business Machines and others. |
| 2 |
# All Rights Reserved. |
| 3 |
# This file is distributed under the Eclipse Public License. |
| 4 |
|
| 5 |
## $Id$ |
| 6 |
|
| 7 |
# Author: Andreas Waechter IBM 2006-04-13 |
| 8 |
|
| 9 |
AUTOMAKE_OPTIONS = foreign |
| 10 |
|
| 11 |
######################################################################## |
| 12 |
# unitTest for Bonmin # |
| 13 |
######################################################################## |
| 14 |
|
| 15 |
noinst_PROGRAMS = |
| 16 |
|
| 17 |
if COIN_HAS_ASL |
| 18 |
noinst_PROGRAMS += unitTest |
| 19 |
endif |
| 20 |
|
| 21 |
noinst_PROGRAMS += CppExample |
| 22 |
|
| 23 |
unitTest_SOURCES = \ |
| 24 |
InterfaceTest.cpp |
| 25 |
|
| 26 |
# List libraries that need to be linked in |
| 27 |
# libs with AMPL interface have to come before ASLLIB |
| 28 |
unitTest_LDADD = |
| 29 |
unitTest_DEPENDENCIES = |
| 30 |
|
| 31 |
if COIN_HAS_ASL |
| 32 |
unitTest_LDADD += ../src/CbcBonmin/libbonminampl.la $(ASL_LIBS) |
| 33 |
unitTest_DEPENDENCIES += ../src/CbcBonmin/libbonminampl.la $(ASL_DEPENDENCIES) |
| 34 |
endif |
| 35 |
|
| 36 |
unitTest_LDADD += ../src/CbcBonmin/libbonmin.la $(BONMINLIB_LIBS) |
| 37 |
unitTest_DEPENDENCIES += ../src/CbcBonmin/libbonmin.la $(BONMINLIB_DEPENDENCIES) |
| 38 |
|
| 39 |
|
| 40 |
######################################################################### |
| 41 |
## Example C++ program # |
| 42 |
######################################################################### |
| 43 |
|
| 44 |
CppExample_SOURCES = MyBonmin.cpp MyTMINLP.cpp MyTMINLP.hpp |
| 45 |
|
| 46 |
# List libraries that need to be linked in |
| 47 |
CppExample_LDADD = ../src/CbcBonmin/libbonmin.la $(BONMINLIB_LIBS) |
| 48 |
CppExample_DEPENDENCIES = ../src/CbcBonmin/libbonmin.la $(BONMINLIB_DEPENDENCIES) |
| 49 |
|
| 50 |
# Here list all include flags, relative to this "srcdir" directory. This |
| 51 |
# "cygpath" stuff is necessary to compile with native compilers on Cygwin |
| 52 |
AM_CPPFLAGS = \ |
| 53 |
-I`$(CYGPATH_W) $(srcdir)/../src/Apps` \ |
| 54 |
-I`$(CYGPATH_W) $(srcdir)/../src/Interfaces` \ |
| 55 |
-I`$(CYGPATH_W) $(srcdir)/../src/Interfaces/Ipopt` \ |
| 56 |
-I`$(CYGPATH_W) $(srcdir)/../src/Interfaces/Filter` \ |
| 57 |
-I`$(CYGPATH_W) $(srcdir)/../src/Interfaces/Ampl` \ |
| 58 |
-I`$(CYGPATH_W) $(srcdir)/../src/CbcBonmin` \ |
| 59 |
-I`$(CYGPATH_W) $(srcdir)/../src/Algorithms` \ |
| 60 |
-I`$(CYGPATH_W) $(srcdir)/../src/Algorithms/Branching` \ |
| 61 |
-I`$(CYGPATH_W) $(srcdir)/../src/Algorithms/OaGenerators` \ |
| 62 |
-I`$(CYGPATH_W) $(srcdir)/../src/Algorithms/Ampl` \ |
| 63 |
$(BONMINLIB_CFLAGS) $(ASL_CFLAGS) |
| 64 |
|
| 65 |
# This line is necessary to allow VPATH compilation |
| 66 |
DEFAULT_INCLUDES = -I. -I`$(CYGPATH_W) $(srcdir)` -I$(top_builddir)/src/Interfaces |
| 67 |
|
| 68 |
test: unitTest$(EXEEXT) CppExample$(EXEEXT) |
| 69 |
./unitTest$(EXEEXT) |
| 70 |
./CppExample$(EXEEXT) |
| 71 |
|
| 72 |
.PHONY: test |
| 73 |
|
| 74 |
######################################################################## |
| 75 |
# Cleaning stuff # |
| 76 |
######################################################################## |
| 77 |
|
| 78 |
# Here we list everything that is not generated by the compiler, e.g., |
| 79 |
# output files of a program |
| 80 |
|
| 81 |
DISTCLEANFILES = MyBonmin.cpp MyTMINLP.cpp MyTMINLP.hpp |