summaryrefslogtreecommitdiffstats
path: root/src/pthreads.mk
blob: ea282327e6d50bdbaf9060bea3be0dd3bb693ca8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# This file is part of MXE.
# See index.html for further information.

# Runtimes can/will have different implementations,
# but the pre-requisite package and test are the same.

PKG             := pthreads
$(PKG)_VERSION  := POSIX 1003.1-2001
$(PKG)_CHECKSUM  = $(pthreads-w32_CHECKSUM)
$(PKG)_FILE      = $(pthreads-w32_FILE)
$(PKG)_DEPS     := pthreads-w32 winpthreads

define $(PKG)_UPDATE
    echo $(pthreads_VERSION)
endef

PTHREADS_TEST = \
    '$(TARGET)-gcc' \
        -W -Wall -Werror -ansi -pedantic \
        '$(TOP_DIR)/src/pthreads-test.c' -o '$(PREFIX)/$(TARGET)/bin/test-$(PKG).exe' \
        -lpthread -lws2_32