Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
14 lines (10 sloc) 474 Bytes
BENCHMARKS=src/benchmarks
EMCC=emcc
EMCCFLAGS=-O2 -s WASM=1 -s NO_EXIT_RUNTIME=1 -s EXTRA_EXPORTED_RUNTIME_METHODS='["ccall"]' -s ASSERTIONS=1
ARRAY_REVERSE=$(BENCHMARKS)/array-reverse/array-reverse.c
BUBBLESORT=$(BENCHMARKS)/bubblesort/bubblesort.c
FIBONACCI=$(BENCHMARKS)/fibonacci/fibonacci.c
dist/c-funcs.js: $(ARRAY_REVERSE) $(BUBBLESORT) $(FIBONACCI)
$(EMCC) $(EMCCFLAGS) $(ARRAY_REVERSE) $(BUBBLESORT) $(FIBONACCI) -o dist/c-funcs.js
clean:
rm -rf dist/c-funcs*