summaryrefslogtreecommitdiff
path: root/Makefile
blob: 86bacb5d4542c7c20313e39fe621ccd7652d8394 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
CC     = cc -std=c99
CFLAGS = -Wall -Wextra -O3 -g3 -march=native

all: benchmark tests

benchmark: test/benchmark.c utf8.h test/utf8-encode.h test/bh-utf8.h
	$(CC) $(CFLAGS) $(LDFLAGS) -o $@ test/benchmark.c $(LDLIBS)

tests: test/tests.c utf8.h test/utf8-encode.h
	$(CC) $(CFLAGS) $(LDFLAGS) -o $@ test/tests.c $(LDLIBS)

bench: benchmark
	./benchmark

check: tests
	./tests

clean:
	rm -f benchmark tests