diff options
Diffstat (limited to 'wasm2c/examples/fac/Makefile')
-rw-r--r-- | wasm2c/examples/fac/Makefile | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/wasm2c/examples/fac/Makefile b/wasm2c/examples/fac/Makefile index f5b2a338..caf32e24 100644 --- a/wasm2c/examples/fac/Makefile +++ b/wasm2c/examples/fac/Makefile @@ -1,9 +1,17 @@ # Use implicit rules for compiling C files. CFLAGS=-I../.. + +all: fac + +clean: + rm -rf fac fac.wasm fac.c *.o + fac: main.o fac.o ../../wasm-rt-impl.o -fac.wasm: fac.wat +fac.wasm: fac.wat ../../../bin/wat2wasm ../../../bin/wat2wasm $< -o $@ -fac.c: fac.wasm +fac.c: fac.wasm ../../../bin/wasm2c ../../../bin/wasm2c $< -o $@ + +.PHONY: all clean |