forked from googlecodelabs/web-assembly-introduction
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
29 lines (21 loc) · 723 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
# Build all of the web assembly examples
#
# Remember to
# source emsdk_env.sh
# Uncomment the next line for compile diagnostics
# export EMCC_DEBUG=1
SOLUTION=lyff/solution/output.wasm
NK=lyff/nk/output.wasm
SIMPLE=mandelbrot-simple/mandelbrot.wasm
TILED=mandelbrot-tiled/mandelbrot.wasm
all: $(SOLUTION) $(NK) $(SIMPLE) $(TILED)
$(SOLUTION): lyff/lyff.c lyff/solution/build.sh
cd lyff/solution; ./build.sh
$(NK): lyff/lyff.c lyff/nk/build.sh
cd lyff/nk; ./build.sh
$(SIMPLE): mandelbrot-simple/mandelbrot.cpp mandelbrot-simple/Makefile
cd mandelbrot-simple; make
$(TILED): mandelbrot-tiled/mandelbrot.cpp mandelbrot-tiled/Makefile
cd mandelbrot-tiled; make
clean:
rm -f */*.js */*/*.js */*.wasm */*/*.wasm