source: trunk/Cbc/src/Makefile.am @ 311

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

intermediate commit to be able to move more files

  • Property svn:eol-style set to native
  • Property svn:keywords set to "Author Date Id Revision"
File size: 3.9 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 311 2006-05-12 14:43:09Z andreasw $
6
7# Author:  Andreas Waechter           IBM    2006-04-13
8
9AUTOMAKE_OPTIONS = foreign
10
11########################################################################
12#                               libCbc                                 #
13########################################################################
14
15# Name of the library compiled in this directory.  We want it to be installed
16# in the 'lib' directory
17lib_LTLIBRARIES = libCbc.la
18
19# List all source files for this library, including headers
20libCbc_la_SOURCES = \
21        CbcBranchActual.cpp CbcBranchActual.hpp \
22        CbcBranchBase.cpp CbcBranchBase.hpp \
23        CbcBranchCut.cpp CbcBranchCut.hpp \
24        CbcBranchDynamic.cpp CbcBranchDynamic.hpp \
25        CbcBranchLotsize.cpp CbcBranchLotsize.hpp \
26        CbcCompareActual.cpp CbcCompareActual.hpp \
27        CbcCompareBase.hpp \
28        CbcCountRowCut.cpp CbcCountRowCut.hpp \
29        CbcCutGenerator.cpp CbcCutGenerator.hpp \
30        CbcEventHandler.cpp CbcEventHandler.hpp \
31        CbcFathom.cpp CbcFathom.hpp \
32        CbcFathomDynamicProgramming.cpp CbcFathomDynamicProgramming.hpp \
33        CbcFeasibilityBase.hpp \
34        CbcHeuristic.cpp CbcHeuristic.hpp \
35        CbcHeuristicFPump.cpp CbcHeuristicFPump.hpp \
36        CbcHeuristicGreedy.cpp CbcHeuristicGreedy.hpp \
37        CbcHeuristicLocal.cpp CbcHeuristicLocal.hpp \
38        CbcMessage.cpp CbcMessage.hpp \
39        CbcModel.cpp CbcModel.hpp \
40        CbcNode.cpp CbcNode.hpp \
41        CbcStatistics.cpp CbcStatistics.hpp \
42        CbcStrategy.cpp CbcStrategy.hpp \
43        CbcTree.cpp CbcTree.hpp \
44        CbcTreeLocal.cpp CbcTreeLocal.hpp
45
46# This is for libtool (on Windows)
47libCbc_la_LDFLAGS = -no-undefined
48
49# Here list all include flags, relative to this "srcdir" directory.  This
50# "cygpath" stuff is necessary to compile with native compilers on Windows.
51# "top_srcdir" refers to the basic directory for the main package that is
52# being compiled.
53CXXFLAGS += \
54        -I`$(CYGPATH_W) $(CGLSRCDIR)/src` \
55        -I`$(CYGPATH_W) $(CGLSRCDIR)/src/CglProbing` \
56        -I`$(CYGPATH_W) $(COINBASESRCDIR)/src` \
57        -I`$(CYGPATH_W) $(OSISRCDIR)/src`
58
59if COIN_HAS_CLP
60  libCbc_la_SOURCES += Cbc_C_Interface.cpp Cbc_C_Interface.h
61  CXXFLAGS += -I`$(CYGPATH_W) $(OSISRCDIR)/src/OsiClp` \
62        -I`$(CYGPATH_W) $(CLPSRCDIR)/src`
63endif
64
65########################################################################
66#                Headers that need to be installed                     #
67########################################################################
68
69# Here list all the header files that are required by a user of the library,
70# and that therefore should be installed in 'install'
71include_HEADERS = \
72        CbcBranchActual.hpp \
73        CbcBranchBase.hpp \
74        CbcCompareActual.hpp \
75        CbcCompareBase.hpp \
76        CbcCutGenerator.hpp \
77        CbcEventHandler.hpp \
78        CbcHeuristic.hpp \
79        CbcHeuristicFPump.hpp \
80        CbcHeuristicGreedy.hpp \
81        CbcHeuristicLocal.hpp \
82        CbcMessage.hpp \
83        CbcModel.hpp \
84        CbcNode.hpp \
85        CbcStrategy.hpp \
86        CbcTree.hpp \
87        CbcTreeLocal.hpp
88
89########################################################################
90#     Generating the configure header that is to be distributed        #
91########################################################################
92
93CONFIG_DIST = CbcConfig.hpp
94CONFIG_H = config_cbc.h
95$(libCbc_la_OBJECTS): ../inc/$(CONFIG_DIST)
96
97nodist_include_HEADERS = ../inc/$(CONFIG_DIST)
98
99../inc/$(CONFIG_DIST): ../inc/$(CONFIG_H)
100        echo "/** Required defines from $(CONFIG_H) */" >bla.tmp
101        echo "#ifndef __$(CONFIG_DIST)__" | sed -e 's/\./_/g' >>bla.tmp
102        echo "#define __$(CONFIG_DIST)__" | sed -e 's/\./_/g' >>bla.tmp
103        $(EGREP) 'COIN_|CBC_DEFAULT_SOLVER' $< >>bla.tmp
104        echo "#endif" >>bla.tmp
105        if test -r ../inc/$(CONFIG_DIST); then \
106          if diff ./inc/$(CONFIG_DIST) bla.tmp >/dev/null 2>1 ; then \
107            rm -f bla.tmp; \
108          else \
109            rm -f ../inc/$(CONFIG_DIST); \
110            mv bla.tmp ../inc/$(CONFIG_DIST); \
111          fi; \
112        else \
113          mv bla.tmp ../inc/$(CONFIG_DIST); \
114        fi
115
116CLEANFILES = bla.tmp
117
118DISTCLEANFILES = ../inc/$(CONFIG_DIST) \
119        CbcOrClpParam.cpp \
120        CbcOrClpParam.hpp
Note: See TracBrowser for help on using the repository browser.