
CC = clang
CFLAGS = -Wall -Werror -gdwarf-4 -fsanitize=address,leak,undefined

.PHONY: all
all: testTrie autocomplete predict

testTrie: testTrie.c trie.c
	$(CC) $(CFLAGS) -o testTrie testTrie.c trie.c

autocomplete: autocomplete.c trie.c
	$(CC) $(CFLAGS) -o autocomplete autocomplete.c trie.c

predict: predict.c trie.c
	$(CC) $(CFLAGS) -o predict predict.c trie.c

.PHONY: clean
clean:
	rm -rf *.dSYM
	rm -f testTrie autocomplete predict

