blob: caf32e245cd4bfb5d34fcb6be89420944e778866 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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 ../../../bin/wat2wasm
../../../bin/wat2wasm $< -o $@
fac.c: fac.wasm ../../../bin/wasm2c
../../../bin/wasm2c $< -o $@
.PHONY: all clean
|