summaryrefslogtreecommitdiff
path: root/wasm2c/examples/fac/Makefile
blob: a14a4a6c820d924a1fd4588c6a69e87618ed2893 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# Use implicit rules for compiling C files.
CFLAGS=-I../..
LDLIBS=-lm

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 $@ --disable-simd

.PHONY: all clean