blob: 66d88f70a50ba97de1384745759c0c6808d7784a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
CC := emcc
CFLAGS += -O3 -Wall -Wextra -Wno-unknown-warning-option -I../ \
-sNO_EXIT_RUNTIME=1 \
-sENVIRONMENT=web \
-sEXPORTED_FUNCTIONS=_main,_malloc,_free \
-sEXPORTED_RUNTIME_METHODS=UTF8ToString,stringToUTF8,lengthBytesUTF8
TARGET := dartboat_web
SRC := $(wildcard *.c) ../comp.c ../match.c ../board.c ../checkouts.c
all: $(TARGET)
$(TARGET): $(SRC)
mkdir $(TARGET)
$(CC) $(CFLAGS) $^ -o $(TARGET)/dartboat_wasm.js
cp static/* $(TARGET)/
clean:
rm -rf $(TARGET)
.PHONY: all clean
|