Add Makefile
This commit is contained in:
parent
5072d09682
commit
c0ec93c184
|
@ -0,0 +1,18 @@
|
|||
CC = clang
|
||||
|
||||
LIBS = -lm
|
||||
|
||||
x86:
|
||||
$(CC) $(LIBS) klock4_x86.c -o klock4-x86
|
||||
|
||||
uc:
|
||||
$(CC) $(LIBS) klock4_uc.c -o klock4-uc
|
||||
|
||||
wasm:
|
||||
mkdir -p html_out
|
||||
emcc klock4_wasm.c -s WASM=1 -o html_out/klock4.html --shell-file html_template/shell_minimal.html
|
||||
|
||||
all: x86 uc wasm
|
||||
|
||||
clean:
|
||||
rm -rf klock4-x86 klock4-uc html_out
|
Loading…
Reference in New Issue