-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
32 lines (24 loc) · 850 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# CFLAGS+= -ggdb3 -DDEBUG_BUILD=1
all:test test2
include $(PWART_SOURCE_DIR)/pwart/make_config.mk
test:build_pwart
- rm testexe || rm testexe.exe
$(CC) $(PWART_CFLAGS) $(CFLAGS) -o testexe testmain.c $(PWART_LDFLAGS) $(LDFLAGS)
$(WAT2WASM) --enable-multi-memory --enable-extended-const --enable-tail-call test1.wat
$(WAT2WASM) unary.wat
$(WAT2WASM) binary.wat
$(WAT2WASM) control.wat
$(WAT2WASM) convert.wat
$(WAT2WASM) compare.wat
./testexe
test2:build_pwart
$(CC) $(PWART_CFLAGS) $(CFLAGS) -o testexe2 testmain2.c $(PWART_LDFLAGS) $(LDFLAGS)
$(WAT2WASM) --enable-multi-memory extension1.wat
$(WAT2WASM) benchsort.wat
./testexe2
# WIP...
test3:build_pwart
$(CC) $(PWART_CFLAGS) $(CFLAGS) -o testexe3 testexe3.c $(PWART_LDFLAGS) $(LDFLAGS)
$(WAT2WASM) --enable-multi-memory extension1.wat
$(WAT2WASM) benchsort.wat
./testexe3