Ignore:
Timestamp:
May 12, 2006 2:30:07 PM (13 years ago)
Author:
andreasw
Message:

finished (for now) conversion of Cbc to autotools

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

    • Property svn:externals
      •  

        old new  
        22Data/Netlib   https://www.coin-or.org/svn/Data/trunk/Netlib
        33Data/Sample   https://www.coin-or.org/svn/Data/trunk/Sample
         4Data/miplib3  https://www.coin-or.org/svn/Data/trunk/miplib3
        45CoinBase      https://www.coin-or.org/svn/CoinBase/trunk/CoinBase
        56Cgl           https://www.coin-or.org/svn/Cgl/trunk/Cgl
  • trunk/Cbc/src/Makefile.am

    r311 r312  
    4747libCbc_la_LDFLAGS = -no-undefined
    4848
     49########################################################################
     50#                        cbc_solver program                            #
     51########################################################################
     52
     53# Name of the executable compiled in this directory.  We want it to be
     54# installed in the 'bin' directory
     55bin_PROGRAMS = cbc_solver
     56
     57# List all source files for this executable, including headers
     58cbc_solver_SOURCES = \
     59        CbcMain.cpp \
     60        CbcParam.cpp CbcParam.hpp \
     61        unitTest.cpp
     62
     63# The following file is not to be distributed, since it is "borrowed" from Clp
     64nodist_cbc_solver_SOURCES = CbcOrClpParam.cpp
     65
     66cbc_solver_LDADD = libCbc.la \
     67        $(CGLOBJDIR)/src/libCgl.la
     68
     69# List all additionally required solver and Osi libraries
     70if COIN_HAS_CLP
     71  CXXFLAGS += -I`$(CYGPATH_W) $(CLPSRCDIR)/src` \
     72        -I`$(CYGPATH_W) $(OSISRCDIR)/src/OsiClp` \
     73        -I`$(CYGPATH_W) $(CLPOBJDIR)/inc`
     74  cbc_solver_LDADD += $(OSIOBJDIR)/src/OsiClp/libOsiClp.la \
     75        $(CLPOBJDIR)/src/libClp.la
     76  LIBS  += `cat $(CLPOBJDIR)/clp_addlibs.txt`
     77endif
     78
     79if COIN_HAS_CBC
     80  CXXFLAGS += -I`$(CYGPATH_W) $(CBCSRCDIR)/src` \
     81        -I`$(CYGPATH_W) $(OSISRCDIR)/src/OsiCbc`
     82  cbc_solver_LDADD += $(OSIOBJDIR)/src/OsiCbc/libOsiCbc.la \
     83        $(CBCOBJDIR)/src/libCbc.la
     84  LIBS += `cat $(CBCOBJDIR)/cbc_addlibs.txt`
     85endif
     86
     87if COIN_HAS_CPX
     88  CXXFLAGS += -I`$(CYGPATH_W) $(CPXINCDIR)` \
     89        -I`$(CYGPATH_W) $(OSISRCDIR)/src/OsiCpx`
     90  cbc_solver_LDADD += $(OSIOBJDIR)/src/OsiCpx/libOsiCpx.la
     91endif
     92
     93if COIN_HAS_DYLP
     94  CXXFLAGS += -I`$(CYGPATH_W) $(DYLPSRCDIR)/src` \
     95        -I`$(CYGPATH_W) $(OSISRCDIR)/src/OsiDylp`
     96  cbc_solver_LDADD += $(OSIOBJDIR)/src/OsiDylp/libOsiDylp.la \
     97        $(DYLPOBJDIR)/src/libDylp.la
     98  LIBS += `cat $(DYLPOBJDIR)/dylp_addlibs.txt`
     99endif
     100
     101if COIN_HAS_FMP
     102  CXXFLAGS += -I`$(CYGPATH_W) $(OSISRCDIR)/src/OsiFmp`
     103  cbc_solver_LDADD += $(OSIOBJDIR)/src/OsiFmp/libOsiFmp.la
     104endif
     105
     106if COIN_HAS_GLPK
     107  CXXFLAGS += -I`$(CYGPATH_W) $(GLPKINCDIR)` \
     108        -I`$(CYGPATH_W) $(OSISRCDIR)/src/OsiGlpk`
     109  cbc_solver_LDADD += $(OSIOBJDIR)/src/OsiGlpk/libOsiGlpk.la
     110endif
     111
     112if COIN_HAS_MSK
     113  CXXFLAGS += -I`$(CYGPATH_W) $(MSKINCDIR)` \
     114        -I`$(CYGPATH_W) $(OSISRCDIR)/src/OsiMsk`
     115  cbc_solver_LDADD += $(OSIOBJDIR)/src/OsiMsk/libOsiMsk.la
     116endif
     117
     118if COIN_HAS_OSL
     119  CXXFLAGS += -I`$(CYGPATH_W) $(OSLINCDIR)` \
     120        -I`$(CYGPATH_W) $(OSISRCDIR)/src/OsiOsl`
     121  cbc_solver_LDADD += $(OSIOBJDIR)/src/OsiOsl/libOsiOsl.la
     122endif
     123
     124if COIN_HAS_SPX
     125  CXXFLAGS += -I`$(CYGPATH_W) $(SPXINCDIR)` \
     126        -I`$(CYGPATH_W) $(OSISRCDIR)/src/OsiSpx`
     127  cbc_solver_LDADD += $(OSIOBJDIR)/src/OsiSpx/libOsiSpx.la
     128endif
     129
     130if COIN_HAS_SYM
     131  CXXFLAGS += -I`$(CYGPATH_W) $(SYMSRCDIR)/src` \
     132        -I`$(CYGPATH_W) $(OSISRCDIR)/src/OsiSym`
     133  cbc_solver_LDADD += $(OSIOBJDIR)/src/OsiSym/libOsiSym.la \
     134        $(SYMOBJDIR)/src/libSym.la
     135  LIBS += `cat $(SYMOBJDIR)/sym_addlibs.txt`
     136endif
     137
     138if COIN_HAS_VOL
     139  CXXFLAGS += -I`$(CYGPATH_W) $(VOLSRCDIR)/src` \
     140        -I`$(CYGPATH_W) $(OSISRCDIR)/src/OsiVol`
     141  cbc_solver_LDADD += $(OSIOBJDIR)/src/OsiVol/libOsiVol.la \
     142        $(VOLOBJDIR)/src/libVol.la
     143  LIBS += `cat $(VOLOBJDIR)/vol_addlibs.txt`
     144endif
     145
     146if COIN_HAS_XPR
     147  CXXFLAGS += -I`$(CYGPATH_W) $(XPRINCDIR)` \
     148        -I`$(CYGPATH_W) $(OSISRCDIR)/src/OsiXpr`
     149  cbc_solver_LDADD += $(OSIOBJDIR)/src/OsiXpr/libOsiXpr.la
     150endif
     151
     152# Finally the Osi Coin library (many of the above need it)
     153cbc_solver_LDADD += $(OSIOBJDIR)/src/libOsi.la \
     154        $(COINBASEOBJDIR)/src/libCoinBase.la
     155LIBS += `cat $(COINBASEOBJDIR)/coinbase_addlibs.txt` $(ADDLIBS)
     156
     157# Finally, the -rpath flag is used by libtool to make sure that the shared
     158# library is found (in the lib install directory) when we are using dynamic
     159# libraries.
     160cbc_solver_LDFLAGS = -rpath $(libdir)
     161
     162########################################################################
     163#                           solve program                              #
     164########################################################################
     165
     166#ToDo: I'm not sure if I'm doing the right thing here
     167
     168# Name of the executable compiled in this directory.  We want it to be
     169# installed in the 'bin' directory
     170bin_PROGRAMS += solve
     171
     172# List all source files for this executable, including headers
     173solve_SOURCES = \
     174        CoinSolve.cpp \
     175        Cbc_ampl.cpp Cbc_ampl.h \
     176        unitTestClp.cpp
     177
     178# The following file is not to be distributed, since it is "borrowed" from Clp
     179nodist_solve_SOURCES = CbcOrClpParam.cpp
     180
     181# Additional COIN libraries
     182solve_LDADD = libCbc.la \
     183        $(CGLOBJDIR)/src/libCgl.la \
     184        $(OSIOBJDIR)/src/OsiClp/libOsiClp.la \
     185        $(OSIOBJDIR)/src/libOsi.la \
     186        $(CLPOBJDIR)/src/libClp.la \
     187        $(COINBASEOBJDIR)/src/libCoinBase.la
     188
     189# Finally, the -rpath flag is used by libtool to make sure that the shared
     190# library is found (in the lib install directory) when we are using dynamic
     191# libraries.
     192solve_LDFLAGS = -rpath $(libdir)
     193
     194########################################################################
     195#                            Additional flags                          #
     196########################################################################
     197
    49198# Here list all include flags, relative to this "srcdir" directory.  This
    50199# "cygpath" stuff is necessary to compile with native compilers on Windows.
     
    53202CXXFLAGS += \
    54203        -I`$(CYGPATH_W) $(CGLSRCDIR)/src` \
     204        -I`$(CYGPATH_W) $(CGLSRCDIR)/src/CglClique` \
     205        -I`$(CYGPATH_W) $(CGLSRCDIR)/src/CglFlowCover` \
     206        -I`$(CYGPATH_W) $(CGLSRCDIR)/src/CglGomory` \
     207        -I`$(CYGPATH_W) $(CGLSRCDIR)/src/CglKnapsackCover` \
     208        -I`$(CYGPATH_W) $(CGLSRCDIR)/src/CglMixedIntegerRounding` \
     209        -I`$(CYGPATH_W) $(CGLSRCDIR)/src/CglMixedIntegerRounding2` \
     210        -I`$(CYGPATH_W) $(CGLSRCDIR)/src/CglOddHole` \
     211        -I`$(CYGPATH_W) $(CGLSRCDIR)/src/CglPreProcess` \
    55212        -I`$(CYGPATH_W) $(CGLSRCDIR)/src/CglProbing` \
     213        -I`$(CYGPATH_W) $(CGLSRCDIR)/src/CglRedSplit` \
     214        -I`$(CYGPATH_W) $(CGLSRCDIR)/src/CglTwomir` \
    56215        -I`$(CYGPATH_W) $(COINBASESRCDIR)/src` \
    57216        -I`$(CYGPATH_W) $(OSISRCDIR)/src`
    58217
    59 if 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`
    63 endif
     218# List additional defines
     219DEFS += -DCOIN_NO_CLP_MESSAGE -DUSE_CBCCONFIG
    64220
    65221########################################################################
Note: See TracChangeset for help on using the changeset viewer.