1
# Makefile for Kyoto Cabinet for Win32
5
#================================================================
7
#================================================================
11
VCPATH = C:\Program Files\Microsoft Visual Studio 10.0\VC
12
SDKPATH = C:\Program Files\Microsoft SDKs\Windows\v7.0A
16
LIBRARYFILES = kyotocabinet.lib
17
LIBOBJFILES = kcutil.obj kcdb.obj kcthread.obj kcfile.obj \
18
kccompress.obj kccompare.obj kcmap.obj kcregex.obj kcplantdb.obj \
19
kcprotodb.obj kcstashdb.obj kccachedb.obj kchashdb.obj kcdirdb.obj kctextdb.obj \
20
kcpolydb.obj kcdbext.obj kclangc.obj
21
COMMANDFILES = kcutiltest.exe kcutilmgr.exe kcprototest.exe \
22
kcstashtest.exe kccachetest.exe kcgrasstest.exe \
23
kchashtest.exe kchashmgr.exe kctreetest.exe kctreemgr.exe \
24
kcdirtest.exe kcdirmgr.exe kcforesttest.exe kcforestmgr.exe \
25
kcpolytest.exe kcpolymgr.exe kclangctest.exe
28
# Building configuration
33
/I "$(VCPATH)\Include" /I "$(VCPATH)\PlatformSDK\Include" /I "$(SDKPATH)\Include" \
35
/DNDEBUG /D_CRT_SECURE_NO_WARNINGS \
36
/O2 /EHsc /W3 /wd4244 /wd4351 /wd4800 /MT
38
/libpath:"$(VCPATH)\lib" /libpath:"$(VCPATH)\PlatformSDK\Lib" /libpath:"$(SDKPATH)\Lib" \
41
/libpath:"$(VCPATH)\lib" /libpath:"$(VCPATH)\PlatformSDK\Lib" /libpath:"$(SDKPATH)\Lib" \
46
#================================================================
48
#================================================================
52
.SUFFIXES : .cc .c .obj .exe
55
$(CL) /c $(CLFLAGS) $<
58
$(CL) /c $(CLFLAGS) $<
62
#================================================================
64
#================================================================
67
all : $(LIBRARYFILES) $(COMMANDFILES)
69
@echo #================================================================
70
@echo # Ready to install.
71
@echo #================================================================
75
-del *.obj *.lib *.dll *.exp *.exe /F /Q > NUL: 2>&1
76
-del casket* /F /Q > NUL: 2>&1
77
-rd casket casket.wal casket.tmp casket-para casket.kcd casket.kcf /S /Q > NUL: 2>&1
80
check : check-util check-proto check-stash check-cache check-grass \
81
check-hash check-tree check-dir check-forest check-poly check-langc
82
-del casket* /F /Q > NUL: 2>&1
83
-rd casket casket.wal casket.tmp casket-para casket.kcd casket.kcf /S /Q > NUL: 2>&1
85
@echo #================================================================
86
@echo # Checking completed.
87
@echo #================================================================
91
-del casket* /F /Q > NUL: 2>&1
92
-rd casket casket.wal casket.tmp casket-para casket.kcd casket.kcf /S /Q > NUL: 2>&1
94
kcutilmgr hex VCmakefile > check.in
95
kcutilmgr hex -d check.in > check.out
96
kcutilmgr enc VCmakefile > check.in
97
kcutilmgr enc -d check.in > check.out
98
kcutilmgr enc -hex VCmakefile > check.in
99
kcutilmgr enc -hex -d check.in > check.out
100
kcutilmgr enc -url VCmakefile > check.in
101
kcutilmgr enc -url -d check.in > check.out
102
kcutilmgr enc -quote VCmakefile > check.in
103
kcutilmgr enc -quote -d check.in > check.out
104
kcutilmgr ciph -key "hoge" VCmakefile > check.in
105
kcutilmgr ciph -key "hoge" check.in > check.out
106
kcutilmgr comp -gz VCmakefile > check.in
107
kcutilmgr comp -gz -d check.in > check.out
108
kcutilmgr comp -lzo VCmakefile > check.in
109
kcutilmgr comp -lzo -d check.in > check.out
110
kcutilmgr comp -lzma VCmakefile > check.in
111
kcutilmgr comp -lzma -d check.in > check.out
112
kcutilmgr hash VCmakefile > check.in
113
kcutilmgr hash -fnv VCmakefile > check.out
114
kcutilmgr hash -path VCmakefile > check.out
115
kcutilmgr regex mikio VCmakefile > check.out
116
kcutilmgr regex -alt "hirarin" mikio VCmakefile > check.out
118
-del casket* /F /Q > NUL: 2>&1
119
kcutiltest mutex -th 4 -iv -1 10000
120
kcutiltest cond -th 4 -iv -1 10000
121
kcutiltest para -th 4 10000
122
kcutiltest para -th 4 -iv -1 10000
123
kcutiltest file -th 4 casket 10000
124
kcutiltest file -th 4 -rnd -msiz 1m casket 10000
125
kcutiltest lhmap -bnum 1000 10000
126
kcutiltest lhmap -rnd -bnum 1000 10000
127
kcutiltest thmap -bnum 1000 10000
128
kcutiltest thmap -rnd -bnum 1000 10000
129
kcutiltest talist 10000
130
kcutiltest talist -rnd 10000
131
kcutiltest misc 10000
135
-del casket* /F /Q > NUL: 2>&1
136
-rd casket casket.wal casket.tmp casket-para casket.kcd casket.kcf /S /Q > NUL: 2>&1
137
kcprototest order -etc 10000
138
kcprototest order -th 4 10000
139
kcprototest order -th 4 -rnd -etc 10000
140
kcprototest order -th 4 -rnd -etc -tran 10000
141
kcprototest wicked 10000
142
kcprototest wicked -th 4 -it 4 10000
143
kcprototest tran 10000
144
kcprototest tran -th 2 -it 4 10000
145
-del casket* /F /Q > NUL: 2>&1
146
kcprototest order -tree -etc 10000
147
kcprototest order -tree -th 4 10000
148
kcprototest order -tree -th 4 -rnd -etc 10000
149
kcprototest order -tree -th 4 -rnd -etc -tran 10000
150
kcprototest wicked -tree 10000
151
kcprototest wicked -tree -th 4 -it 4 10000
152
kcprototest tran -tree 10000
153
kcprototest tran -tree -th 2 -it 4 10000
157
-del casket* /F /Q > NUL: 2>&1
158
-rd casket casket.wal casket.tmp casket-para casket.kcd casket.kcf /S /Q > NUL: 2>&1
159
kcstashtest order -etc -bnum 5000 10000
160
kcstashtest order -th 4 -bnum 5000 10000
161
kcstashtest order -th 4 -rnd -etc -bnum 5000 10000
162
kcstashtest order -th 4 -rnd -etc -bnum 5000 10000
163
kcstashtest order -th 4 -rnd -etc -tran \
165
kcstashtest wicked -bnum 5000 10000
166
kcstashtest wicked -th 4 -it 4 -bnum 5000 10000
167
kcstashtest tran -bnum 5000 10000
168
kcstashtest tran -th 2 -it 4 -bnum 5000 10000
172
-del casket* /F /Q > NUL: 2>&1
173
-rd casket casket.wal casket.tmp casket-para casket.kcd casket.kcf /S /Q > NUL: 2>&1
174
kccachetest order -etc -bnum 5000 10000
175
kccachetest order -th 4 -bnum 5000 10000
176
kccachetest order -th 4 -rnd -etc -bnum 5000 -capcnt 10000 10000
177
kccachetest order -th 4 -rnd -etc -bnum 5000 -capsiz 10000 10000
178
kccachetest order -th 4 -rnd -etc -tran \
179
-tc -bnum 5000 -capcnt 10000 10000
180
kccachetest wicked -bnum 5000 10000
181
kccachetest wicked -th 4 -it 4 -tc -bnum 5000 -capcnt 10000 10000
182
kccachetest tran -bnum 5000 10000
183
kccachetest tran -th 2 -it 4 -tc -bnum 5000 10000
187
-del casket* /F /Q > NUL: 2>&1
188
-rd casket casket.wal casket.tmp casket-para casket.kcd casket.kcf /S /Q > NUL: 2>&1
189
$(RUNENV) $(RUNCMD) kcgrasstest order -etc -bnum 5000 10000
190
$(RUNENV) $(RUNCMD) kcgrasstest order -th 4 -bnum 5000 10000
191
$(RUNENV) $(RUNCMD) kcgrasstest order -th 4 -rnd -etc -bnum 5000 10000
192
$(RUNENV) $(RUNCMD) kcgrasstest order -th 4 -rnd -etc -bnum 5000 10000
193
$(RUNENV) $(RUNCMD) kcgrasstest order -th 4 -rnd -etc -tran \
194
-tc -bnum 5000 -pccap 100k 1000
195
$(RUNENV) $(RUNCMD) kcgrasstest wicked -bnum 5000 10000
196
$(RUNENV) $(RUNCMD) kcgrasstest wicked -th 4 -it 4 -tc -bnum 5000 -pccap 100k 10000
197
$(RUNENV) $(RUNCMD) kcgrasstest tran -bnum 5000 10000
198
$(RUNENV) $(RUNCMD) kcgrasstest tran -th 2 -it 4 -tc -bnum 5000 -pccap 100k 10000
202
-del casket* /F /Q > NUL: 2>&1
203
-rd casket casket.wal casket.tmp casket-para casket.kcd casket.kcf /S /Q > NUL: 2>&1
204
kchashmgr create -otr -apow 1 -fpow 2 -bnum 3 casket
205
kchashmgr inform -st casket
206
kchashmgr set -add casket duffy 1231
207
kchashmgr set -add casket micky 0101
208
kchashmgr set casket fal 1007
209
kchashmgr set casket mikio 0211
210
kchashmgr set casket natsuki 0810
211
kchashmgr set casket micky ""
212
kchashmgr set -rep casket duffy 777
213
kchashmgr set -app casket duffy kukuku
214
kchashmgr remove casket micky
215
kchashmgr list -pv casket > check.out
216
kchashmgr set casket ryu 1
217
kchashmgr set casket ken 2
218
kchashmgr remove casket duffy
219
kchashmgr set casket ryu syo-ryu-ken
220
kchashmgr set casket ken tatsumaki-senpu-kyaku
221
kchashmgr set -inci casket int 1234
222
kchashmgr set -inci casket int 5678
223
kchashmgr set -incd casket double 1234.5678
224
kchashmgr set -incd casket double 8765.4321
225
kchashmgr get casket mikio
226
kchashmgr get casket ryu
227
kchashmgr import casket lab/numbers.tsv
228
kchashmgr list -pv -px casket > check.out
229
kchashmgr copy casket casket-para
230
kchashmgr dump casket check.out
231
kchashmgr load -otr casket check.out
232
kchashmgr defrag -onl casket
233
kchashmgr check -onr casket
234
kchashmgr inform -st casket
235
kchashmgr create -otr -otl -onr -apow 1 -fpow 3 \
236
-ts -tl -tc -bnum 1 casket
237
kchashmgr import casket < lab/numbers.tsv
238
kchashmgr set casket mikio kyotocabinet
239
kchashmgr set -app casket tako ikaunini
240
kchashmgr set -app casket mikio kyototyrant
241
kchashmgr set -app casket mikio kyotodystopia
242
kchashmgr get -px casket mikio > check.out
243
kchashmgr list casket > check.out
244
kchashmgr check -onr casket
245
-del casket* /F /Q > NUL: 2>&1
246
kchashtest order -set -bnum 5000 -msiz 50000 casket 10000
247
kchashtest order -get -msiz 50000 casket 10000
248
kchashtest order -getw -msiz 5000 casket 10000
249
kchashtest order -rem -msiz 50000 casket 10000
250
kchashtest order -bnum 5000 -msiz 50000 casket 10000
251
kchashtest order -etc \
252
-bnum 5000 -msiz 50000 -dfunit 4 casket 10000
253
kchashtest order -th 4 \
254
-bnum 5000 -msiz 50000 -dfunit 4 casket 10000
255
kchashtest order -th 4 -rnd -etc \
256
-bnum 5000 -msiz 50000 -dfunit 4 casket 10000
257
kchashmgr check -onr casket
258
kchashtest order -th 4 -rnd -etc -tran \
259
-bnum 5000 -msiz 50000 -dfunit 4 casket 10000
260
kchashmgr check -onr casket
261
kchashtest order -th 4 -rnd -etc -oat \
262
-bnum 5000 -msiz 50000 -dfunit 4 casket 10000
263
kchashmgr check -onr casket
264
kchashtest order -th 4 -rnd -etc \
265
-apow 2 -fpow 3 -ts -tl -tc -bnum 5000 -msiz 50000 -dfunit 4 casket 10000
266
kchashmgr check -onr casket
268
-bnum 5000 -msiz 50000 casket 10000
269
kchashmgr check -onr casket
270
kchashtest queue -rnd \
271
-bnum 5000 -msiz 50000 casket 10000
272
kchashmgr check -onr casket
273
kchashtest queue -th 4 -it 4 \
274
-bnum 5000 -msiz 50000 casket 10000
275
kchashmgr check -onr casket
276
kchashtest queue -th 4 -it 4 -rnd \
277
-bnum 5000 -msiz 50000 casket 10000
278
kchashmgr check -onr casket
279
kchashtest wicked -bnum 5000 -msiz 50000 casket 10000
280
kchashmgr check -onr casket
281
kchashtest wicked -th 4 -it 4 \
282
-bnum 5000 -msiz 50000 -dfunit 4 casket 10000
283
kchashmgr check -onr casket
284
kchashtest wicked -th 4 -it 4 -oat \
285
-bnum 5000 -msiz 50000 -dfunit 4 casket 10000
286
kchashmgr check -onr casket
287
kchashtest wicked -th 4 -it 4 \
288
-apow 2 -fpow 3 -ts -tl -tc -bnum 10000 -msiz 50000 -dfunit 4 casket 10000
289
kchashmgr check -onr casket
290
kchashtest tran casket 10000
291
kchashtest tran -th 2 -it 4 casket 10000
292
kchashtest tran -th 2 -it 4 \
293
-apow 2 -fpow 3 -ts -tl -tc -bnum 10000 -msiz 50000 -dfunit 4 casket 10000
297
-del casket* /F /Q > NUL: 2>&1
298
-rd casket casket.wal casket.tmp casket-para casket.kcd casket.kcf /S /Q > NUL: 2>&1
299
kctreemgr create -otr -apow 1 -fpow 2 -bnum 3 casket
300
kctreemgr inform -st casket
301
kctreemgr set -add casket duffy 1231
302
kctreemgr set -add casket micky 0101
303
kctreemgr set casket fal 1007
304
kctreemgr set casket mikio 0211
305
kctreemgr set casket natsuki 0810
306
kctreemgr set casket micky ""
307
kctreemgr set -rep casket duffy 777
308
kctreemgr set -app casket duffy kukuku
309
kctreemgr remove casket micky
310
kctreemgr list -pv casket > check.out
311
kctreemgr set casket ryu 1
312
kctreemgr set casket ken 2
313
kctreemgr remove casket duffy
314
kctreemgr set casket ryu syo-ryu-ken
315
kctreemgr set casket ken tatsumaki-senpu-kyaku
316
kctreemgr set -inci casket int 1234
317
kctreemgr set -inci casket int 5678
318
kctreemgr set -incd casket double 1234.5678
319
kctreemgr set -incd casket double 8765.4321
320
kctreemgr get casket mikio
321
kctreemgr get casket ryu
322
kctreemgr import casket lab/numbers.tsv
323
kctreemgr list -des -pv -px casket > check.out
324
kctreemgr copy casket casket-para
325
kctreemgr dump casket check.out
326
kctreemgr load -otr casket check.out
327
kctreemgr defrag -onl casket
328
kctreemgr check -onr casket
329
kctreemgr inform -st casket
330
kctreemgr create -otr -otl -onr -apow 1 -fpow 3 \
331
-ts -tl -tc -bnum 1 casket
332
kctreemgr import casket < lab/numbers.tsv
333
kctreemgr set casket mikio kyotocabinet
334
kctreemgr set -app casket tako ikaunini
335
kctreemgr set -app casket mikio kyototyrant
336
kctreemgr set -app casket mikio kyotodystopia
337
kctreemgr get -px casket mikio > check.out
338
kctreemgr list casket > check.out
339
kctreemgr check -onr casket
340
-del casket* /F /Q > NUL: 2>&1
341
kctreetest order -set \
342
-psiz 100 -bnum 5000 -msiz 50000 -pccap 100k casket 10000
343
kctreetest order -get \
344
-msiz 50000 -pccap 100k casket 10000
345
kctreetest order -getw \
346
-msiz 5000 -pccap 100k casket 10000
347
kctreetest order -rem \
348
-msiz 50000 -pccap 100k casket 10000
350
-bnum 5000 -psiz 100 -msiz 50000 -pccap 100k casket 10000
351
kctreetest order -etc \
352
-bnum 5000 -psiz 1000 -msiz 50000 -dfunit 4 -pccap 100k casket 10000
353
kctreetest order -th 4 \
354
-bnum 5000 -psiz 1000 -msiz 50000 -dfunit 4 -pccap 100k casket 10000
355
kctreetest order -th 4 -pccap 100k -rnd -etc \
356
-bnum 5000 -psiz 1000 -msiz 50000 -dfunit 4 -pccap 100k -rcd casket 10000
357
kctreemgr check -onr casket
358
kctreetest order -th 4 -rnd -etc -tran \
359
-bnum 5000 -psiz 1000 -msiz 50000 -dfunit 4 -pccap 100k casket 1000
360
kctreemgr check -onr casket
361
kctreetest order -th 4 -rnd -etc -oat \
362
-bnum 5000 -psiz 1000 -msiz 50000 -dfunit 4 -pccap 100k casket 1000
363
kctreemgr check -onr casket
364
kctreetest order -th 4 -rnd -etc \
365
-apow 2 -fpow 3 -ts -tl -tc -bnum 5000 -psiz 1000 -msiz 50000 -dfunit 4 casket 10000
366
kctreemgr check -onr casket
368
-bnum 5000 -psiz 500 -msiz 50000 casket 10000
369
kctreemgr check -onr casket
370
kctreetest queue -rnd \
371
-bnum 5000 -psiz 500 -msiz 50000 casket 10000
372
kctreemgr check -onr casket
373
kctreetest queue -th 4 -it 4 \
374
-bnum 5000 -psiz 500 -msiz 50000 casket 10000
375
kctreemgr check -onr casket
376
kctreetest queue -th 4 -it 4 -rnd \
377
-bnum 5000 -psiz 500 -msiz 50000 casket 10000
378
kctreemgr check -onr casket
380
-bnum 5000 -psiz 1000 -msiz 50000 -pccap 100k casket 10000
381
kctreemgr check -onr casket
382
kctreetest wicked -th 4 -it 4 \
383
-bnum 5000 -msiz 50000 -dfunit 4 -pccap 100k -rcd casket 10000
384
kctreemgr check -onr casket
385
kctreetest wicked -th 4 -it 4 -oat \
386
-bnum 5000 -msiz 50000 -dfunit 4 -pccap 100k casket 1000
387
kctreemgr check -onr casket
388
kctreetest wicked -th 4 -it 4 \
389
-apow 2 -fpow 3 -ts -tl -tc -bnum 10000 -msiz 50000 -dfunit 4 casket 1000
390
kctreemgr check -onr casket
391
kctreetest tran casket 10000
392
kctreetest tran -th 2 -it 4 -pccap 100k casket 10000
393
kctreetest tran -th 2 -it 4 \
394
-apow 2 -fpow 3 -ts -tl -tc -bnum 10000 -msiz 50000 -dfunit 4 -rcd casket 10000
398
-del casket* /F /Q > NUL: 2>&1
399
-rd casket casket.wal casket.tmp casket-para casket.kcd casket.kcf /S /Q > NUL: 2>&1
400
kcdirmgr create -otr casket
401
kcdirmgr inform -st casket
402
kcdirmgr set -add casket duffy 1231
403
kcdirmgr set -add casket micky 0101
404
kcdirmgr set casket fal 1007
405
kcdirmgr set casket mikio 0211
406
kcdirmgr set casket natsuki 0810
407
kcdirmgr set casket micky ""
408
kcdirmgr set -rep casket duffy 777
409
kcdirmgr set -app casket duffy kukuku
410
kcdirmgr remove casket micky
411
kcdirmgr list -pv casket > check.out
412
kcdirmgr set casket ryu 1
413
kcdirmgr set casket ken 2
414
kcdirmgr remove casket duffy
415
kcdirmgr set casket ryu syo-ryu-ken
416
kcdirmgr set casket ken tatsumaki-senpu-kyaku
417
kcdirmgr set -inci casket int 1234
418
kcdirmgr set -inci casket int 5678
419
kcdirmgr set -incd casket double 1234.5678
420
kcdirmgr set -incd casket double 8765.4321
421
kcdirmgr get casket mikio
422
kcdirmgr get casket ryu
423
kcdirmgr import casket lab/numbers.tsv
424
kcdirmgr list -pv -px casket > check.out
425
kcdirmgr copy casket casket-para
426
kcdirmgr dump casket check.out
427
kcdirmgr load -otr casket check.out
428
kcdirmgr check -onr casket
429
kcdirmgr inform -st casket
430
kcdirmgr create -otr -otl -onr -tc casket
431
kcdirmgr import casket < lab/numbers.tsv
432
kcdirmgr set casket mikio kyotocabinet
433
kcdirmgr set -app casket tako ikaunini
434
kcdirmgr set -app casket mikio kyototyrant
435
kcdirmgr set -app casket mikio kyotodystopia
436
kcdirmgr get -px casket mikio > check.out
437
kcdirmgr list casket > check.out
438
kcdirmgr check -onr casket
439
-rd casket casket.wal casket.tmp casket-para casket.kcd casket.kcf /S /Q > NUL: 2>&1
440
kcdirtest order -set casket 500
441
kcdirtest order -get casket 500
442
kcdirtest order -getw casket 500
443
kcdirtest order -rem casket 500
444
kcdirtest order casket 500
445
kcdirtest order -etc casket 500
446
kcdirtest order -th 4 casket 500
447
kcdirtest order -th 4 -rnd -etc casket 500
448
kcdirmgr check -onr casket
449
kcdirtest order -th 4 -rnd -etc -tran casket 500
450
kcdirmgr check -onr casket
451
kcdirtest order -th 4 -rnd -etc -oat casket 500
452
kcdirmgr check -onr casket
453
kcdirtest order -th 4 -rnd -etc -tc casket 500
454
kcdirmgr check -onr casket
455
kcdirtest queue casket 500
456
kcdirmgr check -onr casket
457
kcdirtest queue -rnd casket 500
458
kcdirmgr check -onr casket
459
kcdirtest queue -th 4 -it 4 casket 500
460
kcdirmgr check -onr casket
461
kcdirtest queue -th 4 -it 4 -rnd casket 500
462
kcdirmgr check -onr casket
463
kcdirtest wicked casket 500
464
kcdirmgr check -onr casket
465
kcdirtest wicked -th 4 -it 4 casket 500
466
kcdirmgr check -onr casket
467
kcdirtest wicked -th 4 -it 4 -oat casket 500
468
kcdirmgr check -onr casket
469
kcdirtest wicked -th 4 -it 4 -tc casket 500
470
kcdirmgr check -onr casket
471
kcdirtest tran casket 500
472
kcdirtest tran -th 2 -it 4 casket 500
473
kcdirtest tran -th 2 -it 4 -tc casket 500
477
-del casket* /F /Q > NUL: 2>&1
478
-rd casket casket.wal casket.tmp casket-para casket.kcd casket.kcf /S /Q > NUL: 2>&1
479
kcforestmgr create -otr -bnum 3 casket
480
kcforestmgr inform -st casket
481
kcforestmgr set -add casket duffy 1231
482
kcforestmgr set -add casket micky 0101
483
kcforestmgr set casket fal 1007
484
kcforestmgr set casket mikio 0211
485
kcforestmgr set casket natsuki 0810
486
kcforestmgr set casket micky ""
487
kcforestmgr set -rep casket duffy 777
488
kcforestmgr set -app casket duffy kukuku
489
kcforestmgr remove casket micky
490
kcforestmgr list -pv casket > check.out
491
kcforestmgr set casket ryu 1
492
kcforestmgr set casket ken 2
493
kcforestmgr remove casket duffy
494
kcforestmgr set casket ryu syo-ryu-ken
495
kcforestmgr set casket ken tatsumaki-senpu-kyaku
496
kcforestmgr set -inci casket int 1234
497
kcforestmgr set -inci casket int 5678
498
kcforestmgr set -incd casket double 1234.5678
499
kcforestmgr set -incd casket double 8765.4321
500
kcforestmgr get casket mikio
501
kcforestmgr get casket ryu
502
kcforestmgr import casket lab/numbers.tsv
503
kcforestmgr list -des -pv -px casket > check.out
504
kcforestmgr copy casket casket-para
505
kcforestmgr dump casket check.out
506
kcforestmgr load -otr casket check.out
507
kcforestmgr check -onr casket
508
kcforestmgr inform -st casket
509
kcforestmgr create -otr -otl -onr \
511
kcforestmgr import casket < lab/numbers.tsv
512
kcforestmgr set casket mikio kyotocabinet
513
kcforestmgr set -app casket tako ikaunini
514
kcforestmgr set -app casket mikio kyototyrant
515
kcforestmgr set -app casket mikio kyotodystopia
516
kcforestmgr get -px casket mikio > check.out
517
kcforestmgr list casket > check.out
518
kcforestmgr check -onr casket
519
-rd casket casket.wal casket.tmp casket-para casket.kcd casket.kcf /S /Q > NUL: 2>&1
520
kcforesttest order -set \
521
-psiz 100 -bnum 5000 -pccap 100k casket 5000
522
kcforesttest order -get \
523
-pccap 100k casket 5000
524
kcforesttest order -getw \
525
-pccap 100k casket 5000
526
kcforesttest order -rem \
527
-pccap 100k casket 5000
529
-bnum 5000 -psiz 100 -pccap 100k casket 5000
530
kcforesttest order -etc \
531
-bnum 5000 -psiz 1000 -pccap 100k casket 5000
532
kcforesttest order -th 4 \
533
-bnum 5000 -psiz 1000 -pccap 100k casket 5000
534
kcforesttest order -th 4 -pccap 100k -rnd -etc \
535
-bnum 5000 -psiz 1000 -pccap 100k -rcd casket 5000
536
kcforestmgr check -onr casket
537
kcforesttest order -th 4 -rnd -etc -tran \
538
-bnum 500 -psiz 1000 -pccap 100k casket 500
539
kcforestmgr check -onr casket
540
kcforesttest order -th 4 -rnd -etc -oat \
541
-bnum 500 -psiz 1000 -pccap 100k casket 500
542
kcforestmgr check -onr casket
543
kcforesttest order -th 4 -rnd -etc \
544
-tc -bnum 5000 -psiz 1000 casket 5000
545
kcforestmgr check -onr casket
547
-bnum 5000 -psiz 500 casket 5000
548
kcforestmgr check -onr casket
549
kcforesttest queue -rnd \
550
-bnum 5000 -psiz 500 casket 5000
551
kcforestmgr check -onr casket
552
kcforesttest queue -th 4 -it 4 \
553
-bnum 5000 -psiz 500 casket 5000
554
kcforestmgr check -onr casket
555
kcforesttest queue -th 4 -it 4 -rnd \
556
-bnum 5000 -psiz 500 casket 5000
557
kcforestmgr check -onr casket
558
kcforesttest wicked \
559
-bnum 5000 -psiz 1000 -pccap 100k casket 5000
560
kcforestmgr check -onr casket
561
kcforesttest wicked -th 4 -it 4 \
562
-bnum 5000 -pccap 100k -rcd casket 5000
563
kcforestmgr check -onr casket
564
kcforesttest wicked -th 4 -it 4 -oat \
565
-bnum 5000 -pccap 100k casket 500
566
kcforestmgr check -onr casket
567
kcforesttest wicked -th 4 -it 4 \
568
-tc -bnum 500 casket 500
569
kcforestmgr check -onr casket
570
kcforesttest tran casket 5000
571
kcforesttest tran -th 2 -it 4 -pccap 100k casket 5000
572
kcforesttest tran -th 2 -it 4 \
573
-tc -bnum 5000 -rcd casket 5000
577
-del casket* /F /Q > NUL: 2>&1
578
-rd casket casket.wal casket.tmp casket-para casket.kcd casket.kcf /S /Q > NUL: 2>&1
579
kcpolymgr create -otr "casket.kch#apow=1#fpow=2#bnum=3"
580
kcpolymgr inform -st casket.kch
581
kcpolymgr set -add casket.kch duffy 1231
582
kcpolymgr set -add casket.kch micky 0101
583
kcpolymgr set casket.kch fal 1007
584
kcpolymgr set casket.kch mikio 0211
585
kcpolymgr set casket.kch natsuki 0810
586
kcpolymgr set casket.kch micky ""
587
kcpolymgr set -app casket.kch duffy kukuku
588
kcpolymgr remove casket.kch micky
589
kcpolymgr list -pv casket.kch > check.out
590
kcpolymgr copy casket.kch casket-para
591
kcpolymgr dump casket.kch check.out
592
kcpolymgr load -otr casket.kch check.out
593
kcpolymgr set casket.kch ryu 1
594
kcpolymgr set casket.kch ken 2
595
kcpolymgr remove casket.kch duffy
596
kcpolymgr set casket.kch ryu syo-ryu-ken
597
kcpolymgr set casket.kch ken tatsumaki-senpu-kyaku
598
kcpolymgr set -inci casket.kch int 1234
599
kcpolymgr set -inci casket.kch int 5678
600
kcpolymgr set -incd casket.kch double 1234.5678
601
kcpolymgr set -incd casket.kch double 8765.4321
602
kcpolymgr get "casket.kch" mikio
603
kcpolymgr get "casket.kch" ryu
604
kcpolymgr import casket.kch lab/numbers.tsv
605
kcpolymgr list -pv -px "casket.kch#mode=r" > check.out
606
kcpolymgr check -onr casket.kch
607
kcpolymgr inform -st casket.kch
608
kcpolymgr create -otr -otl -onr \
609
"casket.kct#apow=1#fpow=3#opts=slc#bnum=1"
610
kcpolymgr import casket.kct < lab/numbers.tsv
611
kcpolymgr set casket.kct mikio kyotocabinet
612
kcpolymgr set -app casket.kct tako ikaunini
613
kcpolymgr set -app casket.kct mikio kyototyrant
614
kcpolymgr set -app casket.kct mikio kyotodystopia
615
kcpolymgr get -px casket.kct mikio > check.out
616
kcpolymgr list casket.kct > check.out
617
kcpolymgr check -onr casket.kct
618
-del casket* /F /Q > NUL: 2>&1
619
kcpolytest order -set "casket.kct#bnum=5000#msiz=50000" 10000
620
kcpolytest order -get "casket.kct#msiz=50000" 10000
621
kcpolytest order -getw "casket.kct#msiz=5000" 10000
622
kcpolytest order -rem "casket.kct#msiz=50000" 10000
623
kcpolytest order "casket.kct#bnum=5000#msiz=50000" 10000
624
kcpolytest order -etc \
625
"casket.kct#bnum=5000#msiz=50000#dfunit=4" 10000
626
kcpolytest order -th 4 \
627
"casket.kct#bnum=5000#msiz=50000#dfunit=4" 10000
628
kcpolytest order -th 4 -rnd -etc \
629
"casket.kct#bnum=5000#msiz=0#dfunit=1" 1000
630
kcpolymgr check -onr casket.kct
631
kcpolytest order -th 4 -rnd -etc -tran \
632
"casket.kct#bnum=5000#msiz=0#dfunit=2" 1000
633
kcpolymgr check -onr casket.kct
634
kcpolytest order -th 4 -rnd -etc -oat \
635
"casket.kct#bnum=5000#msiz=0#dfunit=3" 1000
636
kcpolymgr check -onr casket.kct
637
kcpolytest order -th 4 -rnd -etc \
638
"casket.kct#apow=2#fpow=3#opts=slc#bnum=5000#msiz=0#dfunit=4" 1000
639
kcpolymgr check -onr casket.kct
641
"casket.kct#bnum=5000#msiz=0" 10000
642
kcpolymgr check -onr casket.kct
643
kcpolytest queue -rnd \
644
"casket.kct#bnum=5000#msiz=0" 10000
645
kcpolymgr check -onr casket.kct
646
kcpolytest queue -th 4 -it 4 \
647
"casket.kct#bnum=5000#msiz=0" 10000
648
kcpolymgr check -onr casket.kct
649
kcpolytest queue -th 4 -it 4 -rnd \
650
"casket.kct#bnum=5000#msiz=0" 10000
651
kcpolymgr check -onr casket.kct
652
kcpolytest wicked "casket.kct#bnum=5000#msiz=0" 1000
653
kcpolymgr check -onr casket.kct
654
kcpolytest wicked -th 4 -it 4 \
655
"casket.kct#bnum=5000#msiz=0#dfunit=1" 1000
656
kcpolymgr check -onr casket.kct
657
kcpolytest wicked -th 4 -it 4 -oat \
658
"casket.kct#bnum=5000#msiz=0#dfunit=1" 1000
659
kcpolymgr check -onr casket.kct
660
kcpolytest wicked -th 4 -it 4 \
661
"casket.kct#apow=2#fpow=3#opts=slc#bnum=10000#msiz=0#dfunit=1" 10000
662
kcpolymgr check -onr casket.kct
663
kcpolytest tran casket.kct 10000
664
kcpolytest tran -th 2 -it 4 casket.kct 10000
665
kcpolytest tran -th 2 -it 4 \
666
"casket.kct#apow=2#fpow=3#opts=slc#bnum=10000#msiz=0#dfunit=1" 1000
667
kcpolytest mapred -dbnum 2 -clim 10k casket.kct 10000
668
kcpolytest mapred -tmp . -dbnum 2 -clim 10k -xnl -xnc \
670
kcpolytest mapred -tmp . -dbnum 2 -clim 10k -xpm -xpr -xpf -xnc \
672
kcpolytest mapred -rnd -dbnum 2 -clim 10k casket.kct 10000
673
kcpolytest index -set "casket.kct#idxclim=32k" 10000
674
kcpolytest index -get "casket.kct" 10000
675
kcpolytest index -rem "casket.kct" 10000
676
kcpolytest index -etc "casket.kct#idxclim=32k" 10000
677
kcpolytest index -th 4 -rnd -set \
678
"casket.kct#idxclim=32k#idxdbnum=4" 10000
679
kcpolytest index -th 4 -rnd -get "casket.kct" 10000
680
kcpolytest index -th 4 -rnd -rem "casket.kct" 10000
681
kcpolytest index -th 4 -rnd -etc \
682
"casket.kct#idxclim=32k#idxdbnum=4" 10000
683
-del casket* /F /Q > NUL: 2>&1
684
-rd casket casket.wal casket.tmp casket-para casket.kcd casket.kcf /S /Q > NUL: 2>&1
685
kcpolytest order -rnd "casket.kcx" 10000
686
kcpolytest order -th 4 -rnd "casket.kcx" 10000
687
kcpolytest wicked "casket.kcx" 10000
688
kcpolytest wicked -th 4 "casket.kcx" 10000
689
kcpolymgr list "casket.kcx" > check.in
690
kcpolymgr list -max 1000 "casket.kcx" > check.in
691
kcpolytest mapred "casket.kcx" 10000
692
kcpolytest mapred -xpm -xpr -xpf "casket.kcx" 10000
693
-del casket* /F /Q > NUL: 2>&1
694
-rd casket casket.wal casket.tmp casket-para casket.kcd casket.kcf /S /Q > NUL: 2>&1
695
kcpolytest order -rnd "casket.kch#opts=s#bnum=256" 1000
696
kcpolytest order -rnd "casket.kct#opts=l#psiz=256" 1000
697
kcpolytest order -rnd "casket.kcd#opts=c#bnum=256" 500
698
kcpolytest order -rnd "casket.kcf#opts=c#psiz=256" 500
699
kcpolytest order -rnd "casket.kcx" 500
700
kcpolymgr merge -add "casket#type=kct" \
701
casket.kch casket.kct casket.kcd casket.kcf casket.kcx
702
-del casket* /F /Q > NUL: 2>&1
703
-rd casket casket.wal casket.tmp casket-para casket.kcd casket.kcf /S /Q > NUL: 2>&1
704
kcpolytest misc "casket#type=-"
705
kcpolytest misc "casket#type=+"
706
kcpolytest misc "casket#type=:"
707
kcpolytest misc "casket#type=*"
708
kcpolytest misc "casket#type=%"
709
-del casket* /F /Q > NUL: 2>&1
710
-rd casket casket.wal casket.tmp casket-para casket.kcd casket.kcf /S /Q > NUL: 2>&1
711
kcpolytest misc "casket#type=kch#log=-#logkinds=debug#mtrg=-#zcomp=lzocrc"
712
-del casket* /F /Q > NUL: 2>&1
713
-rd casket casket.wal casket.tmp casket-para casket.kcd casket.kcf /S /Q > NUL: 2>&1
714
kcpolytest misc "casket#type=kct#log=-#logkinds=debug#mtrg=-#zcomp=lzmacrc"
715
-del casket* /F /Q > NUL: 2>&1
716
-rd casket casket.wal casket.tmp casket-para casket.kcd casket.kcf /S /Q > NUL: 2>&1
717
kcpolytest misc "casket#type=kcd#zcomp=arc#zkey=mikio"
718
-del casket* /F /Q > NUL: 2>&1
719
-rd casket casket.wal casket.tmp casket-para casket.kcd casket.kcf /S /Q > NUL: 2>&1
720
kcpolytest misc "casket#type=kcf#zcomp=arc#zkey=mikio"
724
-del casket* /F /Q > NUL: 2>&1
725
-rd casket casket.wal casket.tmp casket-para casket.kcd casket.kcf /S /Q > NUL: 2>&1
726
kclangctest order "casket.kch#bnum=5000#msiz=50000" 10000
727
kclangctest order -etc \
728
"casket.kch#bnum=5000#msiz=50000#dfunit=2" 10000
729
kclangctest order -rnd -etc \
730
"casket.kch#bnum=5000#msiz=50000#dfunit=2" 10000
731
kclangctest order -rnd -etc -oat -tran \
732
"casket.kch#bnum=5000#msiz=50000#dfunit=2#zcomp=arcz" 10000
733
kclangctest index "casket.kct#bnum=5000#msiz=50000" 10000
734
kclangctest index -etc \
735
"casket.kct#bnum=5000#msiz=50000#dfunit=2" 10000
736
kclangctest index -rnd -etc \
737
"casket.kct#bnum=5000#msiz=50000#dfunit=2" 10000
738
kclangctest index -rnd -etc -oat \
739
"casket.kct#bnum=5000#msiz=50000#dfunit=2#zcomp=arcz" 10000
740
kclangctest map 10000
741
kclangctest map -etc -bnum 1000 10000
742
kclangctest map -etc -rnd -bnum 1000 10000
743
kclangctest list 10000
744
kclangctest list -etc 10000
745
kclangctest list -etc -rnd 10000
753
-rd kcwin32 /S /Q > NUL: 2>&1
756
copy *.h kcwin32\include
757
del kcwin32\include\myconf.h
758
del kcwin32\include\cmdcommon.h
760
copy *.lib kcwin32\lib
762
copy *.exe kcwin32\bin
763
xcopy /S /E /I doc kcwin32\doc
767
#================================================================
769
#================================================================
772
kyotocabinet.lib : $(LIBOBJFILES)
773
$(LIB) $(LIBFLAGS) /OUT:$@ $(LIBOBJFILES)
776
kcutiltest.exe : kcutiltest.obj kyotocabinet.lib
777
$(LINK) $(LINKFLAGS) /OUT:$@ kcutiltest.obj kyotocabinet.lib
780
kcutilmgr.exe : kcutilmgr.obj kyotocabinet.lib
781
$(LINK) $(LINKFLAGS) /OUT:$@ kcutilmgr.obj kyotocabinet.lib
784
kcprototest.exe : kcprototest.obj kyotocabinet.lib
785
$(LINK) $(LINKFLAGS) /OUT:$@ kcprototest.obj kyotocabinet.lib
788
kcstashtest.exe : kcstashtest.obj kyotocabinet.lib
789
$(LINK) $(LINKFLAGS) /OUT:$@ kcstashtest.obj kyotocabinet.lib
792
kccachetest.exe : kccachetest.obj kyotocabinet.lib
793
$(LINK) $(LINKFLAGS) /OUT:$@ kccachetest.obj kyotocabinet.lib
796
kcgrasstest.exe : kcgrasstest.obj kyotocabinet.lib
797
$(LINK) $(LINKFLAGS) /OUT:$@ kcgrasstest.obj kyotocabinet.lib
800
kchashtest.exe : kchashtest.obj kyotocabinet.lib
801
$(LINK) $(LINKFLAGS) /OUT:$@ kchashtest.obj kyotocabinet.lib
804
kchashmgr.exe : kchashmgr.obj kyotocabinet.lib
805
$(LINK) $(LINKFLAGS) /OUT:$@ kchashmgr.obj kyotocabinet.lib
808
kctreetest.exe : kctreetest.obj kyotocabinet.lib
809
$(LINK) $(LINKFLAGS) /OUT:$@ kctreetest.obj kyotocabinet.lib
812
kctreemgr.exe : kctreemgr.obj kyotocabinet.lib
813
$(LINK) $(LINKFLAGS) /OUT:$@ kctreemgr.obj kyotocabinet.lib
816
kcdirtest.exe : kcdirtest.obj kyotocabinet.lib
817
$(LINK) $(LINKFLAGS) /OUT:$@ kcdirtest.obj kyotocabinet.lib
820
kcdirmgr.exe : kcdirmgr.obj kyotocabinet.lib
821
$(LINK) $(LINKFLAGS) /OUT:$@ kcdirmgr.obj kyotocabinet.lib
824
kcforesttest.exe : kcforesttest.obj kyotocabinet.lib
825
$(LINK) $(LINKFLAGS) /OUT:$@ kcforesttest.obj kyotocabinet.lib
828
kcforestmgr.exe : kcforestmgr.obj kyotocabinet.lib
829
$(LINK) $(LINKFLAGS) /OUT:$@ kcforestmgr.obj kyotocabinet.lib
832
kcpolytest.exe : kcpolytest.obj kyotocabinet.lib
833
$(LINK) $(LINKFLAGS) /OUT:$@ kcpolytest.obj kyotocabinet.lib
836
kcpolymgr.exe : kcpolymgr.obj kyotocabinet.lib
837
$(LINK) $(LINKFLAGS) /OUT:$@ kcpolymgr.obj kyotocabinet.lib
840
kclangctest.exe : kclangctest.obj kyotocabinet.lib
841
$(LINK) $(LINKFLAGS) /OUT:$@ kclangctest.obj kyotocabinet.lib
844
kcutil.obj : kccommon.h kcutil.h myconf.h
846
kcdb.obj : kccommon.h kcutil.h kcdb.h myconf.h
848
kcthread.obj : kccommon.h kcutil.h kcthread.h myconf.h
850
kcfile.obj : kccommon.h kcutil.h kcthread.h kcfile.h myconf.h
852
kccompress.obj : kccommon.h kcutil.h kccompress.h myconf.h
854
kccompare.obj : kccommon.h kcutil.h kccompare.h myconf.h
856
kcmap.obj : kccommon.h kcutil.h kcmap.h myconf.h
858
kcregex.obj : kccommon.h kcutil.h kcregex.h myconf.h
860
kcplantdb.obj : kccommon.h kcutil.h kcdb.h kcthread.h kcfile.h kccompress.h kccompare.h \
864
kcprotodb.obj : kccommon.h kcutil.h kcdb.h kcthread.h kcfile.h kccompress.h kccompare.h \
866
kcplantdb.h kcprotodb.h
868
kcstashdb.obj : kccommon.h kcutil.h kcdb.h kcthread.h kcfile.h kccompress.h kccompare.h \
870
kcplantdb.h kcstashdb.h
872
kccachedb.obj : kccommon.h kcutil.h kcdb.h kcthread.h kcfile.h kccompress.h kccompare.h \
874
kcplantdb.h kccachedb.h
876
kchashdb.obj : kccommon.h kcutil.h kcdb.h kcthread.h kcfile.h kccompress.h kccompare.h \
878
kcplantdb.h kchashdb.h
880
kcdirdb.obj : kccommon.h kcutil.h kcdb.h kcthread.h kcfile.h kccompress.h kccompare.h \
882
kcplantdb.h kcdirdb.h
884
kctextdb.obj : kccommon.h kcutil.h kcdb.h kcthread.h kcfile.h kccompress.h kccompare.h \
886
kcplantdb.h kctextdb.h
888
kcpolydb.obj : kccommon.h kcutil.h kcdb.h kcthread.h kcfile.h kccompress.h kccompare.h \
890
kcplantdb.h kcprotodb.h kcstashdb.h kccachedb.h kchashdb.h kcdirdb.h kctextdb.h kcpolydb.h
892
kcdbext.obj : kccommon.h kcutil.h kcdb.h kcthread.h kcfile.h kccompress.h kccompare.h \
894
kcplantdb.h kcprotodb.h kcstashdb.h kccachedb.h kchashdb.h kcdirdb.h kctextdb.h \
897
kclangc.obj : kccommon.h kcutil.h kcdb.h kcthread.h kcfile.h kccompress.h kccompare.h \
899
kcplantdb.h kcprotodb.h kcstashdb.h kccachedb.h kchashdb.h kcdirdb.h kctextdb.h \
900
kcpolydb.h kcdbext.h kclangc.h
902
kcutiltest.obj kcutilmgr.obj : \
903
kccommon.h kcdb.h kcutil.h kcthread.h kcfile.h kccompress.h kccompare.h \
908
kccommon.h kcdb.h kcutil.h kcthread.h kcfile.h kccompress.h kccompare.h \
910
kcplantdb.h kcprotodb.h cmdcommon.h
912
kcstashtest.obj kcgrasstest.obj : \
913
kccommon.h kcdb.h kcutil.h kcthread.h kcfile.h kccompress.h kccompare.h \
915
kcplantdb.h kcstashdb.h cmdcommon.h
917
kccachetest.obj kcgrasstest.obj : \
918
kccommon.h kcdb.h kcutil.h kcthread.h kcfile.h kccompress.h kccompare.h \
920
kcplantdb.h kccachedb.h cmdcommon.h
922
kchashtest.obj kchashmgr.obj kctreetest.obj kctreemgr.obj : \
923
kccommon.h kcdb.h kcutil.h kcthread.h kcfile.h kccompress.h kccompare.h \
925
kcplantdb.h kchashdb.h cmdcommon.h
927
kcdirtest.obj kcdirmgr.obj kcforesttest.obj kcforestmgr.obj : \
928
kccommon.h kcdb.h kcutil.h kcthread.h kcfile.h kccompress.h kccompare.h \
930
kcplantdb.h kcdirdb.h cmdcommon.h
932
kcpolytest.obj kcpolymgr.obj : \
933
kccommon.h kcdb.h kcutil.h kcthread.h kcfile.h kccompress.h kccompare.h \
935
kcplantdb.h kcprotodb.h kcstashdb.h kccachedb.h kchashdb.h kcdirdb.h kctextdb.h \
936
kcpolydb.h kcdbext.h cmdcommon.h
939
kccommon.h kcdb.h kcutil.h kcthread.h kcfile.h kccompress.h kccompare.h \
941
kcplantdb.h kcprotodb.h kcstashdb.h kccachedb.h kchashdb.h kcdirdb.h kctextdb.h \
942
kcpolydb.h kcdbext.h kclangc.h