-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
420 lines (309 loc) · 21.4 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
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
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
CXX = clang++
CXX_FLAGS = -std=c++14 -Isrc \
-Wfatal-errors -Wall -Wextra \
-Wpedantic -Wconversion -Wshadow \
-Wno-unused-parameter \
-Wno-sign-conversion
ifeq ($(DBG),true)
CXX_FLAGS += -O1 -g -fsanitize=address -fno-omit-frame-pointer -DDBG
else
CXX_FLAGS += -O3 # -DNDEBUG
endif
BDIR = ./build
IDIR = ./inputs
ODIR = ./outputs
CPP = $(shell find src -name "*.cc")
OBJ = $(CPP:%.cc=$(BDIR)/%.o)
DEP = $(OBJ:%.o=%.d)
$(ODIR)/$(IN)/$(PROG): \
$(BDIR)/input_generator/$(IN) \
$(BDIR)/data_structures/$(PROG)
@mkdir -p $(@D)
$(BDIR)/input_generator/$(IN) | $(BDIR)/data_structures/$(PROG) $(CHK) > $@
tail $@
# Install google benchmark first: https://github.com/google/benchmark
$(BDIR)/benchmarks/% : $(BDIR)/src/benchmarks/%.o
@mkdir -p $(@D)
$(CXX) $(CXX_FLAGS) -lbenchmark $^ -o $@
$(BDIR)/% : $(BDIR)/src/%.o
@mkdir -p $(@D)
$(CXX) $(CXX_FLAGS) $^ -o $@
-include $(DEP)
$(BDIR)/%.o : %.cc
@mkdir -p $(@D)
$(CXX) $(CXX_FLAGS) -MMD -c $< -o $@
bench: $(BDIR)/benchmarks/insert
$(BDIR)/benchmarks/insert
# Used for Travis CI
test:
$(eval IN := random1m_noup1m)
$(eval CHK := 711855270470843746)
make IN=$(IN) CHK=$(CHK) PROG=art/art
make IN=$(IN) CHK=$(CHK) PROG=comb/comb
make IN=$(IN) CHK=$(CHK) PROG=google/btree
make IN=$(IN) CHK=$(CHK) PROG=stx/btree
test_sorts: $(BDIR)/experiments/test_sorts
$(BDIR)/experiments/test_sorts
partition: $(BDIR)/partition
$(BDIR)/partition
split: $(BDIR)/split
$(BDIR)/split
all: \
$(ODIR)/art_best \
$(ODIR)/art_crack \
$(ODIR)/crack \
$(ODIR)/multiset \
$(ODIR)/ctree \
$(ODIR)/ctree_eager \
$(ODIR)/ctree_with_crack \
$(ODIR)/ctree_exp_leafsize \
$(ODIR)/sort \
$(ODIR)/ctree_tests
$(ODIR)/comb3: comb3.cc comb3.h test.h update.h query.h util.h
$(CXX) $(CXXFLAGS) $(FLAGS) -DCOMB6400 -Wall -o $@ $<
$(ODIR)/comb_art_1000000000_1000000000: comb_art.cc comb_art.h art.h test.h update.h query.h util.h
$(CXX) $(CXXFLAGS) $(FLAGS) -DLARGE_TOUCH=1000000000 -DSMALL_TOUCH=1000000000 -Wall -o $@ $<
$(ODIR)/comb_art_skew_0_0: comb_art.cc comb_art.h art.h test.h update.h query.h util.h
$(CXX) $(CXXFLAGS) $(FLAGS) -DLARGE_TOUCH=1000000000 -DSMALL_TOUCH=1000000000 -DSKEW_X=0 -DSKEW_Y=0 -Wall -o $@ $<
$(ODIR)/comb_art_skew_0_20: comb_art.cc comb_art.h art.h test.h update.h query.h util.h
$(CXX) $(CXXFLAGS) $(FLAGS) -DLARGE_TOUCH=1000000000 -DSMALL_TOUCH=1000000000 -DSKEW_X=0 -DSKEW_Y=20 -Wall -o $@ $<
$(ODIR)/comb_art_skew_0_40: comb_art.cc comb_art.h art.h test.h update.h query.h util.h
$(CXX) $(CXXFLAGS) $(FLAGS) -DLARGE_TOUCH=1000000000 -DSMALL_TOUCH=1000000000 -DSKEW_X=0 -DSKEW_Y=40 -Wall -o $@ $<
$(ODIR)/comb_art_skew_0_60: comb_art.cc comb_art.h art.h test.h update.h query.h util.h
$(CXX) $(CXXFLAGS) $(FLAGS) -DLARGE_TOUCH=1000000000 -DSMALL_TOUCH=1000000000 -DSKEW_X=0 -DSKEW_Y=60 -Wall -o $@ $<
$(ODIR)/comb_art_skew_0_80: comb_art.cc comb_art.h art.h test.h update.h query.h util.h
$(CXX) $(CXXFLAGS) $(FLAGS) -DLARGE_TOUCH=1000000000 -DSMALL_TOUCH=1000000000 -DSKEW_X=0 -DSKEW_Y=80 -Wall -o $@ $<
$(ODIR)/comb_art_skew_0_100: comb_art.cc comb_art.h art.h test.h update.h query.h util.h
$(CXX) $(CXXFLAGS) $(FLAGS) -DLARGE_TOUCH=1000000000 -DSMALL_TOUCH=1000000000 -DSKEW_X=0 -DSKEW_Y=100 -Wall -o $@ $<
$(ODIR)/comb_art_skew_10_0: comb_art.cc comb_art.h art.h test.h update.h query.h util.h
$(CXX) $(CXXFLAGS) $(FLAGS) -DLARGE_TOUCH=1000000000 -DSMALL_TOUCH=1000000000 -DSKEW_X=10 -DSKEW_Y=0 -Wall -o $@ $<
$(ODIR)/comb_art_skew_10_20: comb_art.cc comb_art.h art.h test.h update.h query.h util.h
$(CXX) $(CXXFLAGS) $(FLAGS) -DLARGE_TOUCH=1000000000 -DSMALL_TOUCH=1000000000 -DSKEW_X=10 -DSKEW_Y=20 -Wall -o $@ $<
$(ODIR)/comb_art_skew_10_40: comb_art.cc comb_art.h art.h test.h update.h query.h util.h
$(CXX) $(CXXFLAGS) $(FLAGS) -DLARGE_TOUCH=1000000000 -DSMALL_TOUCH=1000000000 -DSKEW_X=10 -DSKEW_Y=40 -Wall -o $@ $<
$(ODIR)/comb_art_skew_10_60: comb_art.cc comb_art.h art.h test.h update.h query.h util.h
$(CXX) $(CXXFLAGS) $(FLAGS) -DLARGE_TOUCH=1000000000 -DSMALL_TOUCH=1000000000 -DSKEW_X=10 -DSKEW_Y=60 -Wall -o $@ $<
$(ODIR)/comb_art_skew_10_80: comb_art.cc comb_art.h art.h test.h update.h query.h util.h
$(CXX) $(CXXFLAGS) $(FLAGS) -DLARGE_TOUCH=1000000000 -DSMALL_TOUCH=1000000000 -DSKEW_X=10 -DSKEW_Y=80 -Wall -o $@ $<
$(ODIR)/comb_art_skew_10_100: comb_art.cc comb_art.h art.h test.h update.h query.h util.h
$(CXX) $(CXXFLAGS) $(FLAGS) -DLARGE_TOUCH=1000000000 -DSMALL_TOUCH=1000000000 -DSKEW_X=10 -DSKEW_Y=100 -Wall -o $@ $<
$(ODIR)/comb_art_skew_20_0: comb_art.cc comb_art.h art.h test.h update.h query.h util.h
$(CXX) $(CXXFLAGS) $(FLAGS) -DLARGE_TOUCH=1000000000 -DSMALL_TOUCH=1000000000 -DSKEW_X=20 -DSKEW_Y=0 -Wall -o $@ $<
$(ODIR)/comb_art_skew_20_20: comb_art.cc comb_art.h art.h test.h update.h query.h util.h
$(CXX) $(CXXFLAGS) $(FLAGS) -DLARGE_TOUCH=1000000000 -DSMALL_TOUCH=1000000000 -DSKEW_X=20 -DSKEW_Y=20 -Wall -o $@ $<
$(ODIR)/comb_art_skew_20_40: comb_art.cc comb_art.h art.h test.h update.h query.h util.h
$(CXX) $(CXXFLAGS) $(FLAGS) -DLARGE_TOUCH=1000000000 -DSMALL_TOUCH=1000000000 -DSKEW_X=20 -DSKEW_Y=40 -Wall -o $@ $<
$(ODIR)/comb_art_skew_20_60: comb_art.cc comb_art.h art.h test.h update.h query.h util.h
$(CXX) $(CXXFLAGS) $(FLAGS) -DLARGE_TOUCH=1000000000 -DSMALL_TOUCH=1000000000 -DSKEW_X=20 -DSKEW_Y=60 -Wall -o $@ $<
$(ODIR)/comb_art_skew_20_80: comb_art.cc comb_art.h art.h test.h update.h query.h util.h
$(CXX) $(CXXFLAGS) $(FLAGS) -DLARGE_TOUCH=1000000000 -DSMALL_TOUCH=1000000000 -DSKEW_X=20 -DSKEW_Y=80 -Wall -o $@ $<
$(ODIR)/comb_art_skew_20_100: comb_art.cc comb_art.h art.h test.h update.h query.h util.h
$(CXX) $(CXXFLAGS) $(FLAGS) -DLARGE_TOUCH=1000000000 -DSMALL_TOUCH=1000000000 -DSKEW_X=20 -DSKEW_Y=100 -Wall -o $@ $<
$(ODIR)/comb_art_skew_30_0: comb_art.cc comb_art.h art.h test.h update.h query.h util.h
$(CXX) $(CXXFLAGS) $(FLAGS) -DLARGE_TOUCH=1000000000 -DSMALL_TOUCH=1000000000 -DSKEW_X=30 -DSKEW_Y=0 -Wall -o $@ $<
$(ODIR)/comb_art_skew_30_20: comb_art.cc comb_art.h art.h test.h update.h query.h util.h
$(CXX) $(CXXFLAGS) $(FLAGS) -DLARGE_TOUCH=1000000000 -DSMALL_TOUCH=1000000000 -DSKEW_X=30 -DSKEW_Y=20 -Wall -o $@ $<
$(ODIR)/comb_art_skew_30_40: comb_art.cc comb_art.h art.h test.h update.h query.h util.h
$(CXX) $(CXXFLAGS) $(FLAGS) -DLARGE_TOUCH=1000000000 -DSMALL_TOUCH=1000000000 -DSKEW_X=30 -DSKEW_Y=40 -Wall -o $@ $<
$(ODIR)/comb_art_skew_30_60: comb_art.cc comb_art.h art.h test.h update.h query.h util.h
$(CXX) $(CXXFLAGS) $(FLAGS) -DLARGE_TOUCH=1000000000 -DSMALL_TOUCH=1000000000 -DSKEW_X=30 -DSKEW_Y=60 -Wall -o $@ $<
$(ODIR)/comb_art_skew_30_80: comb_art.cc comb_art.h art.h test.h update.h query.h util.h
$(CXX) $(CXXFLAGS) $(FLAGS) -DLARGE_TOUCH=1000000000 -DSMALL_TOUCH=1000000000 -DSKEW_X=30 -DSKEW_Y=80 -Wall -o $@ $<
$(ODIR)/comb_art_skew_30_100: comb_art.cc comb_art.h art.h test.h update.h query.h util.h
$(CXX) $(CXXFLAGS) $(FLAGS) -DLARGE_TOUCH=1000000000 -DSMALL_TOUCH=1000000000 -DSKEW_X=30 -DSKEW_Y=100 -Wall -o $@ $<
$(ODIR)/comb_art_skew_40_0: comb_art.cc comb_art.h art.h test.h update.h query.h util.h
$(CXX) $(CXXFLAGS) $(FLAGS) -DLARGE_TOUCH=1000000000 -DSMALL_TOUCH=1000000000 -DSKEW_X=40 -DSKEW_Y=0 -Wall -o $@ $<
$(ODIR)/comb_art_skew_40_20: comb_art.cc comb_art.h art.h test.h update.h query.h util.h
$(CXX) $(CXXFLAGS) $(FLAGS) -DLARGE_TOUCH=1000000000 -DSMALL_TOUCH=1000000000 -DSKEW_X=40 -DSKEW_Y=20 -Wall -o $@ $<
$(ODIR)/comb_art_skew_40_40: comb_art.cc comb_art.h art.h test.h update.h query.h util.h
$(CXX) $(CXXFLAGS) $(FLAGS) -DLARGE_TOUCH=1000000000 -DSMALL_TOUCH=1000000000 -DSKEW_X=40 -DSKEW_Y=40 -Wall -o $@ $<
$(ODIR)/comb_art_skew_40_60: comb_art.cc comb_art.h art.h test.h update.h query.h util.h
$(CXX) $(CXXFLAGS) $(FLAGS) -DLARGE_TOUCH=1000000000 -DSMALL_TOUCH=1000000000 -DSKEW_X=40 -DSKEW_Y=60 -Wall -o $@ $<
$(ODIR)/comb_art_skew_40_80: comb_art.cc comb_art.h art.h test.h update.h query.h util.h
$(CXX) $(CXXFLAGS) $(FLAGS) -DLARGE_TOUCH=1000000000 -DSMALL_TOUCH=1000000000 -DSKEW_X=40 -DSKEW_Y=80 -Wall -o $@ $<
$(ODIR)/comb_art_skew_40_100: comb_art.cc comb_art.h art.h test.h update.h query.h util.h
$(CXX) $(CXXFLAGS) $(FLAGS) -DLARGE_TOUCH=1000000000 -DSMALL_TOUCH=1000000000 -DSKEW_X=40 -DSKEW_Y=100 -Wall -o $@ $<
$(ODIR)/comb_art_skew_50_0: comb_art.cc comb_art.h art.h test.h update.h query.h util.h
$(CXX) $(CXXFLAGS) $(FLAGS) -DLARGE_TOUCH=1000000000 -DSMALL_TOUCH=1000000000 -DSKEW_X=50 -DSKEW_Y=0 -Wall -o $@ $<
$(ODIR)/comb_art_skew_50_20: comb_art.cc comb_art.h art.h test.h update.h query.h util.h
$(CXX) $(CXXFLAGS) $(FLAGS) -DLARGE_TOUCH=1000000000 -DSMALL_TOUCH=1000000000 -DSKEW_X=50 -DSKEW_Y=20 -Wall -o $@ $<
$(ODIR)/comb_art_skew_50_40: comb_art.cc comb_art.h art.h test.h update.h query.h util.h
$(CXX) $(CXXFLAGS) $(FLAGS) -DLARGE_TOUCH=1000000000 -DSMALL_TOUCH=1000000000 -DSKEW_X=50 -DSKEW_Y=40 -Wall -o $@ $<
$(ODIR)/comb_art_skew_50_60: comb_art.cc comb_art.h art.h test.h update.h query.h util.h
$(CXX) $(CXXFLAGS) $(FLAGS) -DLARGE_TOUCH=1000000000 -DSMALL_TOUCH=1000000000 -DSKEW_X=50 -DSKEW_Y=60 -Wall -o $@ $<
$(ODIR)/comb_art_skew_50_80: comb_art.cc comb_art.h art.h test.h update.h query.h util.h
$(CXX) $(CXXFLAGS) $(FLAGS) -DLARGE_TOUCH=1000000000 -DSMALL_TOUCH=1000000000 -DSKEW_X=50 -DSKEW_Y=80 -Wall -o $@ $<
$(ODIR)/comb_art_skew_50_100: comb_art.cc comb_art.h art.h test.h update.h query.h util.h
$(CXX) $(CXXFLAGS) $(FLAGS) -DLARGE_TOUCH=1000000000 -DSMALL_TOUCH=1000000000 -DSKEW_X=50 -DSKEW_Y=100 -Wall -o $@ $<
$(ODIR)/comb_art_0_0: comb_art.cc comb_art.h art.h test.h update.h query.h util.h
$(CXX) $(CXXFLAGS) $(FLAGS) -DLARGE_TOUCH=0 -DSMALL_TOUCH=0 -Wall -o $@ $<
$(ODIR)/comb_art_1_0: comb_art.cc comb_art.h art.h test.h update.h query.h util.h
$(CXX) $(CXXFLAGS) $(FLAGS) -DLARGE_TOUCH=1 -DSMALL_TOUCH=0 -Wall -o $@ $<
$(ODIR)/comb_art_1_1: comb_art.cc comb_art.h art.h test.h update.h query.h util.h
$(CXX) $(CXXFLAGS) $(FLAGS) -DLARGE_TOUCH=1 -DSMALL_TOUCH=1 -Wall -o $@ $<
$(ODIR)/comb_art_1_10: comb_art.cc comb_art.h art.h test.h update.h query.h util.h
$(CXX) $(CXXFLAGS) $(FLAGS) -DLARGE_TOUCH=1 -DSMALL_TOUCH=10 -Wall -o $@ $<
$(ODIR)/comb_art_1_100: comb_art.cc comb_art.h art.h test.h update.h query.h util.h
$(CXX) $(CXXFLAGS) $(FLAGS) -DLARGE_TOUCH=1 -DSMALL_TOUCH=100 -Wall -o $@ $<
$(ODIR)/comb_art_1_1000: comb_art.cc comb_art.h art.h test.h update.h query.h util.h
$(CXX) $(CXXFLAGS) $(FLAGS) -DLARGE_TOUCH=1 -DSMALL_TOUCH=1000 -Wall -o $@ $<
$(ODIR)/comb_art_10_0: comb_art.cc comb_art.h art.h test.h update.h query.h util.h
$(CXX) $(CXXFLAGS) $(FLAGS) -DLARGE_TOUCH=10 -DSMALL_TOUCH=0 -Wall -o $@ $<
$(ODIR)/comb_art_10_1: comb_art.cc comb_art.h art.h test.h update.h query.h util.h
$(CXX) $(CXXFLAGS) $(FLAGS) -DLARGE_TOUCH=10 -DSMALL_TOUCH=1 -Wall -o $@ $<
$(ODIR)/comb_art_10_10: comb_art.cc comb_art.h art.h test.h update.h query.h util.h
$(CXX) $(CXXFLAGS) $(FLAGS) -DLARGE_TOUCH=10 -DSMALL_TOUCH=10 -Wall -o $@ $<
$(ODIR)/comb_art_10_100: comb_art.cc comb_art.h art.h test.h update.h query.h util.h
$(CXX) $(CXXFLAGS) $(FLAGS) -DLARGE_TOUCH=10 -DSMALL_TOUCH=100 -Wall -o $@ $<
$(ODIR)/comb_art_10_1000: comb_art.cc comb_art.h art.h test.h update.h query.h util.h
$(CXX) $(CXXFLAGS) $(FLAGS) -DLARGE_TOUCH=10 -DSMALL_TOUCH=1000 -Wall -o $@ $<
$(ODIR)/comb_art_100_0: comb_art.cc comb_art.h art.h test.h update.h query.h util.h
$(CXX) $(CXXFLAGS) $(FLAGS) -DLARGE_TOUCH=100 -DSMALL_TOUCH=0 -Wall -o $@ $<
$(ODIR)/comb_art_100_1: comb_art.cc comb_art.h art.h test.h update.h query.h util.h
$(CXX) $(CXXFLAGS) $(FLAGS) -DLARGE_TOUCH=100 -DSMALL_TOUCH=1 -Wall -o $@ $<
$(ODIR)/comb_art_100_10: comb_art.cc comb_art.h art.h test.h update.h query.h util.h
$(CXX) $(CXXFLAGS) $(FLAGS) -DLARGE_TOUCH=100 -DSMALL_TOUCH=10 -Wall -o $@ $<
$(ODIR)/comb_art_100_100: comb_art.cc comb_art.h art.h test.h update.h query.h util.h
$(CXX) $(CXXFLAGS) $(FLAGS) -DLARGE_TOUCH=100 -DSMALL_TOUCH=100 -Wall -o $@ $<
$(ODIR)/comb_art_100_1000: comb_art.cc comb_art.h art.h test.h update.h query.h util.h
$(CXX) $(CXXFLAGS) $(FLAGS) -DLARGE_TOUCH=100 -DSMALL_TOUCH=1000 -Wall -o $@ $<
$(ODIR)/comb_art_1000_0: comb_art.cc comb_art.h art.h test.h update.h query.h util.h
$(CXX) $(CXXFLAGS) $(FLAGS) -DLARGE_TOUCH=1000 -DSMALL_TOUCH=0 -Wall -o $@ $<
$(ODIR)/comb_art_1000_1: comb_art.cc comb_art.h art.h test.h update.h query.h util.h
$(CXX) $(CXXFLAGS) $(FLAGS) -DLARGE_TOUCH=1000 -DSMALL_TOUCH=1 -Wall -o $@ $<
$(ODIR)/comb_art_1000_10: comb_art.cc comb_art.h art.h test.h update.h query.h util.h
$(CXX) $(CXXFLAGS) $(FLAGS) -DLARGE_TOUCH=1000 -DSMALL_TOUCH=10 -Wall -o $@ $<
$(ODIR)/comb_art_1000_100: comb_art.cc comb_art.h art.h test.h update.h query.h util.h
$(CXX) $(CXXFLAGS) $(FLAGS) -DLARGE_TOUCH=1000 -DSMALL_TOUCH=100 -Wall -o $@ $<
$(ODIR)/comb_art_1000_1000: comb_art.cc comb_art.h art.h test.h update.h query.h util.h
$(CXX) $(CXXFLAGS) $(FLAGS) -DLARGE_TOUCH=1000 -DSMALL_TOUCH=1000 -Wall -o $@ $<
$(ODIR)/comb800: comb.cc comb.h test.h update.h query.h util.h
$(CXX) $(CXXFLAGS) $(FLAGS) -DCOMB800 -Wall -o $@ $<
$(ODIR)/comb1600: comb.cc comb.h test.h update.h query.h util.h
$(CXX) $(CXXFLAGS) $(FLAGS) -DCOMB1600 -Wall -o $@ $<
$(ODIR)/comb3200: comb.cc comb.h test.h update.h query.h util.h
$(CXX) $(CXXFLAGS) $(FLAGS) -DCOMB3200 -Wall -o $@ $<
$(ODIR)/comb_count: comb.cc comb.h test.h update.h query.h util.h
$(CXX) $(CXXFLAGS) $(FLAGS) -Wall -DCOUNT_QUERY -o $@ $<
$(ODIR)/crack: crack.cc crack.h test.h update.h query.h util.h
$(CXX) $(CXXFLAGS) $(FLAGS) -Wall -o $@ $<
$(ODIR)/crack_count: crack.cc crack.h test.h update.h query.h util.h
$(CXX) $(CXXFLAGS) $(FLAGS) -Wall -DCOUNT_QUERY -o $@ $<
$(ODIR)/mdd1r: mdd1r.cc crack.h test.h update.h query.h util.h
$(CXX) $(CXXFLAGS) $(FLAGS) -Wall -o $@ $<
$(ODIR)/dd1r: dd1r.cc crack.h test.h update.h query.h util.h
$(CXX) $(CXXFLAGS) $(FLAGS) -Wall -o $@ $<
$(ODIR)/sort_art: sort_art.cc art.h test.h update.h query.h util.h
$(CXX) $(CXXFLAGS) $(FLAGS) -Wall -o $@ $<
$(ODIR)/arto: arto.cc arto.h test.h update.h query.h util.h
$(CXX) $(CXXFLAGS) $(FLAGS) -Wall -o $@ $<
$(ODIR)/art_best: art_best.cc art_best.h test.h update.h query.h util.h
$(CXX) $(CXXFLAGS) $(FLAGS) -Wall -o $@ $<
$(ODIR)/art_best_eager: art_best.cc art_best.h test.h update.h query.h util.h
$(CXX) $(CXXFLAGS) $(FLAGS) -DEAGER -Wall -o $@ $<
$(ODIR)/art_crack: art_crack.cc art_crack.h art.h test.h update.h query.h util.h
$(CXX) $(CXXFLAGS) $(FLAGS) -Wall -o $@ $<
$(ODIR)/artd_crack: artd_crack.cc artd_crack.h art.h test.h update.h query.h util.h
$(CXX) $(CXXFLAGS) $(FLAGS) -Wall -o $@ $<
$(ODIR)/ctree_exp_leafsize: ctree_exp_leafsize.cc ctree_exp_leafsize.h test.h update.h query.h util.h
$(CXX) $(CXXFLAGS) $(FLAGS) -Wall -o $@ $<
$(ODIR)/ctree_with_crack: ctree_with_crack.cc ctree_with_crack.h test.h update.h query.h util.h
$(CXX) $(CXXFLAGS) $(FLAGS) -Wall -o $@ $<
$(ODIR)/sort: sort.cc test.h update.h query.h util.h
$(CXX) $(CXXFLAGS) $(FLAGS) -Wall -o $@ $<
$(ODIR)/ctree_tests: ctree_tests.cc ctree.h random.h
$(CXX) $(CXXFLAGS) $(FLAGS) -Wall -o $@ $<
$(ODIR)/ctree_eager: ctree.cc ctree.h test.h update.h query.h util.h
$(CXX) $(CXXFLAGS) $(FLAGS) -DINTERNAL_BSIZE=32 -DLEAF_BSIZE=64 -DEAGER -Wall -o $@ $<
$(ODIR)/ctree_8_8: ctree.cc ctree.h test.h update.h query.h util.h
$(CXX) $(CXXFLAGS) $(FLAGS) -DINTERNAL_BSIZE=8 -DLEAF_BSIZE=8 -Wall -o $@ $<
$(ODIR)/ctree_8_16: ctree.cc ctree.h test.h update.h query.h util.h
$(CXX) $(CXXFLAGS) $(FLAGS) -DINTERNAL_BSIZE=8 -DLEAF_BSIZE=16 -Wall -o $@ $<
$(ODIR)/ctree_8_32: ctree.cc ctree.h test.h update.h query.h util.h
$(CXX) $(CXXFLAGS) $(FLAGS) -DINTERNAL_BSIZE=8 -DLEAF_BSIZE=32 -Wall -o $@ $<
$(ODIR)/ctree_8_64: ctree.cc ctree.h test.h update.h query.h util.h
$(CXX) $(CXXFLAGS) $(FLAGS) -DINTERNAL_BSIZE=8 -DLEAF_BSIZE=64 -Wall -o $@ $<
$(ODIR)/ctree_8_128: ctree.cc ctree.h test.h update.h query.h util.h
$(CXX) $(CXXFLAGS) $(FLAGS) -DINTERNAL_BSIZE=8 -DLEAF_BSIZE=128 -Wall -o $@ $<
$(ODIR)/ctree_8_256: ctree.cc ctree.h test.h update.h query.h util.h
$(CXX) $(CXXFLAGS) $(FLAGS) -DINTERNAL_BSIZE=8 -DLEAF_BSIZE=256 -Wall -o $@ $<
$(ODIR)/ctree_8_1024: ctree.cc ctree.h test.h update.h query.h util.h
$(CXX) $(CXXFLAGS) $(FLAGS) -DINTERNAL_BSIZE=8 -DLEAF_BSIZE=1024 -Wall -o $@ $<
$(ODIR)/ctree_8_4096: ctree.cc ctree.h test.h update.h query.h util.h
$(CXX) $(CXXFLAGS) $(FLAGS) -DINTERNAL_BSIZE=8 -DLEAF_BSIZE=4096 -Wall -o $@ $<
$(ODIR)/ctree_16_8: ctree.cc ctree.h test.h update.h query.h util.h
$(CXX) $(CXXFLAGS) $(FLAGS) -DINTERNAL_BSIZE=16 -DLEAF_BSIZE=8 -Wall -o $@ $<
$(ODIR)/ctree_16_16: ctree.cc ctree.h test.h update.h query.h util.h
$(CXX) $(CXXFLAGS) $(FLAGS) -DINTERNAL_BSIZE=16 -DLEAF_BSIZE=16 -Wall -o $@ $<
$(ODIR)/ctree_16_32: ctree.cc ctree.h test.h update.h query.h util.h
$(CXX) $(CXXFLAGS) $(FLAGS) -DINTERNAL_BSIZE=16 -DLEAF_BSIZE=32 -Wall -o $@ $<
$(ODIR)/ctree_16_64: ctree.cc ctree.h test.h update.h query.h util.h
$(CXX) $(CXXFLAGS) $(FLAGS) -DINTERNAL_BSIZE=16 -DLEAF_BSIZE=64 -Wall -o $@ $<
$(ODIR)/ctree_16_128: ctree.cc ctree.h test.h update.h query.h util.h
$(CXX) $(CXXFLAGS) $(FLAGS) -DINTERNAL_BSIZE=16 -DLEAF_BSIZE=128 -Wall -o $@ $<
$(ODIR)/ctree_16_256: ctree.cc ctree.h test.h update.h query.h util.h
$(CXX) $(CXXFLAGS) $(FLAGS) -DINTERNAL_BSIZE=16 -DLEAF_BSIZE=256 -Wall -o $@ $<
$(ODIR)/ctree_16_1024: ctree.cc ctree.h test.h update.h query.h util.h
$(CXX) $(CXXFLAGS) $(FLAGS) -DINTERNAL_BSIZE=16 -DLEAF_BSIZE=1024 -Wall -o $@ $<
$(ODIR)/ctree_16_4096: ctree.cc ctree.h test.h update.h query.h util.h
$(CXX) $(CXXFLAGS) $(FLAGS) -DINTERNAL_BSIZE=16 -DLEAF_BSIZE=4096 -Wall -o $@ $<
$(ODIR)/ctree_32_8: ctree.cc ctree.h test.h update.h query.h util.h
$(CXX) $(CXXFLAGS) $(FLAGS) -DINTERNAL_BSIZE=32 -DLEAF_BSIZE=8 -Wall -o $@ $<
$(ODIR)/ctree_32_16: ctree.cc ctree.h test.h update.h query.h util.h
$(CXX) $(CXXFLAGS) $(FLAGS) -DINTERNAL_BSIZE=32 -DLEAF_BSIZE=16 -Wall -o $@ $<
$(ODIR)/ctree_32_32: ctree.cc ctree.h test.h update.h query.h util.h
$(CXX) $(CXXFLAGS) $(FLAGS) -DINTERNAL_BSIZE=32 -DLEAF_BSIZE=32 -Wall -o $@ $<
$(ODIR)/ctree_32_64: ctree.cc ctree.h test.h update.h query.h util.h
$(CXX) $(CXXFLAGS) $(FLAGS) -DINTERNAL_BSIZE=32 -DLEAF_BSIZE=64 -Wall -o $@ $<
$(ODIR)/ctree_32_128: ctree.cc ctree.h test.h update.h query.h util.h
$(CXX) $(CXXFLAGS) $(FLAGS) -DINTERNAL_BSIZE=32 -DLEAF_BSIZE=128 -Wall -o $@ $<
$(ODIR)/ctree_32_256: ctree.cc ctree.h test.h update.h query.h util.h
$(CXX) $(CXXFLAGS) $(FLAGS) -DINTERNAL_BSIZE=32 -DLEAF_BSIZE=256 -Wall -o $@ $<
$(ODIR)/ctree_32_1024: ctree.cc ctree.h test.h update.h query.h util.h
$(CXX) $(CXXFLAGS) $(FLAGS) -DINTERNAL_BSIZE=32 -DLEAF_BSIZE=1024 -Wall -o $@ $<
$(ODIR)/ctree_32_4096: ctree.cc ctree.h test.h update.h query.h util.h
$(CXX) $(CXXFLAGS) $(FLAGS) -DINTERNAL_BSIZE=32 -DLEAF_BSIZE=4096 -Wall -o $@ $<
$(ODIR)/ctree_64_32: ctree.cc ctree.h test.h update.h query.h util.h
$(CXX) $(CXXFLAGS) $(FLAGS) -DINTERNAL_BSIZE=64 -DLEAF_BSIZE=32 -Wall -o $@ $<
$(ODIR)/ctree_64_64: ctree.cc ctree.h test.h update.h query.h util.h
$(CXX) $(CXXFLAGS) $(FLAGS) -DINTERNAL_BSIZE=64 -DLEAF_BSIZE=64 -Wall -o $@ $<
$(ODIR)/ctree_64_128: ctree.cc ctree.h test.h update.h query.h util.h
$(CXX) $(CXXFLAGS) $(FLAGS) -DINTERNAL_BSIZE=64 -DLEAF_BSIZE=128 -Wall -o $@ $<
$(ODIR)/ctree_64_256: ctree.cc ctree.h test.h update.h query.h util.h
$(CXX) $(CXXFLAGS) $(FLAGS) -DINTERNAL_BSIZE=64 -DLEAF_BSIZE=256 -Wall -o $@ $<
$(ODIR)/ctree_64_1024: ctree.cc ctree.h test.h update.h query.h util.h
$(CXX) $(CXXFLAGS) $(FLAGS) -DINTERNAL_BSIZE=64 -DLEAF_BSIZE=1024 -Wall -o $@ $<
$(ODIR)/ctree_64_4096: ctree.cc ctree.h test.h update.h query.h util.h
$(CXX) $(CXXFLAGS) $(FLAGS) -DINTERNAL_BSIZE=64 -DLEAF_BSIZE=4096 -Wall -o $@ $<
$(ODIR)/ctree_128_32: ctree.cc ctree.h test.h update.h query.h util.h
$(CXX) $(CXXFLAGS) $(FLAGS) -DINTERNAL_BSIZE=128 -DLEAF_BSIZE=32 -Wall -o $@ $<
$(ODIR)/ctree_128_64: ctree.cc ctree.h test.h update.h query.h util.h
$(CXX) $(CXXFLAGS) $(FLAGS) -DINTERNAL_BSIZE=128 -DLEAF_BSIZE=64 -Wall -o $@ $<
$(ODIR)/ctree_128_128: ctree.cc ctree.h test.h update.h query.h util.h
$(CXX) $(CXXFLAGS) $(FLAGS) -DINTERNAL_BSIZE=128 -DLEAF_BSIZE=128 -Wall -o $@ $<
$(ODIR)/ctree_128_256: ctree.cc ctree.h test.h update.h query.h util.h
$(CXX) $(CXXFLAGS) $(FLAGS) -DINTERNAL_BSIZE=128 -DLEAF_BSIZE=256 -Wall -o $@ $<
$(ODIR)/ctree_128_1024: ctree.cc ctree.h test.h update.h query.h util.h
$(CXX) $(CXXFLAGS) $(FLAGS) -DINTERNAL_BSIZE=128 -DLEAF_BSIZE=1024 -Wall -o $@ $<
$(ODIR)/ctree_128_4096: ctree.cc ctree.h test.h update.h query.h util.h
$(CXX) $(CXXFLAGS) $(FLAGS) -DINTERNAL_BSIZE=128 -DLEAF_BSIZE=4096 -Wall -o $@ $<
$(ODIR)/ctree_256_32: ctree.cc ctree.h test.h update.h query.h util.h
$(CXX) $(CXXFLAGS) $(FLAGS) -DINTERNAL_BSIZE=256 -DLEAF_BSIZE=32 -Wall -o $@ $<
$(ODIR)/ctree_256_64: ctree.cc ctree.h test.h update.h query.h util.h
$(CXX) $(CXXFLAGS) $(FLAGS) -DINTERNAL_BSIZE=256 -DLEAF_BSIZE=64 -Wall -o $@ $<
$(ODIR)/ctree_256_128: ctree.cc ctree.h test.h update.h query.h util.h
$(CXX) $(CXXFLAGS) $(FLAGS) -DINTERNAL_BSIZE=256 -DLEAF_BSIZE=128 -Wall -o $@ $<
$(ODIR)/ctree_256_256: ctree.cc ctree.h test.h update.h query.h util.h
$(CXX) $(CXXFLAGS) $(FLAGS) -DINTERNAL_BSIZE=256 -DLEAF_BSIZE=256 -Wall -o $@ $<
$(ODIR)/ctree_256_1024: ctree.cc ctree.h test.h update.h query.h util.h
$(CXX) $(CXXFLAGS) $(FLAGS) -DINTERNAL_BSIZE=256 -DLEAF_BSIZE=1024 -Wall -o $@ $<
$(ODIR)/ctree_256_4096: ctree.cc ctree.h test.h update.h query.h util.h
$(CXX) $(CXXFLAGS) $(FLAGS) -DINTERNAL_BSIZE=256 -DLEAF_BSIZE=4096 -Wall -o $@ $<
$(ODIR)/ctree2: ctree2.cc ctree2.h test.h update.h query.h util.h
$(CXX) $(CXXFLAGS) $(FLAGS) -DINTERNAL_BSIZE=32 -Wall -o $@ $<
$(ODIR)/ctree3: ctree3.cc ctree3.h test.h update.h query.h util.h
$(CXX) $(CXXFLAGS) $(FLAGS) -DINTERNAL_BSIZE=32 -Wall -o $@ $<
.PRECIOUS: $(BDIR)/%.o
.PHONY: clean
clean:
-@rm -fr $(BDIR)/*