Mercurial > hg > mxe-octave-anirudha
view src/pthreads.mk @ 3013:bcc26ffe9a0f
use variable for --host and --build configure arguments
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Sun, 02 Jun 2013 12:40:32 -0400 |
parents | 4f9b72cf7ee7 |
children | b6c7244a2f66 |
line wrap: on
line source
# This file is part of MXE. # See index.html for further information. PKG := pthreads $(PKG)_IGNORE := $(PKG)_CHECKSUM := 24d40e89c2e66a765733e8c98d6f94500343da86 $(PKG)_SUBDIR := pthreads-w32-$($(PKG)_VERSION)-release $(PKG)_FILE := pthreads-w32-$($(PKG)_VERSION)-release.tar.gz $(PKG)_URL := ftp://sourceware.org/pub/pthreads-win32/$($(PKG)_FILE) $(PKG)_DEPS := gcc define $(PKG)_UPDATE $(WGET) -q -O- 'ftp://sourceware.org/pub/pthreads-win32/dll-latest/include/pthread.h' | \ $(SED) -n 's/^#define PTW32_VERSION \([^,]*\),\([^,]*\),\([^,]*\),.*/\1-\2-\3/p;' endef ifeq ($(MXE_SYSTEM),mingw) define $(PKG)_BUILD $(MAKE) -C '$(1)' -j 1 GC-static CROSS='$(TARGET)-' $(INSTALL) -d '$(MXE_LIBDIR)' $(INSTALL) -m644 '$(1)/libpthreadGC2.a' '$(MXE_LIBDIR)/libpthread.a' if [ $(BUILD_SHARED) = yes ]; then \ $(MAKE_SHARED_FROM_STATIC) --ar '$(TARGET)-ar' --ld '$(TARGET)-gcc' '$(MXE_LIBDIR)/libpthread.a' --install '$(INSTALL)' --libdir '$(MXE_LIBDIR)' --bindir '$(MXE_BINDIR)'; \ fi $(INSTALL) -d '$(MXE_INCDIR)' $(INSTALL) -m644 '$(1)/pthread.h' '$(MXE_INCDIR)/' $(INSTALL) -m644 '$(1)/sched.h' '$(MXE_INCDIR)/' $(INSTALL) -m644 '$(1)/semaphore.h' '$(MXE_INCDIR)/' endef else define $(PKG)_BUILD endef endif