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

Last change on this file since 1055 was 1055, checked in by stefan, 11 years ago

try to fix my last commit

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