summaryrefslogtreecommitdiffstats
path: root/regressions/Makefile
blob: c74b4faea743dd3b42a7e62f8a47bbac83620a2c (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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
DIR=array	\
    backoff	\
    barrier	\
    bitmap	\
    brlock	\
    bytelock	\
    cc		\
    cohort	\
    ec		\
    epoch	\
    fifo	\
    hp		\
    hs		\
    rhs		\
    ht		\
    pflock	\
    pr		\
    queue	\
    ring	\
    rwlock	\
    swlock	\
    sequence	\
    spinlock	\
    stack	\
    swlock	\
    tflock

.PHONY: all clean check

all:
	$(MAKE) -C ./ck_array/validate all
	$(MAKE) -C ./ck_cc/validate all
	$(MAKE) -C ./ck_cohort/validate all
	$(MAKE) -C ./ck_cohort/benchmark all
	$(MAKE) -C ./ck_bitmap/validate all
	$(MAKE) -C ./ck_backoff/validate all
	$(MAKE) -C ./ck_queue/validate all
	$(MAKE) -C ./ck_brlock/validate all
	$(MAKE) -C ./ck_ht/validate all
	$(MAKE) -C ./ck_ht/benchmark all
	$(MAKE) -C ./ck_brlock/benchmark all
	$(MAKE) -C ./ck_spinlock/validate all
	$(MAKE) -C ./ck_spinlock/benchmark all
	$(MAKE) -C ./ck_fifo/validate all
	$(MAKE) -C ./ck_fifo/benchmark all
	$(MAKE) -C ./ck_pr/validate all
	$(MAKE) -C ./ck_pr/benchmark all
	$(MAKE) -C ./ck_hs/benchmark all
	$(MAKE) -C ./ck_hs/validate all
	$(MAKE) -C ./ck_rhs/benchmark all
	$(MAKE) -C ./ck_rhs/validate all
	$(MAKE) -C ./ck_barrier/validate all
	$(MAKE) -C ./ck_barrier/benchmark all
	$(MAKE) -C ./ck_bytelock/validate all
	$(MAKE) -C ./ck_bytelock/benchmark all
	$(MAKE) -C ./ck_epoch/validate all
	$(MAKE) -C ./ck_rwcohort/validate all
	$(MAKE) -C ./ck_rwcohort/benchmark all
	$(MAKE) -C ./ck_sequence/validate all
	$(MAKE) -C ./ck_sequence/benchmark all
	$(MAKE) -C ./ck_stack/validate all
	$(MAKE) -C ./ck_stack/benchmark all
	$(MAKE) -C ./ck_ring/validate all
	$(MAKE) -C ./ck_ring/benchmark all
	$(MAKE) -C ./ck_rwlock/validate all
	$(MAKE) -C ./ck_rwlock/benchmark all
	$(MAKE) -C ./ck_tflock/validate all
	$(MAKE) -C ./ck_tflock/benchmark all
	$(MAKE) -C ./ck_swlock/validate all
	$(MAKE) -C ./ck_swlock/benchmark all
	$(MAKE) -C ./ck_pflock/validate all
	$(MAKE) -C ./ck_pflock/benchmark all
	$(MAKE) -C ./ck_hp/validate all
	$(MAKE) -C ./ck_hp/benchmark all
	$(MAKE) -C ./ck_ec/validate all
	$(MAKE) -C ./ck_ec/benchmark all

clean:
	$(MAKE) -C ./ck_array/validate clean
	$(MAKE) -C ./ck_cc/validate clean
	$(MAKE) -C ./ck_pflock/validate clean
	$(MAKE) -C ./ck_pflock/benchmark clean
	$(MAKE) -C ./ck_tflock/validate clean
	$(MAKE) -C ./ck_tflock/benchmark clean
	$(MAKE) -C ./ck_rwcohort/validate clean
	$(MAKE) -C ./ck_rwcohort/benchmark clean
	$(MAKE) -C ./ck_backoff/validate clean
	$(MAKE) -C ./ck_bitmap/validate clean
	$(MAKE) -C ./ck_queue/validate clean
	$(MAKE) -C ./ck_cohort/validate clean
	$(MAKE) -C ./ck_cohort/benchmark clean
	$(MAKE) -C ./ck_brlock/validate clean
	$(MAKE) -C ./ck_ht/validate clean
	$(MAKE) -C ./ck_ht/benchmark clean
	$(MAKE) -C ./ck_hs/validate clean
	$(MAKE) -C ./ck_hs/benchmark clean
	$(MAKE) -C ./ck_rhs/validate clean
	$(MAKE) -C ./ck_rhs/benchmark clean
	$(MAKE) -C ./ck_brlock/benchmark clean
	$(MAKE) -C ./ck_spinlock/validate clean
	$(MAKE) -C ./ck_spinlock/benchmark clean
	$(MAKE) -C ./ck_fifo/validate clean
	$(MAKE) -C ./ck_fifo/benchmark clean
	$(MAKE) -C ./ck_pr/validate clean
	$(MAKE) -C ./ck_pr/benchmark clean
	$(MAKE) -C ./ck_barrier/validate clean
	$(MAKE) -C ./ck_barrier/benchmark clean
	$(MAKE) -C ./ck_bytelock/validate clean
	$(MAKE) -C ./ck_bytelock/benchmark clean
	$(MAKE) -C ./ck_epoch/validate clean
	$(MAKE) -C ./ck_sequence/validate clean
	$(MAKE) -C ./ck_sequence/benchmark clean
	$(MAKE) -C ./ck_stack/validate clean
	$(MAKE) -C ./ck_stack/benchmark clean
	$(MAKE) -C ./ck_ring/validate clean
	$(MAKE) -C ./ck_ring/benchmark clean
	$(MAKE) -C ./ck_rwlock/validate clean
	$(MAKE) -C ./ck_rwlock/benchmark clean
	$(MAKE) -C ./ck_swlock/validate clean
	$(MAKE) -C ./ck_swlock/benchmark clean
	$(MAKE) -C ./ck_pflock/validate clean
	$(MAKE) -C ./ck_pflock/benchmark clean
	$(MAKE) -C ./ck_hp/validate clean
	$(MAKE) -C ./ck_hp/benchmark clean
	$(MAKE) -C ./ck_ec/validate clean
	$(MAKE) -C ./ck_ec/benchmark clean

check: all
	rc=0; 							\
	for d in $(DIR) ; do					\
		echo "----[ Testing $$d....";			\
		$(MAKE) -C ./ck_$$d/validate check || rc=1; 	\
		echo;						\
	done; 							\
	exit $$rc