Ignore:
Timestamp:
Apr 5, 2009 3:14:27 PM (11 years ago)
Author:
pbelotti
Message:

new library modularization (broken with debug)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Couenne/src/main/Makefile.am

    r88 r93  
    55## $Id: Makefile.am 105 2006-11-03 19:31:19Z pbonami $
    66
    7 # Author: Pierre Bonami, International Business Machines 12/04/2006
     7# Author: Pietro Belotti, on a template by Pierre Bonami
    88
    99AUTOMAKE_OPTIONS = foreign
     10
     11# what is built at this level
    1012
    1113if COIN_HAS_ASL
     
    1315endif
    1416
    15 COINLIBS =
    16 
    17 if COIN_HAS_COUENNE
    18   COINLIBS += $(COUENNEOBJDIR)/src/libCouenne.la
    19 endif
    20 
    21 COINLIBS += \
     17COINLIBS = \
    2218        $(CBCOBJDIR)/src/libCbc.la \
    2319        $(CGLOBJDIR)/src/libCgl.la \
     
    3733     $(COINUTILSOBJDIR)/src/libCoinUtils.la
    3834
    39 #IPOPTLIBS = \
    40 #        $(IPOPTOBJDIR)/src/Interfaces/libipopt.la \
    41 #        $(IPOPTOBJDIR)/src/LinAlg/liblinalg.la
     35IPOPTLIBS = \
     36        $(IPOPTOBJDIR)/src/Interfaces/libipopt.la \
     37        $(IPOPTOBJDIR)/src/LinAlg/liblinalg.la
    4238
    4339LIBS += `cat $(IPOPTOBJDIR)/src/Interfaces/ipopt_addlibs_cpp.txt`
    4440LIBS += `cat $(COINUTILSOBJDIR)/coinutils_addlibs.txt`
     41
     42#if COIN_HAS_COUENNE
     43#  COINLIBS += $(COUENNEOBJDIR)/src/libCouenne.la
     44
     45couenne_LDADD = \
     46        ../util/libCouenneUtil.la \
     47        ../branch/libCouenneBranch.la \
     48        ../expression/libCouenneExpression.la \
     49        ../convex/libCouenneConvex.la \
     50        ../standardize/libCouenneStandardize.la \
     51        ../disjunctive/libCouenneDisjunctive.la \
     52        ../bound_tightening/libCouenneBoundTightening.la \
     53        ../readnl/libCouenneReadnl.la \
     54        ../problem/libCouenneProblem.la
     55
     56couenne_SOURCES = \
     57        BonCouenne.cpp \
     58        BonCouenneSetup.cpp \
     59        BonCouenneInterface.cpp \
     60        BonNlpHeuristic.cpp \
     61        BonCouenneInfo.cpp \
     62        BonInitHeuristic.cpp
     63
     64couenne_LDADD += \
     65        ../util/libCouenneUtil.la \
     66        ../branch/libCouenneBranch.la \
     67        ../expression/libCouenneExpression.la \
     68        ../convex/libCouenneConvex.la \
     69        ../problem/libCouenneProblem.la \
     70        ../libCouenne.la
     71
     72couenne_LDADD += \
     73        $(LIBCBCCOPY) \
     74        $(COINLIBS) \
     75        $(ADDLIBS) \
     76        $(ASLLIB)
     77
     78
     79# Finally, the -rpath flag is used by libtool to make sure that the shared
     80# library is found (in the lib install directory) when we are using dynamic
     81# libraries.
     82couenne_LDFLAGS = -rpath $(libdir)
     83
     84#       ../util/libCouenneUtil.la \
     85#       ../branch/libCouenneBranch.la \
     86#       ../convex/libCouenneConvex.la \
     87#       ../expression/libCouenneExpression.la \
     88#       ../problem/libCouenneProblem.la
     89
     90#if COIN_HAS_ASL
     91#COINLIBS +=
     92#couenne_LDADD += \
     93#       ../readnl/libCouenneReadnl.la
     94#endif
     95
     96#COINLIBS +=
     97#couenne_LDADD += \
     98#       ../standardize/libCouenneStandardize.la \
     99#       ../bound_tightening/libCouenneBoundTightening.la \
     100#       ../disjunctive/libCouenneDisjunctive.la
     101#endif
     102
    45103
    46104# Here list all include flags, relative to this "srcdir" directory.  This
     
    97155#endif
    98156
    99 if COIN_HAS_COUENNE
    100   AM_CPPFLAGS += \
     157AM_CPPFLAGS += \
    101158        -I`$(CYGPATH_W) $(COUENNESRCDIR)/src/convex` \
    102         -I`$(CYGPATH_W) $(COUENNESRCDIR)/src/disjunctive` \
    103159        -I`$(CYGPATH_W) $(COUENNESRCDIR)/src/expression` \
    104160        -I`$(CYGPATH_W) $(COUENNESRCDIR)/src/expression/operators` \
    105         -I`$(CYGPATH_W) $(COUENNESRCDIR)/src/util` \
     161        -I`$(CYGPATH_W) $(COUENNESRCDIR)/src/disjunctive` \
    106162        -I`$(CYGPATH_W) $(COUENNESRCDIR)/src/main` \
    107163        -I`$(CYGPATH_W) $(COUENNESRCDIR)/src/problem` \
    108164        -I`$(CYGPATH_W) $(COUENNESRCDIR)/src/branch`
    109 endif
    110165
    111 couenne_SOURCES = BonCouenne.cpp
    112 
    113 couenne_LDADD = \
    114         $(LIBCBCCOPY) \
    115         $(COINLIBS) \
    116         $(ADDLIBS) \
    117         $(ASLLIB)
    118 
    119 # Finally, the -rpath flag is used by libtool to make sure that the shared
    120 # library is found (in the lib install directory) when we are using dynamic
    121 # libraries.
    122 couenne_LDFLAGS = -rpath $(libdir)
     166# This line is necessary to allow VPATH compilation with MS compilers
     167# on Cygwin
     168DEFAULT_INCLUDES = -I. -I`$(CYGPATH_W) $(srcdir)` -I$(top_builddir)/inc
Note: See TracChangeset for help on using the changeset viewer.