Skip to content

Commit 8fdc42f

Browse files
committed
clean up makefile
1 parent 9ea14dc commit 8fdc42f

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

Makefile

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,20 @@
11
# Edit for your paths
22
EMSCRIPTEN=~/Dev/emscripten
3-
EMCC=$(EMSCRIPTEN)/emcc
3+
EMCC=$(EMSCRIPTEN)/emcc -O2
4+
# -s INLINING_LIMIT=0
45
CFLAGS=-DSQLITE_OMIT_LOAD_EXTENSION
56

67
all: sql.js benchmark.html benchmark
78

89
sql.js: sqlite3.c
9-
$(EMCC) $(CFLAGS) -O2 sqlite3.c main.c --post-js bindings.js -o sql.js -s EXPORTED_FUNCTIONS="['_sqlite3_open', '_sqlite3_close', '_sqlite3_exec']"
10+
$(EMCC) $(CFLAGS) sqlite3.c main.c --post-js bindings.js -o sql.js -s EXPORTED_FUNCTIONS="['_sqlite3_open', '_sqlite3_close', '_sqlite3_exec']"
1011

1112
benchmark.html: sqlite3.c benchmark.c
12-
$(EMCC) $(CFLAGS) -O2 --closure 0 sqlite3.c benchmark.c --post-js bindings.js -o benchmark.html
13+
$(EMCC) $(CFLAGS) sqlite3.c benchmark.c -o benchmark.html
1314

1415
benchmark: benchmark.c
1516
gcc $(CFLAGS) -pthread -O2 sqlite3.c benchmark.c -o benchmark
1617

17-
# INLINING?
18+
clean:
19+
rm sql.js benchmark.html benchmark
1820

0 commit comments

Comments
 (0)