Skip to content

Commit

Permalink
wasm2c: Cleanup examples makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
shravanrn committed Feb 12, 2024
1 parent fd3c186 commit 1471dff
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
1 change: 1 addition & 0 deletions wasm2c/.gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
wasm-rt-impl.o
wasm-rt-mem-impl.o
wasm-rt-exceptions-impl.o
examples/**/*.o
examples/fac/fac
Expand Down
4 changes: 1 addition & 3 deletions wasm2c/examples/callback/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,10 @@ CFLAGS=-I../..

all: callback

callback: main.o callback.o ../../wasm-rt-impl.o

clean:
rm -rf callback callback.wasm callback.c callback.h *.o

callback: main.o callback.o ../../wasm-rt-impl.o -lm
callback: main.o callback.o ../../wasm-rt-impl.o ../../wasm-rt-mem-impl.o -lm

callback.wasm: callback.wat ../../../bin/wat2wasm
../../../bin/wat2wasm --debug-names $< -o $@
Expand Down
4 changes: 1 addition & 3 deletions wasm2c/examples/rot13/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,10 @@ CFLAGS=-I../..

all: rot13

rot13: main.o rot13.o ../../wasm-rt-impl.o

clean:
rm -rf rot13 rot13.wasm rot13.c *.o

rot13: main.o rot13.o ../../wasm-rt-impl.o -lm
rot13: main.o rot13.o ../../wasm-rt-impl.o ../../wasm-rt-mem-impl.o -lm

rot13.wasm: rot13.wat ../../../bin/wat2wasm
../../../bin/wat2wasm $< -o $@
Expand Down

0 comments on commit 1471dff

Please sign in to comment.