From 1471dffee8bf9939044b80d34256956a28138e96 Mon Sep 17 00:00:00 2001 From: Shravan Narayan Date: Mon, 12 Feb 2024 14:10:43 -0600 Subject: [PATCH] wasm2c: Cleanup examples makefile --- wasm2c/.gitignore | 1 + wasm2c/examples/callback/Makefile | 4 +--- wasm2c/examples/rot13/Makefile | 4 +--- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/wasm2c/.gitignore b/wasm2c/.gitignore index 77757ac57..70f380917 100644 --- a/wasm2c/.gitignore +++ b/wasm2c/.gitignore @@ -1,4 +1,5 @@ wasm-rt-impl.o +wasm-rt-mem-impl.o wasm-rt-exceptions-impl.o examples/**/*.o examples/fac/fac diff --git a/wasm2c/examples/callback/Makefile b/wasm2c/examples/callback/Makefile index ece54c341..81ee53ef8 100644 --- a/wasm2c/examples/callback/Makefile +++ b/wasm2c/examples/callback/Makefile @@ -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 $@ diff --git a/wasm2c/examples/rot13/Makefile b/wasm2c/examples/rot13/Makefile index 4461af7c0..1d46b3a9f 100644 --- a/wasm2c/examples/rot13/Makefile +++ b/wasm2c/examples/rot13/Makefile @@ -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 $@