From c0ec93c18423ffa83f04d6b4079e42edc8405fc0 Mon Sep 17 00:00:00 2001 From: Oskar Date: Wed, 21 Apr 2021 15:34:38 +0200 Subject: [PATCH] Add Makefile --- Makefile | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 Makefile 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