3 CFLAGS
=-g
-Wall
-O2
-I..
5 PROGS
=kbtree_test khash_keith khash_keith2 khash_test klist_test kseq_test kseq_bench \
6 kseq_bench2 ksort_test ksort_test-stl kvec_test kmin_test kstring_bench kstring_bench2 kstring_test \
12 rm -fr
$(PROGS
) *.dSYM a.out
*.o
14 kbtree_test
:kbtree_test.c ..
/kbtree.h
15 $(CC
) $(CFLAGS
) -o
$@ kbtree_test.c
17 khash_keith
:khash_keith.c ..
/khash.h
18 $(CC
) $(CFLAGS
) -o
$@ khash_keith.c
20 khash_keith2
:khash_keith2.c ..
/khash.h
21 $(CC
) $(CFLAGS
) -o
$@ khash_keith2.c
23 khash_test
:khash_test.c ..
/khash.h
24 $(CC
) $(CFLAGS
) -o
$@ khash_test.c
26 klist_test
:klist_test.c ..
/klist.h
27 $(CC
) $(CFLAGS
) -o
$@ klist_test.c
29 kseq_test
:kseq_test.c ..
/kseq.h
30 $(CC
) $(CFLAGS
) -o
$@ kseq_test.c
-lz
32 kseq_bench
:kseq_bench.c ..
/kseq.h
33 $(CC
) $(CFLAGS
) -o
$@ kseq_bench.c
-lz
35 kseq_bench2
:kseq_bench2.c ..
/kseq.h
36 $(CC
) $(CFLAGS
) -o
$@ kseq_bench2.c
-lz
38 ksort_test
:ksort_test.c ..
/ksort.h
39 $(CC
) $(CFLAGS
) -o
$@ ksort_test.c
41 ksort_test-stl
:ksort_test.
cc ..
/ksort.h
42 $(CXX
) $(CXXFLAGS
) -o
$@ ksort_test.
cc
44 kvec_test
:kvec_test.
cc ..
/kvec.h
45 $(CXX
) $(CXXFLAGS
) -o
$@ kvec_test.
cc
47 kmin_test
:kmin_test.c ..
/kmath.h ..
/kmath.c
48 $(CC
) $(CFLAGS
) -o
$@ kmin_test.c ..
/kmath.c
50 kstring_bench
:kstring_bench.c ..
/kstring.h ..
/kstring.c
51 $(CC
) $(CFLAGS
) -o
$@ kstring_bench.c ..
/kstring.c
53 kstring_bench2
:kstring_bench2.c ..
/kstring.h ..
/kstring.c
54 $(CC
) $(CFLAGS
) -o
$@ kstring_bench2.c ..
/kstring.c
56 kstring_test
:kstring_test.c ..
/kstring.h ..
/kstring.c
57 $(CC
) $(CFLAGS
) -o
$@ kstring_test.c ..
/kstring.c
59 kthread_test
:kthread_test.c ..
/kthread.c
60 $(CC
) $(CFLAGS
) -fopenmp
-o
$@ kthread_test.c ..
/kthread.c
62 kthread_test2
:kthread_test2.c ..
/kthread.c
63 $(CC
) $(CFLAGS
) -o
$@ kthread_test2.c ..
/kthread.c
65 ketopt_test
:ketopt_test.c ..
/ketopt.h
66 $(CC
) $(CFLAGS
) -o
$@ ketopt_test.c