forked from xtaci/algorithms
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
61 lines (58 loc) · 1.12 KB
/
Makefile
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
61
.PHONY: all clean
CC=gcc
CPP=g++
AR=ar
RANLIB=ranlib
CFLAGS=-g -Wall -Wno-unused-function
SRCDIR = ./src
INCLUDEDIR = -I./include -I.
DEPS =
LIBS = -lm
PROGRAMS = m_based \
integer_demo \
insertion_sort_demo \
radix_sort_demo \
shuffle_demo \
quick_sort_demo \
merge_sort_demo \
random_select_demo \
hash_multi_demo \
hash_table_demo \
double_linked_list_demo \
stack_demo \
queue_demo \
priority_queue_demo \
prime_test \
universal_hash_demo \
perfect_hash_demo \
binary_search_tree_demo \
rbtree_demo \
heap_demo \
interval_tree_demo \
dos_tree_demo \
skip_list_demo \
lcs_demo \
prim_mst_demo \
directed_graph_demo \
undirected_graph_demo \
dijkstra_demo \
bellman_ford_demo \
graph_search_demo \
edmonds_karp_demo \
astar_demo \
hash_string_demo \
bitset_demo \
bloom_filter_demo \
sha1_demo \
huffman_demo \
word_seg_demo \
md5_demo \
trie_demo \
simhash_demo \
imath_demo \
random_demo
all: $(PROGRAMS)
%: $(SRCDIR)/%.cpp $(DEPS)
$(CPP) $(CFLAGS) -o $@ $< $(INCLUDEDIR) $(LIBS)
clean:
rm -rf $(PROGRAMS) *.dSYM