gctf2023/pwn/35-shades-of-wasm/35ShadesOfWasm/payload_example/Makefile
2023-11-24 13:11:34 -05:00

9 lines
238 B
Makefile

wasi-sdk=/opt/wasi-sdk
payload: payload.c
$(wasi-sdk)/bin/clang payload.c --target=wasm32-unknown-wasi --sysroot $(wasi-sdk)/share/wasi-sysroot/ \
-O0 -g -o payload.wasm
base64 payload.wasm -w 0 > payload.wasm.base64
all: payload