summaryrefslogtreecommitdiffhomepage
path: root/pkg/contrib/src/wasi-sysroot/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/contrib/src/wasi-sysroot/Makefile')
-rw-r--r--pkg/contrib/src/wasi-sysroot/Makefile17
1 files changed, 17 insertions, 0 deletions
diff --git a/pkg/contrib/src/wasi-sysroot/Makefile b/pkg/contrib/src/wasi-sysroot/Makefile
new file mode 100644
index 00000000..fcfb8df3
--- /dev/null
+++ b/pkg/contrib/src/wasi-sysroot/Makefile
@@ -0,0 +1,17 @@
+# wasi-sysroot
+
+include $(dir $(abspath $(lastword $(MAKEFILE_LIST))))/version
+WASI_SYSROOT_URL := https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-$(WASI_SYSROOT_VERSION_MAJOR)/wasi-sysroot-$(WASI_SYSROOT_VERSION_MAJOR).$(WASI_SYSROOT_VERSION_MINOR).tar.gz
+
+PKGS += wasi-sysroot
+
+$(TARBALLS)/wasi-sysroot-$(WASI_SYSROOT_VERSION_MAJOR).$(WASI_SYSROOT_VERSION_MINOR).tar.gz:
+ $(call download_pkg,$(WASI_SYSROOT_URL),wasi-sysroot)
+
+.sum-wasi-sysroot: wasi-sysroot-$(WASI_SYSROOT_VERSION_MAJOR).$(WASI_SYSROOT_VERSION_MINOR).tar.gz
+
+wasi-sysroot: wasi-sysroot-$(WASI_SYSROOT_VERSION_MAJOR).$(WASI_SYSROOT_VERSION_MINOR).tar.gz .sum-wasi-sysroot
+ $(UNPACK)
+
+.wasi-sysroot: wasi-sysroot
+ touch $@