Changeset 1645 for trunk/Clp/examples


Ignore:
Timestamp:
Dec 4, 2010 2:32:08 PM (10 years ago)
Author:
stefan
Message:

get examples working for cygwin/cl without pkg-config

File:
1 edited

Legend:

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

    r1637 r1645  
    3838##########################################################################
    3939
     40COIN_HAS_PKGCONFIG = @COIN_HAS_PKGCONFIG_TRUE@TRUE
     41COIN_CXX_IS_CL = @COIN_CXX_IS_CL_TRUE@TRUE
     42COIN_HAS_SAMPLE = @COIN_HAS_SAMPLE_TRUE@TRUE
     43COIN_HAS_NETLIB = @COIN_HAS_NETLIB_TRUE@TRUE
     44
    4045# C++ Compiler command
    4146CXX = @CXX@
     
    4348# C++ Compiler options
    4449CXXFLAGS = @CXXFLAGS@
    45 @COIN_HAS_SAMPLE_TRUE@CXXFLAGS += -DSAMPLEDIR=\"@SAMPLE_DATA@\"
    46 @COIN_HAS_NETLIB_TRUE@CXXFLAGS += -DNETLIBDIR=\"@NETLIB_DATA@\"
    4750
    4851# additional C++ Compiler options for linking
     
    5457# C Compiler options
    5558CFLAGS = @CFLAGS@
    56 @COIN_HAS_SAMPLE_TRUE@CFLAGS += -DSAMPLEDIR=\"@SAMPLE_DATA@\"
    57 @COIN_HAS_NETLIB_TRUE@CFLAGS += -DNETLIBDIR=\"@NETLIB_DATA@\"
    5859
    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)
     60# Sample data directory
     61ifeq ($(COIN_HAS_SAMPLE), TRUE)
     62  ifeq ($(COIN_HAS_PKGCONFIG), TRUE)
     63    CXXFLAGS += -DSAMPLEDIR=\"`PKG_CONFIG_PATH=@COIN_PKG_CONFIG_PATH@ @PKG_CONFIG@ --variable=datadir coindatasample`\"
     64      CFLAGS += -DSAMPLEDIR=\"`PKG_CONFIG_PATH=@COIN_PKG_CONFIG_PATH@ @PKG_CONFIG@ --variable=datadir coindatasample`\"
     65  else
     66    CXXFLAGS += -DSAMPLEDIR=\"@SAMPLE_DATA_INSTALLED@\"
     67      CFLAGS += -DSAMPLEDIR=\"@SAMPLE_DATA_INSTALLED@\"
     68  endif
     69endif
     70
     71ifeq ($(COIN_HAS_NETLIB), TRUE)
     72  ifeq ($(COIN_HAS_PKGCONFIG), TRUE)
     73    CXXFLAGS += -DNETLIBDIR=\"`PKG_CONFIG_PATH=@COIN_PKG_CONFIG_PATH@ @PKG_CONFIG@ --variable=datadir coindatanetlib`\"
     74      CFLAGS += -DNETLIBDIR=\"`PKG_CONFIG_PATH=@COIN_PKG_CONFIG_PATH@ @PKG_CONFIG@ --variable=datadir coindatanetlib`\"
     75  else
     76    CXXFLAGS += -DNETLIBDIR=\"@NETLIB_DATA_INSTALLED@\"
     77      CFLAGS += -DNETLIBDIR=\"@NETLIB_DATA_INSTALLED@\"
     78  endif
     79endif
     80
     81# Include directories (we use the CYGPATH_W variables to allow compilation with Windows compilers)
     82ifeq ($(COIN_HAS_PKGCONFIG), TRUE)
     83  INCL = `PKG_CONFIG_PATH=@COIN_PKG_CONFIG_PATH@ @PKG_CONFIG@ --cflags clp`
     84else
     85  INCL = @CLPLIB_CFLAGS_INSTALLED@
     86endif
     87INCL += $(ADDINCFLAGS)
    6288
    6389# 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@
     90ifeq ($(COIN_HAS_PKGCONFIG), TRUE)
     91  LIBS = `PKG_CONFIG_PATH=@COIN_PKG_CONFIG_PATH@ @PKG_CONFIG@ --libs clp`
     92else
     93  ifeq ($(COIN_CXX_IS_CL), TRUE)
     94    LIBS = /link /libpath:`$(CYGPATH_W) @abs_lib_dir@` libClp.lib @CLPLIB_LIBS_INSTALLED@
     95  else
     96    LIBS = -L@abs_lib_dir@ -lClp @CLPLIB_LIBS_INSTALLED@
     97  endif
     98endif
    6799
    68100# The following is necessary under cygwin, if native compilers are used
Note: See TracChangeset for help on using the changeset viewer.