diff options
Diffstat (limited to 'web/Makefile')
-rw-r--r-- | web/Makefile | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/web/Makefile b/web/Makefile index bdddb14..66d88f7 100644 --- a/web/Makefile +++ b/web/Makefile @@ -6,16 +6,18 @@ CFLAGS += -O3 -Wall -Wextra -Wno-unknown-warning-option -I../ \ -sEXPORTED_FUNCTIONS=_main,_malloc,_free \ -sEXPORTED_RUNTIME_METHODS=UTF8ToString,stringToUTF8,lengthBytesUTF8 -TARGET := static/dartboat_wasm.js +TARGET := dartboat_web SRC := $(wildcard *.c) ../comp.c ../match.c ../board.c ../checkouts.c all: $(TARGET) $(TARGET): $(SRC) - $(CC) $(CFLAGS) $^ -o $@ + mkdir $(TARGET) + $(CC) $(CFLAGS) $^ -o $(TARGET)/dartboat_wasm.js + cp static/* $(TARGET)/ clean: - rm -f $(TARGET) $(TARGET:.js=.wasm) + rm -rf $(TARGET) .PHONY: all clean |