source: trunk/CoinMP/src/Makefile.am @ 346

Last change on this file since 346 was 346, checked in by bjarni, 10 years ago

Add CoinProblem?.c CoinResult?.c and CoinSolver?.c src/Makefile.am and run autotools/configure

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 3.7 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 346 2009-11-12 05:27:49Z bjarni $
6
7# Author:  Andreas Waechter           IBM    2006-04-13
8
9AUTOMAKE_OPTIONS = foreign
10
11########################################################################
12#                               libCoinMP                              #
13########################################################################
14
15# Name of the library compiled in this directory.  We want it to be installed
16# in the 'lib' directory
17lib_LTLIBRARIES = libCoinMP.la
18
19# List all source files for this library, including headers
20libCoinMP_la_SOURCES = \
21        CoinMP.cpp CoinMP.h \
22        CoinProblem.c CoinProblem.h \
23        CoinResult.c CoinResult.h \
24        CoinSolver.c CoinSolver.h \
25        CoinMPConfig.h
26
27# This is for libtool (on Windows)
28libCoinMP_la_LDFLAGS = $(LT_LDFLAGS)
29
30########################################################################
31#                            Additional flags                          #
32########################################################################
33
34# Here list all include flags, relative to this "srcdir" directory.  This
35# "cygpath" stuff is necessary to compile with native compilers on Windows.
36# "top_srcdir" refers to the basic directory for the main package that is
37# being compiled.
38AM_CPPFLAGS =
39AM_CPPFLAGS += \
40        -I`$(CYGPATH_W) $(CGLSRCDIR)/src` \
41        -I`$(CYGPATH_W) $(CGLSRCDIR)/src/CglClique` \
42        -I`$(CYGPATH_W) $(CGLSRCDIR)/src/CglDuplicateRow` \
43        -I`$(CYGPATH_W) $(CGLSRCDIR)/src/CglFlowCover` \
44        -I`$(CYGPATH_W) $(CGLSRCDIR)/src/CglGomory` \
45        -I`$(CYGPATH_W) $(CGLSRCDIR)/src/CglKnapsackCover` \
46        -I`$(CYGPATH_W) $(CGLSRCDIR)/src/CglMixedIntegerRounding` \
47        -I`$(CYGPATH_W) $(CGLSRCDIR)/src/CglMixedIntegerRounding2` \
48        -I`$(CYGPATH_W) $(CGLSRCDIR)/src/CglOddHole` \
49        -I`$(CYGPATH_W) $(CGLSRCDIR)/src/CglPreProcess` \
50        -I`$(CYGPATH_W) $(CGLSRCDIR)/src/CglProbing` \
51        -I`$(CYGPATH_W) $(CGLSRCDIR)/src/CglRedSplit` \
52        -I`$(CYGPATH_W) $(CGLSRCDIR)/src/CglTwomir` \
53        -I`$(CYGPATH_W) $(CGLSRCDIR)/src/CglLiftAndProject` \
54        -I`$(CYGPATH_W) $(CGLSRCDIR)/src/CglSimpleRounding` \
55        -I`$(CYGPATH_W) $(COINUTILSSRCDIR)/src` \
56        -I`$(CYGPATH_W) $(COINUTILSOBJDIR)/inc` \
57        -I`$(CYGPATH_W) $(CLPSRCDIR)/src` \
58        -I`$(CYGPATH_W) $(CLPOBJDIR)/inc` \
59        -I`$(CYGPATH_W) $(CBCSRCDIR)/src` \
60        -I`$(CYGPATH_W) $(CBCOBJDIR)/inc` \
61        -I`$(CYGPATH_W) $(OSISRCDIR)/src/OsiClp` \
62        -I`$(CYGPATH_W) $(OSISRCDIR)/src` \
63        -I`$(CYGPATH_W) $(OSIOBJDIR)/inc`
64
65# List additional defines
66AM_CPPFLAGS += -DCOIN_NO_CLP_MESSAGE -DUSE_COINMPCONFIG
67
68# This line is necessary to allow VPATH compilation with MS compilers
69# on Cygwin
70DEFAULT_INCLUDES = -I. -I`$(CYGPATH_W) $(srcdir)` -I$(top_builddir)/inc
71
72########################################################################
73#                Headers that need to be installed                     #
74########################################################################
75
76# Here list all the header files that are required by a user of the library,
77# and that therefore should be installed in 'install'
78includecoindir = $(includedir)/coin
79includecoin_HEADERS = \
80        ../inc/config_coinmp.h \
81        CoinMP.h
82
83#############################################################################
84# Create the Config.h file that always defines HAVE_CONFIG_H and install it #
85#############################################################################
86
87# You only need to adapt the following line
88ConfigHeader = CoinMPConfig.h
89
90install-exec-local:
91        echo "#ifndef HAVE_CONFIG_H" >bla
92        echo "#define HAVE_CONFIG_H" >>bla
93        echo "#endif" >> bla
94        cat $(srcdir)/$(ConfigHeader) >> bla
95        $(install_sh_DATA) bla $(DESTDIR)$(includecoindir)/$(ConfigHeader)
96        rm -f bla
97
98uninstall-local:
99        rm -f $(DESTDIR)$(includecoindir)/$(ConfigHeader)
Note: See TracBrowser for help on using the repository browser.