summaryrefslogtreecommitdiffstats
path: root/src/openmp-validation.mk
blob: 28a121973e6b95e2078f1b26c4925c32ea258ed7 (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
27
28
29
30
31
32
33
34
# This file is part of MXE.
# See index.html for further information.

PKG             := openmp-validation
$(PKG)_IGNORE   :=
$(PKG)_VERSION  := 3.1
$(PKG)_CHECKSUM := 9dbfe3cf49ab6187def83c85b57e133e11fbb667aa111f0fd70775166254dbff
$(PKG)_SUBDIR   := OpenMP$($(PKG)_VERSION)_Validation
$(PKG)_FILE     := $($(PKG)_SUBDIR).tar.gz
$(PKG)_URL      := http://web.cs.uh.edu/~openuh/download/packages/$($(PKG)_FILE)
$(PKG)_URL_2    :=
$(PKG)_DEPS     := gcc

define $(PKG)_UPDATE
    echo 'TODO: Updates for package openmp-validation need to be written.' >&2;
    echo $(openmp-validation_VERSION)
endef

define $(PKG)_BUILD
    $(MAKE) -C '$(1)' -j '$(JOBS)' \
        RUNTEST_OPTIONS='--norun' \
        EXE_SUFFIX='.exe' \
        CC='$(TARGET)-gcc' \
        FC='$(TARGET)-gfortran' \
        ctest ftest

    # execute validation tests on host - perl testsuite doesn't
    # work on windows (perl runtest.pl --nocompile --lang=c testlist-c.txt)
    # so run $(PREFIX)/$(TARGET)/bin/$(PKG)-tests/all-tests-openmp-validation.bat

    mkdir -p '$(PREFIX)/$(TARGET)/bin'
    rm -rf '$(PREFIX)/$(TARGET)/bin/$(PKG)-tests'
    cp -rv '$(1)' '$(PREFIX)/$(TARGET)/bin/$(PKG)-tests'
endef