File: Makefile.check

package info (click to toggle)
libmurmurhash 1.3-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 204 kB
  • sloc: ansic: 935; makefile: 46; sh: 9
file content (27 lines) | stat: -rw-r--r-- 595 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
## checks
mmh.o: test/mmh.c
	$(CC) -I. $(CPPFLAGS) $(CFLAGS) -c -o $@ $^

MurmurHash3.o: test/MurmurHash3.c test/MurmurHash3.h
	$(CC) -I. $(CPPFLAGS) $(CFLAGS) -c -o $@ test/MurmurHash3.c

mmh: mmh.o libmurmurhash.a
	$(CC) $(CFLAGS) -o $@ $^ -L. -lmurmurhash

mmh_d: test/mmh.c
	$(CC) $(CPPFLAGS) $(CFLAGS) -o $@ $^ -lmurmurhash

mmh_r: mmh.o MurmurHash3.o
	$(CC) $(CFLAGS) -o $@ $^

check: mmh mmh_r
	diff test/almostempty.hash <(./mmh test/almostempty)

check-dynamic: mmh_d
	diff test/almostempty.hash <(./mmh_d test/almostempty)

## misc

format:
	clang-format -i *.c *.h test/*.c test/*.h