summaryrefslogtreecommitdiffstats
path: root/debian/vendor-h2o/deps/klib/test/Makefile
blob: a392c8ed46dbe4f4ff187b2f2f0ceb0828fb561f (plain)
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
CC=gcc
CXX=g++
CFLAGS=-g -Wall -O2 -I..
CXXFLAGS=$(CFLAGS)
PROGS=kbtree_test khash_keith khash_keith2 khash_test klist_test kseq_test kseq_bench \
		kseq_bench2 ksort_test ksort_test-stl kvec_test kmin_test kstring_bench kstring_bench2 kstring_test \
		kthread_test

all:$(PROGS)

clean:
		rm -fr $(PROGS) *.dSYM a.out

kbtree_test:kbtree_test.c ../kbtree.h
		$(CC) $(CFLAGS) -o $@ kbtree_test.c

khash_keith:khash_keith.c ../khash.h
		$(CC) $(CFLAGS) -o $@ khash_keith.c

khash_keith2:khash_keith2.c ../khash.h
		$(CC) $(CFLAGS) -o $@ khash_keith2.c

khash_test:khash_test.c ../khash.h
		$(CC) $(CFLAGS) -o $@ khash_test.c

klist_test:klist_test.c ../klist.h
		$(CC) $(CFLAGS) -o $@ klist_test.c

kseq_test:kseq_test.c ../kseq.h
		$(CC) $(CFLAGS) -o $@ kseq_test.c -lz

kseq_bench:kseq_bench.c ../kseq.h
		$(CC) $(CFLAGS) -o $@ kseq_bench.c -lz

kseq_bench2:kseq_bench2.c ../kseq.h
		$(CC) $(CFLAGS) -o $@ kseq_bench2.c -lz

ksort_test:ksort_test.c ../ksort.h
		$(CC) $(CFLAGS) -o $@ ksort_test.c

ksort_test-stl:ksort_test.cc ../ksort.h
		$(CXX) $(CXXFLAGS) -o $@ ksort_test.cc

kvec_test:kvec_test.cc ../kvec.h
		$(CXX) $(CXXFLAGS) -o $@ kvec_test.cc

kmin_test:kmin_test.c ../kmath.h ../kmath.c
		$(CC) $(CFLAGS) -o $@ kmin_test.c ../kmath.c

kstring_bench:kstring_bench.c ../kstring.h ../kstring.c
		$(CC) $(CFLAGS) -o $@ kstring_bench.c ../kstring.c

kstring_bench2:kstring_bench2.c ../kstring.h ../kstring.c
		$(CC) $(CFLAGS) -o $@ kstring_bench2.c ../kstring.c

kstring_test:kstring_test.c ../kstring.h ../kstring.c
		$(CC) $(CFLAGS) -o $@ kstring_test.c ../kstring.c

kthread_test:kthread_test.c ../kthread.c
		$(CC) $(CFLAGS) -fopenmp -o $@ kthread_test.c ../kthread.c