view src/uuid.mk @ 3048:5ef49fb3299d

treat gcc and binutils as build tools use a separate target for building the cmake toolchain file don't unpack gcc or binutils if we are using the system compiler
author John W. Eaton <jwe@octave.org>
date Fri, 14 Jun 2013 16:51:29 -0400
parents 41800279e33a
children 13be64f9f16d
line wrap: on
line source

# This file is part of MXE.
# See index.html for further information.

PKG             := uuid
$(PKG)_IGNORE   = $(w32api_IGNORE)
$(PKG)_CHECKSUM = $(w32api_CHECKSUM)
$(PKG)_SUBDIR   = $(w32api_SUBDIR)
$(PKG)_FILE     = $(w32api_FILE)
$(PKG)_URL      = $(w32api_URL)
$(PKG)_DEPS     =

define $(PKG)_UPDATE
    echo "$(w32api_VERSION)"
endef

define $(PKG)_BUILD
    if [ $(BUILD_SHARED) = yes ]; then \
      $(INSTALL) -d '$(HOST_BINDIR)'; \
      $(MAKE_SHARED_FROM_STATIC) --ar '$(MXE_AR)' --ld '$(MXE_CC)' '$(1)/lib/libuuid.a' --install '$(INSTALL)' --libdir '$(HOST_LIBDIR)' --bindir '$(HOST_BINDIR)'; \
      rm -f '$(HOST_LIBDIR)/libuuid.dll.a'; \
    fi
endef