diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..2f2928e --- /dev/null +++ b/Makefile @@ -0,0 +1,18 @@ +CC = c99 +CFLAGS = -Wall -Wextra -O3 -g3 +all: benchmark tests + +benchmark: test/benchmark.c utf8.h test/utf8-encode.h test/bj-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 |