summaryrefslogtreecommitdiff
path: root/wasm2c/examples/rot13/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'wasm2c/examples/rot13/Makefile')
-rw-r--r--wasm2c/examples/rot13/Makefile11
1 files changed, 7 insertions, 4 deletions
diff --git a/wasm2c/examples/rot13/Makefile b/wasm2c/examples/rot13/Makefile
index 1d46b3a9..ba93d114 100644
--- a/wasm2c/examples/rot13/Makefile
+++ b/wasm2c/examples/rot13/Makefile
@@ -1,17 +1,20 @@
# Use implicit rules for compiling C files.
CFLAGS=-I../..
+LDLIBS=-lm
all: rot13
clean:
- rm -rf rot13 rot13.wasm rot13.c *.o
+ rm -rf rot13 rot13.wasm rot13.c rot13.h *.o
-rot13: main.o rot13.o ../../wasm-rt-impl.o ../../wasm-rt-mem-impl.o -lm
+rot13: main.o rot13.o ../../wasm-rt-impl.o ../../wasm-rt-mem-impl.o
+
+main.o: rot13.h
rot13.wasm: rot13.wat ../../../bin/wat2wasm
../../../bin/wat2wasm $< -o $@
-rot13.c: rot13.wasm ../../../bin/wasm2c
- ../../../bin/wasm2c $< -o $@ --disable-simd
+rot13.c rot13.h: rot13.wasm ../../../bin/wasm2c
+ ../../../bin/wasm2c $< -o rot13.c --disable-simd
.PHONY: all clean