Changeset 1637 for trunk/Clp/Makefile.am


Ignore:
Timestamp:
Nov 28, 2010 3:42:24 PM (9 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/Makefile.am

    r1636 r1637  
    115115endif
    116116
    117 if COIN_HAS_PKGCONFIG
    118117addlibsdir = $(DESTDIR)$(datadir)/coin/doc/Clp
    119118       
    120119install-data-hook:
    121120        @$(mkdir_p) "$(addlibsdir)"
     121if COIN_HAS_PKGCONFIG
    122122        PKG_CONFIG_PATH=@COIN_PKG_CONFIG_PATH@ \
    123123        $(PKG_CONFIG) --libs clp > $(addlibsdir)/clp_addlibs.txt
     124else
     125        echo -L@abs_lib_dir@ -lClp @CLPLIB_LIBS_INSTALLED@ > $(addlibsdir)/clp_addlibs.txt
     126endif
    124127
    125128uninstall-hook:
    126129        rm -f $(addlibsdir)/clp_addlibs.txt
    127 endif
    128130
    129131########################################################################
Note: See TracChangeset for help on using the changeset viewer.