summaryrefslogtreecommitdiffstats
path: root/plugins/examples/host-toolchain/winpthreads-host.mk
blob: 6d10feb0d761a8193662798f45a559f7a43d6337 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# This file is part of MXE.
# See index.html for further information.

PKG             := winpthreads-host
$(PKG)_IGNORE    = $(mingw-w64_IGNORE)
$(PKG)_VERSION   = $(mingw-w64_VERSION)
$(PKG)_CHECKSUM  = $(mingw-w64_CHECKSUM)
$(PKG)_SUBDIR    = $(mingw-w64_SUBDIR)
$(PKG)_FILE      = $(mingw-w64_FILE)
$(PKG)_URL       = $(mingw-w64_URL)
$(PKG)_URL_2     = $(mingw-w64_URL_2)
$(PKG)_DEPS     := gcc

define $(PKG)_UPDATE
    echo $(mingw-w64_VERSION)
endef

# temporary build until gcc is built only once per arch
define $(PKG)_BUILD
    cd '$(BUILD_DIR)' && '$(SOURCE_DIR)/mingw-w64-libraries/winpthreads/configure' \
        $(MXE_CONFIGURE_OPTS) \
        --enable-static \
        --enable-shared
    $(MAKE) -C '$(BUILD_DIR)' -j '$(JOBS)'
    $(MAKE) -C '$(BUILD_DIR)' -j 1 install
endef