Ignore:
Timestamp:
Jun 1, 2006 4:10:33 PM (13 years ago)
Author:
andreasw
Message:

use proper automake variables for includes and #defines

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Cbc/src/Makefile.am

    r339 r345  
    6868        $(CGLOBJDIR)/src/libCgl.la \
    6969        $(OSIOBJDIR)/src/OsiCbc/libOsiCbc.la
    70 CXXFLAGS += -I`$(CYGPATH_W) $(OSISRCDIR)/src/OsiCbc`
     70AM_CPPFLAGS = -I`$(CYGPATH_W) $(OSISRCDIR)/src/OsiCbc`
    7171
    7272# List all additionally required solver and Osi libraries
    7373if COIN_HAS_CLP
    74   CXXFLAGS += -I`$(CYGPATH_W) $(CLPSRCDIR)/src` \
     74  AM_CPPFLAGS += -I`$(CYGPATH_W) $(CLPSRCDIR)/src` \
    7575        -I`$(CYGPATH_W) $(OSISRCDIR)/src/OsiClp` \
    7676        -I`$(CYGPATH_W) $(CLPOBJDIR)/inc`
     
    8181
    8282if COIN_HAS_CPX
    83   CXXFLAGS += -I`$(CYGPATH_W) $(CPXINCDIR)` \
     83  AM_CPPFLAGS += -I`$(CYGPATH_W) $(CPXINCDIR)` \
    8484        -I`$(CYGPATH_W) $(OSISRCDIR)/src/OsiCpx`
    8585  cbc_LDADD += $(OSIOBJDIR)/src/OsiCpx/libOsiCpx.la
     
    8787
    8888if COIN_HAS_DYLP
    89   CXXFLAGS += -I`$(CYGPATH_W) $(DYLPSRCDIR)/src/DylpStdLib` \
     89  AM_CPPFLAGS += -I`$(CYGPATH_W) $(DYLPSRCDIR)/src/DylpStdLib` \
    9090        -I`$(CYGPATH_W) $(DYLPSRCDIR)/src/Dylp` \
    9191        -I`$(CYGPATH_W) $(DYLPOBJDIR)/inc` \
     
    9797
    9898if COIN_HAS_FMP
    99   CXXFLAGS += -I`$(CYGPATH_W) $(OSISRCDIR)/src/OsiFmp`
     99  AM_CPPFLAGS += -I`$(CYGPATH_W) $(OSISRCDIR)/src/OsiFmp`
    100100  cbc_LDADD += $(OSIOBJDIR)/src/OsiFmp/libOsiFmp.la
    101101endif
    102102
    103103if COIN_HAS_GLPK
    104   CXXFLAGS += -I`$(CYGPATH_W) $(GLPKINCDIR)` \
     104  AM_CPPFLAGS += -I`$(CYGPATH_W) $(GLPKINCDIR)` \
    105105        -I`$(CYGPATH_W) $(OSISRCDIR)/src/OsiGlpk`
    106106  cbc_LDADD += $(OSIOBJDIR)/src/OsiGlpk/libOsiGlpk.la
     
    108108
    109109if COIN_HAS_MSK
    110   CXXFLAGS += -I`$(CYGPATH_W) $(MSKINCDIR)` \
     110  AM_CPPFLAGS += -I`$(CYGPATH_W) $(MSKINCDIR)` \
    111111        -I`$(CYGPATH_W) $(OSISRCDIR)/src/OsiMsk`
    112112  cbc_LDADD += $(OSIOBJDIR)/src/OsiMsk/libOsiMsk.la
     
    114114
    115115if COIN_HAS_OSL
    116   CXXFLAGS += -I`$(CYGPATH_W) $(OSLINCDIR)` \
     116  AM_CPPFLAGS += -I`$(CYGPATH_W) $(OSLINCDIR)` \
    117117        -I`$(CYGPATH_W) $(OSISRCDIR)/src/OsiOsl`
    118118  cbc_LDADD += $(OSIOBJDIR)/src/OsiOsl/libOsiOsl.la
     
    120120
    121121if COIN_HAS_SPX
    122   CXXFLAGS += -I`$(CYGPATH_W) $(SPXINCDIR)` \
     122  AM_CPPFLAGS += -I`$(CYGPATH_W) $(SPXINCDIR)` \
    123123        -I`$(CYGPATH_W) $(OSISRCDIR)/src/OsiSpx`
    124124  cbc_LDADD += $(OSIOBJDIR)/src/OsiSpx/libOsiSpx.la
     
    126126
    127127if COIN_HAS_SYM
    128   CXXFLAGS += -I`$(CYGPATH_W) $(SYMSRCDIR)/src` \
     128  AM_CPPFLAGS += -I`$(CYGPATH_W) $(SYMSRCDIR)/src` \
    129129        -I`$(CYGPATH_W) $(OSISRCDIR)/src/OsiSym`
    130130  cbc_LDADD += $(OSIOBJDIR)/src/OsiSym/libOsiSym.la \
     
    134134
    135135if COIN_HAS_VOL
    136   CXXFLAGS += -I`$(CYGPATH_W) $(VOLSRCDIR)/src` \
     136  AM_CPPFLAGS += -I`$(CYGPATH_W) $(VOLSRCDIR)/src` \
    137137        -I`$(CYGPATH_W) $(OSISRCDIR)/src/OsiVol`
    138138  cbc_LDADD += $(OSIOBJDIR)/src/OsiVol/libOsiVol.la \
     
    142142
    143143if COIN_HAS_XPR
    144   CXXFLAGS += -I`$(CYGPATH_W) $(XPRINCDIR)` \
     144  AM_CPPFLAGS += -I`$(CYGPATH_W) $(XPRINCDIR)` \
    145145        -I`$(CYGPATH_W) $(OSISRCDIR)/src/OsiXpr`
    146146  cbc_LDADD += $(OSIOBJDIR)/src/OsiXpr/libOsiXpr.la
     
    161161#                           solve program                              #
    162162########################################################################
    163 
    164 #ToDo: I'm not sure if I'm doing the right thing here
    165163
    166164# Name of the executable compiled in this directory.  We want it to be
     
    198196# "top_srcdir" refers to the basic directory for the main package that is
    199197# being compiled.
    200 CXXFLAGS += \
     198AM_CPPFLAGS += \
    201199        -I`$(CYGPATH_W) $(CGLSRCDIR)/src` \
    202200        -I`$(CYGPATH_W) $(CGLSRCDIR)/src/CglClique` \
     
    215213
    216214# List additional defines
    217 DEFS += -DCOIN_NO_CLP_MESSAGE -DUSE_CBCCONFIG
     215AM_CPPFLAGS += -DCOIN_NO_CLP_MESSAGE -DUSE_CBCCONFIG
    218216
    219217# This line is necessary to allow VPATH compilation with MS compilers
Note: See TracChangeset for help on using the changeset viewer.