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 := static/dartboat_wasm.js SRC := $(wildcard *.c) ../comp.c ../match.c ../board.c ../checkouts.c all: $(TARGET) $(TARGET): $(SRC) $(CC) $(CFLAGS) $^ -o $@ clean: rm -f $(TARGET) $(TARGET:.js=.wasm) .PHONY: all clean