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

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

Add CoinCbc?.c and CoinCbc?.h to 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 349 2009-11-12 16:59:26Z 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        CoinCbc.c CoinCbc.h \
26        CoinMPConfig.h
27
28# This is for libtool (on Windows)
29libCoinMP_la_LDFLAGS = $(LT_LDFLAGS)
30
31########################################################################
32#                            Additional flags                          #
33########################################################################
34
35# Here list all include flags, relative to this "srcdir" directory.  This
36# "cygpath" stuff is necessary to compile with native compilers on Windows.
37# "top_srcdir" refers to the basic directory for the main package that is
38# being compiled.
39AM_CPPFLAGS =
40AM_CPPFLAGS += \
41        -I`$(CYGPATH_W) $(CGLSRCDIR)/src` \
42        -I`$(CYGPATH_W) $(CGLSRCDIR)/src/CglClique` \
43        -I`$(CYGPATH_W) $(CGLSRCDIR)/src/CglDuplicateRow` \
44        -I`$(CYGPATH_W) $(CGLSRCDIR)/src/CglFlowCover` \
45        -I`$(CYGPATH_W) $(CGLSRCDIR)/src/CglGomory` \
46        -I`$(CYGPATH_W) $(CGLSRCDIR)/src/CglKnapsackCover` \
47        -I`$(CYGPATH_W) $(CGLSRCDIR)/src/CglMixedIntegerRounding` \
48        -I`$(CYGPATH_W) $(CGLSRCDIR)/src/CglMixedIntegerRounding2` \
49        -I`$(CYGPATH_W) $(CGLSRCDIR)/src/CglOddHole` \
50        -I`$(CYGPATH_W) $(CGLSRCDIR)/src/CglPreProcess` \
51        -I`$(CYGPATH_W) $(CGLSRCDIR)/src/CglProbing` \
52        -I`$(CYGPATH_W) $(CGLSRCDIR)/src/CglRedSplit` \
53        -I`$(CYGPATH_W) $(CGLSRCDIR)/src/CglTwomir` \
54        -I`$(CYGPATH_W) $(CGLSRCDIR)/src/CglLiftAndProject` \
55        -I`$(CYGPATH_W) $(CGLSRCDIR)/src/CglSimpleRounding` \
56        -I`$(CYGPATH_W) $(COINUTILSSRCDIR)/src` \
57        -I`$(CYGPATH_W) $(COINUTILSOBJDIR)/inc` \
58        -I`$(CYGPATH_W) $(CLPSRCDIR)/src` \
59        -I`$(CYGPATH_W) $(CLPOBJDIR)/inc` \
60        -I`$(CYGPATH_W) $(CBCSRCDIR)/src` \
61        -I`$(CYGPATH_W) $(CBCOBJDIR)/inc` \
62        -I`$(CYGPATH_W) $(OSISRCDIR)/src/OsiClp` \
63        -I`$(CYGPATH_W) $(OSISRCDIR)/src` \
64        -I`$(CYGPATH_W) $(OSIOBJDIR)/inc`
65
66# List additional defines
67AM_CPPFLAGS += -DCOIN_NO_CLP_MESSAGE -DUSE_COINMPCONFIG
68
69# This line is necessary to allow VPATH compilation with MS compilers
70# on Cygwin
71DEFAULT_INCLUDES = -I. -I`$(CYGPATH_W) $(srcdir)` -I$(top_builddir)/inc
72
73########################################################################
74#                Headers that need to be installed                     #
75########################################################################
76
77# Here list all the header files that are required by a user of the library,
78# and that therefore should be installed in 'install'
79includecoindir = $(includedir)/coin
80includecoin_HEADERS = \
81        ../inc/config_coinmp.h \
82        CoinMP.h
83
84#############################################################################
85# Create the Config.h file that always defines HAVE_CONFIG_H and install it #
86#############################################################################
87
88# You only need to adapt the following line
89ConfigHeader = CoinMPConfig.h
90
91install-exec-local:
92        echo "#ifndef HAVE_CONFIG_H" >bla
93        echo "#define HAVE_CONFIG_H" >>bla
94        echo "#endif" >> bla
95        cat $(srcdir)/$(ConfigHeader) >> bla
96        $(install_sh_DATA) bla $(DESTDIR)$(includecoindir)/$(ConfigHeader)
97        rm -f bla
98
99uninstall-local:
100        rm -f $(DESTDIR)$(includecoindir)/$(ConfigHeader)
Note: See TracBrowser for help on using the repository browser.