diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..669e6b8 --- /dev/null +++ b/Makefile @@ -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