Add Makefile

This commit is contained in:
Oskar Winkels 2021-04-21 15:34:38 +02:00
parent 5072d09682
commit c0ec93c184
Signed by: o.winkels
GPG Key ID: E7484A06E99DAEF1
1 changed files with 18 additions and 0 deletions

18
Makefile Normal file
View File

@ -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