Changeset 1637 for trunk/Clp/examples


Ignore:
Timestamp:
Nov 28, 2010 3:42:24 PM (10 years ago)
Author:
stefan
Message:

use new fallback variables to setup addlibs file in fallback mode; use pkg-config or these variables in examples Makefile

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Clp/examples/Makefile.in

    r1603 r1637  
    5757@COIN_HAS_NETLIB_TRUE@CFLAGS += -DNETLIBDIR=\"@NETLIB_DATA@\"
    5858
    59 # Directory with COIN header files
    60 COININCDIR = @abs_include_dir@/coin
     59# Compiler flags (we use the CYGPATH_W variables to allow compilation with Windows compilers)
     60@COIN_HAS_PKGCONFIG_TRUE@INCL = `PKG_CONFIG_PATH=@COIN_PKG_CONFIG_PATH@ @PKG_CONFIG@ --cflags clp` $(ADDINCFLAGS)
     61@COIN_HAS_PKGCONFIG_FALSE@INCL = @CLPLIB_CFLAGS_INSTALLED@ $(ADDINCFLAGS)
    6162
    62 # Directory with COIN libraries
    63 COINLIBDIR = @abs_lib_dir@/coin
    64 
    65 # Libraries necessary to link with Clp
    66 LIBS = -L`$(CYGPATH_W) $(COINLIBDIR)` -L`$(CYGPATH_W) $(COINLIBDIR)/ThirdParty` -lClp @CLPLIB_LIBS@
    67 
    68 # Necessary Include dirs (we use the CYGPATH_W variables to allow
    69 # compilation with Windows compilers)
    70 INCL = -I`$(CYGPATH_W) $(COININCDIR)` @COINUTILS_CFLAGS@ $(ADDINCFLAGS)
     63# Linker flags
     64@COIN_HAS_PKGCONFIG_TRUE@@COIN_CXX_IS_CL_FALSE@LIBS = `PKG_CONFIG_PATH=@COIN_PKG_CONFIG_PATH@ @PKG_CONFIG@ --libs clp`
     65@COIN_HAS_PKGCONFIG_TRUE@@COIN_CXX_IS_CL_TRUE@LIBS = /link: `PKG_CONFIG_PATH=@COIN_PKG_CONFIG_PATH@ @PKG_CONFIG@ --msvc-syntax --libs clp`
     66@COIN_HAS_PKGCONFIG_FALSE@LIBS = -L@abs_lib_dir@ -lClp @CLPLIB_LIBS_INSTALLED@
    7167
    7268# The following is necessary under cygwin, if native compilers are used
     
    108104        bla=;\
    109105        for file in $(OBJS); do bla="$$bla `$(CYGPATH_W) $$file`"; done; \
    110         $(CXX) $(CXXLINKFLAGS) $(CXXFLAGS) -o $@ $$bla $(ADDLIBS) $(LIBS)
     106        $(CXX) $(CXXLINKFLAGS) $(CXXFLAGS) -o $@ $$bla $(LIBS) $(ADDLIBS)
    111107
    112108clean:
Note: See TracChangeset for help on using the changeset viewer.