1 # Makefile for Tokyo Cabinet
5 #================================================================
7 #================================================================
14 PACKAGE = @PACKAGE_NAME@
15 VERSION = @PACKAGE_VERSION@
16 PACKAGEDIR = $(PACKAGE)-$(VERSION)
17 PACKAGETGZ = $(PACKAGE)-$(VERSION).tar.gz
20 FORMATVER = @MYFORMATVER@
23 HEADERFILES = @MYHEADERFILES@
24 LIBRARYFILES = @MYLIBRARYFILES@
25 LIBOBJFILES = @MYLIBOBJFILES@
26 COMMANDFILES = @MYCOMMANDFILES@
27 MAN1FILES = @MYMAN1FILES@
28 MAN3FILES = @MYMAN3FILES@
29 DOCUMENTFILES = @MYDOCUMENTFILES@
32 # Install destinations
34 exec_prefix = @exec_prefix@
35 datarootdir = @datarootdir@
36 INCLUDEDIR = @includedir@
39 LIBEXECDIR = @libexecdir@
40 DATADIR = @datadir@/$(PACKAGE)
41 MAN1DIR = @mandir@/man1
42 MAN3DIR = @mandir@/man3
43 PCDIR = @libdir@/pkgconfig
46 # Building configuration
48 CPPFLAGS = @MYCPPFLAGS@ \
49 -D_TC_PREFIX="\"$(prefix)\"" -D_TC_INCLUDEDIR="\"$(INCLUDEDIR)\"" \
50 -D_TC_LIBDIR="\"$(LIBDIR)\"" -D_TC_BINDIR="\"$(BINDIR)\"" -D_TC_LIBEXECDIR="\"$(LIBEXECDIR)\"" \
51 -D_TC_APPINC="\"-I$(INCLUDEDIR)\"" -D_TC_APPLIBS="\"-L$(LIBDIR) -ltokyocabinet @LIBS@\""
55 LDENV = LD_RUN_PATH=/lib:/usr/lib:$(LIBDIR):$(HOME)/lib:/usr/local/lib:@MYRUNPATH@:.
56 RUNENV = @MYLDLIBPATHENV@=.:/lib:/usr/lib:$(LIBDIR):$(HOME)/lib:/usr/local/lib:@MYRUNPATH@
61 #================================================================
63 #================================================================
71 $(NO_ECHO)$(CC) -c $(CPPFLAGS) $(CFLAGS) $<
75 #================================================================
77 #================================================================
81 not-all : $(LIBRARYFILES) $(COMMANDFILES)
84 @printf '#================================================================\n'
85 @printf '# Ready to install.\n'
86 @printf '#================================================================\n'
90 rm -rf $(LIBRARYFILES) $(LIBOBJFILES) $(COMMANDFILES) \
91 *.o a.out check.in check.out gmon.out leak.log casket casket-* casket.* *~ hoge moge
95 vernum=`expr $(LIBVER)00 + $(LIBREV)` ; \
96 sed -e 's/_TC_VERSION.*/_TC_VERSION "$(VERSION)"/' \
97 -e "s/_TC_LIBVER.*/_TC_LIBVER $$vernum/" \
98 -e 's/_TC_FORMATVER.*/_TC_FORMATVER "$(FORMATVER)"/' tcutil.h > tcutil.h~
99 [ -f tcutil.h~ ] && mv -f tcutil.h~ tcutil.h
102 ls *.c *.h *.idl | while read name ; \
104 sed -e 's/\t/ /g' -e 's/ *$$//' $$name > $$name~; \
105 [ -f $$name~ ] && mv -f $$name~ $$name ; \
115 mkdir -p $(DESTDIR)$(INCLUDEDIR)
116 cp -Rf $(HEADERFILES) $(DESTDIR)$(INCLUDEDIR)
117 mkdir -p $(DESTDIR)$(LIBDIR)
118 cp -Rf $(LIBRARYFILES) $(DESTDIR)$(LIBDIR)
119 mkdir -p $(DESTDIR)$(BINDIR)
120 cp -Rf $(COMMANDFILES) $(DESTDIR)$(BINDIR)
121 mkdir -p $(DESTDIR)$(DATADIR)
122 cp -Rf $(DOCUMENTFILES) $(DESTDIR)$(DATADIR)
123 mkdir -p $(DESTDIR)$(MAN1DIR)
124 cd man && cp -Rf $(MAN1FILES) $(DESTDIR)$(MAN1DIR)
125 mkdir -p $(DESTDIR)$(MAN3DIR)
126 cd man && cp -Rf $(MAN3FILES) $(DESTDIR)$(MAN3DIR)
127 mkdir -p $(DESTDIR)$(PCDIR)
128 cp -Rf $(PCFILES) $(DESTDIR)$(PCDIR)
130 @printf '#================================================================\n'
131 @printf '# Thanks for using Tokyo Cabinet.\n'
132 @printf '#================================================================\n'
135 do-notinstall-strip :
136 make DESTDIR=$(DESTDIR) install
137 cd $(DESTDIR)$(BINDIR) && strip $(MYCOMMANDS)
141 cd $(DESTDIR)$(INCLUDEDIR) && rm -f $(HEADERFILES)
142 cd $(DESTDIR)$(LIBDIR) && rm -f $(LIBRARYFILES)
143 cd $(DESTDIR)$(BINDIR) && rm -f $(COMMANDFILES)
144 cd $(DESTDIR)$(MAN1DIR) && rm -f $(MAN1FILES)
145 cd $(DESTDIR)$(MAN3DIR) && rm -f $(MAN3FILES)
146 rm -rf $(DESTDIR)$(DATADIR)
147 cd $(DESTDIR)$(PCDIR) && rm -f $(PCFILES)
154 cd .. && tar cvf - $(PACKAGEDIR) | gzip -c > $(PACKAGETGZ)
159 rm -rf Makefile tokyocabinet.pc config.cache config.log config.status autom4te.cache
164 $(RUNENV) $(RUNCMD) ./tcamgr version
165 $(RUNENV) $(RUNCMD) ./tcutest xstr 50000
166 $(RUNENV) $(RUNCMD) ./tcutest list 50000
167 $(RUNENV) $(RUNCMD) ./tcutest map 50000
168 $(RUNENV) $(RUNCMD) ./tcutest mdb 50000
169 $(RUNENV) $(RUNCMD) ./tcutest misc 500
170 $(RUNENV) $(RUNCMD) ./tcutest wicked 50000
171 $(RUNENV) $(RUNCMD) ./tcumttest combo 5 50000 500
172 $(RUNENV) $(RUNCMD) ./tcumttest combo -rnd 5 50000 500
173 $(RUNENV) $(RUNCMD) ./tchmttest typical casket 5 50000 5000
174 $(RUNENV) $(RUNCMD) ./tchmttest typical -rr 1000 casket 5 50000 5000
175 $(RUNENV) $(RUNCMD) ./tchmttest typical -rc 50000 -nc casket 5 50000 5000
176 $(RUNENV) $(RUNCMD) ./tcucodec url Makefile > check.in
177 $(RUNENV) $(RUNCMD) ./tcucodec url -d check.in > check.out
178 $(RUNENV) $(RUNCMD) ./tcucodec base Makefile > check.in
179 $(RUNENV) $(RUNCMD) ./tcucodec base -d check.in > check.out
180 $(RUNENV) $(RUNCMD) ./tcucodec quote Makefile > check.in
181 $(RUNENV) $(RUNCMD) ./tcucodec quote -d check.in > check.out
182 $(RUNENV) $(RUNCMD) ./tcucodec mime Makefile > check.in
183 $(RUNENV) $(RUNCMD) ./tcucodec mime -d check.in > check.out
184 $(RUNENV) $(RUNCMD) ./tcucodec pack -bwt Makefile > check.in
185 $(RUNENV) $(RUNCMD) ./tcucodec pack -d -bwt check.in > check.out
186 $(RUNENV) $(RUNCMD) ./tcucodec tcbs Makefile > check.in
187 $(RUNENV) $(RUNCMD) ./tcucodec tcbs -d check.in > check.out
188 $(RUNENV) $(RUNCMD) ./tcucodec zlib Makefile > check.in
189 $(RUNENV) $(RUNCMD) ./tcucodec zlib -d check.in > check.out
190 $(RUNENV) $(RUNCMD) ./tcucodec xml Makefile > check.in
191 $(RUNENV) $(RUNCMD) ./tcucodec xml -d check.in > check.out
192 $(RUNENV) $(RUNCMD) ./tcucodec ucs Makefile > check.in
193 $(RUNENV) $(RUNCMD) ./tcucodec ucs -d check.in > check.out
194 $(RUNENV) $(RUNCMD) ./tcucodec date -ds '1978-02-11T18:05:30+09:00' -rf > check.out
195 $(RUNENV) $(RUNCMD) ./tcucodec conf
196 $(RUNENV) $(RUNCMD) ./tchtest write casket 50000 5000 5 5
197 $(RUNENV) $(RUNCMD) ./tchtest read casket
198 $(RUNENV) $(RUNCMD) ./tchtest remove casket
199 $(RUNENV) $(RUNCMD) ./tchtest write -mt -tl -td -rc 50 casket 50000 5000 5 5
200 $(RUNENV) $(RUNCMD) ./tchtest read -mt -nb -rc 50 casket
201 $(RUNENV) $(RUNCMD) ./tchtest remove -mt -rc 50 casket
202 $(RUNENV) $(RUNCMD) ./tchtest write -as -tb -rc 50 casket 50000 50000 5 5
203 $(RUNENV) $(RUNCMD) ./tchtest read -nl -rc 50 casket
204 $(RUNENV) $(RUNCMD) ./tchtest remove -rc 50 casket
205 $(RUNENV) $(RUNCMD) ./tchtest rcat -pn 500 casket 50000 5000 5 5
206 $(RUNENV) $(RUNCMD) ./tchtest rcat -tl -td -pn 5000 casket 50000 500 5 15
207 $(RUNENV) $(RUNCMD) ./tchtest rcat -nl -pn 500 -rl casket 5000 500 5 5
208 $(RUNENV) $(RUNCMD) ./tchtest rcat -tb -pn 500 casket 5000 500 5 5
209 $(RUNENV) $(RUNCMD) ./tchmgr list -pv casket > check.out
210 $(RUNENV) $(RUNCMD) ./tchmgr list -pv -fm 1 -px casket > check.out
211 $(RUNENV) $(RUNCMD) ./tchtest misc casket 5000
212 $(RUNENV) $(RUNCMD) ./tchtest misc -tl -td casket 5000
213 $(RUNENV) $(RUNCMD) ./tchtest misc -mt -tb casket 500
214 $(RUNENV) $(RUNCMD) ./tchtest wicked casket 50000
215 $(RUNENV) $(RUNCMD) ./tchtest wicked -tl -td casket 50000
216 $(RUNENV) $(RUNCMD) ./tchtest wicked -mt -tb casket 5000
217 $(RUNENV) $(RUNCMD) ./tchmttest write -tl casket 5 5000 500 5
218 $(RUNENV) $(RUNCMD) ./tchmttest read casket 5
219 $(RUNENV) $(RUNCMD) ./tchmttest read -rnd casket 5
220 $(RUNENV) $(RUNCMD) ./tchmttest remove casket 5
221 $(RUNENV) $(RUNCMD) ./tchmttest wicked -nc casket 5 5000
222 $(RUNENV) $(RUNCMD) ./tchmttest wicked -tl -td casket 5 5000
223 $(RUNENV) $(RUNCMD) ./tchmttest wicked -tb casket 5 5000
224 $(RUNENV) $(RUNCMD) ./tchmttest typical casket 5 50000 5000
225 $(RUNENV) $(RUNCMD) ./tchmttest typical -rr 1000 casket 5 50000 5000
226 $(RUNENV) $(RUNCMD) ./tchmttest typical -tl -rc 50000 -nc casket 5 50000 5000
227 $(RUNENV) $(RUNCMD) ./tchmgr create casket 3 1 1
228 $(RUNENV) $(RUNCMD) ./tchmgr inform casket
229 $(RUNENV) $(RUNCMD) ./tchmgr put casket one first
230 $(RUNENV) $(RUNCMD) ./tchmgr put casket two second
231 $(RUNENV) $(RUNCMD) ./tchmgr put -dk casket three third
232 $(RUNENV) $(RUNCMD) ./tchmgr put -dc casket three third
233 $(RUNENV) $(RUNCMD) ./tchmgr put -dc casket three third
234 $(RUNENV) $(RUNCMD) ./tchmgr put -dc casket three third
235 $(RUNENV) $(RUNCMD) ./tchmgr put casket four fourth
236 $(RUNENV) $(RUNCMD) ./tchmgr put -dk casket five fifth
237 $(RUNENV) $(RUNCMD) ./tchmgr out casket one
238 $(RUNENV) $(RUNCMD) ./tchmgr out casket two
239 $(RUNENV) $(RUNCMD) ./tchmgr get casket three > check.out
240 $(RUNENV) $(RUNCMD) ./tchmgr get casket four > check.out
241 $(RUNENV) $(RUNCMD) ./tchmgr get casket five > check.out
242 $(RUNENV) $(RUNCMD) ./tchmgr list -pv casket > check.out
243 $(RUNENV) $(RUNCMD) ./tchmgr optimize casket
244 $(RUNENV) $(RUNCMD) ./tchmgr put -dc casket three third
245 $(RUNENV) $(RUNCMD) ./tchmgr get casket three > check.out
246 $(RUNENV) $(RUNCMD) ./tchmgr get casket four > check.out
247 $(RUNENV) $(RUNCMD) ./tchmgr get casket five > check.out
248 $(RUNENV) $(RUNCMD) ./tchmgr list -pv casket > check.out
249 $(RUNENV) $(RUNCMD) ./tcbtest write casket 50000 5 5 5000 5 5
250 $(RUNENV) $(RUNCMD) ./tcbtest read casket
251 $(RUNENV) $(RUNCMD) ./tcbtest remove casket
252 $(RUNENV) $(RUNCMD) ./tcbmgr list -rb 00001000 00002000 casket > check.out
253 $(RUNENV) $(RUNCMD) ./tcbmgr list -fm 000001 casket > check.out
254 $(RUNENV) $(RUNCMD) ./tcbtest write -mt -tl -td -ls 1024 casket 50000 5000 5000 5000 5 5
255 $(RUNENV) $(RUNCMD) ./tcbtest read -mt -nb casket
256 $(RUNENV) $(RUNCMD) ./tcbtest remove -mt casket
257 $(RUNENV) $(RUNCMD) ./tcbtest write -tb casket 50000 5 5 50000 5 5
258 $(RUNENV) $(RUNCMD) ./tcbtest read -nl casket
259 $(RUNENV) $(RUNCMD) ./tcbtest remove casket
260 $(RUNENV) $(RUNCMD) ./tcbtest rcat -lc 5 -nc 5 -pn 500 casket 50000 5 5 5000 5 5
261 $(RUNENV) $(RUNCMD) ./tcbtest rcat -tl -td -pn 5000 casket 50000 5 5 500 5 15
262 $(RUNENV) $(RUNCMD) ./tcbtest rcat -nl -pn 5000 -rl casket 15000 5 5 500 5 5
263 $(RUNENV) $(RUNCMD) ./tcbtest rcat -ca 1000 -tb -pn 5000 casket 15000 5 5 500 5 5
264 $(RUNENV) $(RUNCMD) ./tcbmgr list -pv casket > check.out
265 $(RUNENV) $(RUNCMD) ./tcbtest queue casket 15000 5 5
266 $(RUNENV) $(RUNCMD) ./tcbtest misc casket 5000
267 $(RUNENV) $(RUNCMD) ./tcbtest misc -tl -td casket 5000
268 $(RUNENV) $(RUNCMD) ./tcbtest misc -mt -tb casket 500
269 $(RUNENV) $(RUNCMD) ./tcbtest wicked casket 50000
270 $(RUNENV) $(RUNCMD) ./tcbtest wicked -tl -td casket 50000
271 $(RUNENV) $(RUNCMD) ./tcbtest wicked -mt -tb casket 5000
272 $(RUNENV) $(RUNCMD) ./tcbtest write -cd -lc 5 -nc 5 casket 5000 5 5 5 5 5
273 $(RUNENV) $(RUNCMD) ./tcbtest read -cd -lc 5 -nc 5 casket
274 $(RUNENV) $(RUNCMD) ./tcbtest remove -cd -lc 5 -nc 5 casket
275 $(RUNENV) $(RUNCMD) ./tcbmgr list -pv casket > check.out
276 $(RUNENV) $(RUNCMD) ./tcbtest write -ci -td -lc 5 -nc 5 casket 5000 5 5 5 5 5
277 $(RUNENV) $(RUNCMD) ./tcbtest read -ci -lc 5 -nc 5 casket
278 $(RUNENV) $(RUNCMD) ./tcbtest remove -ci -lc 5 -nc 5 casket
279 $(RUNENV) $(RUNCMD) ./tcbmgr list -pv casket > check.out
280 $(RUNENV) $(RUNCMD) ./tcbtest write -cj -tb -lc 5 -nc 5 casket 5000 5 5 5 5 5
281 $(RUNENV) $(RUNCMD) ./tcbtest read -cj -lc 5 -nc 5 casket
282 $(RUNENV) $(RUNCMD) ./tcbtest remove -cj -lc 5 -nc 5 casket
283 $(RUNENV) $(RUNCMD) ./tcbmgr list -pv casket > check.out
284 $(RUNENV) $(RUNCMD) ./tcbmttest write -tl casket 5 5000 5 5 500 5
285 $(RUNENV) $(RUNCMD) ./tcbmttest read casket 5
286 $(RUNENV) $(RUNCMD) ./tcbmttest read -rnd casket 5
287 $(RUNENV) $(RUNCMD) ./tcbmttest remove casket 5
288 $(RUNENV) $(RUNCMD) ./tcbmttest wicked -nc casket 5 5000
289 $(RUNENV) $(RUNCMD) ./tcbmttest wicked -tl -td casket 5 5000
290 $(RUNENV) $(RUNCMD) ./tchmttest wicked -tb casket 5 5000
291 $(RUNENV) $(RUNCMD) ./tcbmttest typical casket 5 50000 5 5
292 $(RUNENV) $(RUNCMD) ./tcbmttest typical -rr 1000 casket 5 50000 5 5
293 $(RUNENV) $(RUNCMD) ./tcbmttest typical -tl -nc casket 5 50000 5 5
294 $(RUNENV) $(RUNCMD) ./tcbmgr create casket 4 4 3 1 1
295 $(RUNENV) $(RUNCMD) ./tcbmgr inform casket
296 $(RUNENV) $(RUNCMD) ./tcbmgr put casket one first
297 $(RUNENV) $(RUNCMD) ./tcbmgr put casket two second
298 $(RUNENV) $(RUNCMD) ./tcbmgr put -dk casket three third
299 $(RUNENV) $(RUNCMD) ./tcbmgr put -dc casket three third
300 $(RUNENV) $(RUNCMD) ./tcbmgr put -dc casket three third
301 $(RUNENV) $(RUNCMD) ./tcbmgr put -dd casket three third
302 $(RUNENV) $(RUNCMD) ./tcbmgr put -dd casket three third
303 $(RUNENV) $(RUNCMD) ./tcbmgr put casket four fourth
304 $(RUNENV) $(RUNCMD) ./tcbmgr put -dk casket five fifth
305 $(RUNENV) $(RUNCMD) ./tcbmgr out casket one
306 $(RUNENV) $(RUNCMD) ./tcbmgr out casket two
307 $(RUNENV) $(RUNCMD) ./tcbmgr get casket three > check.out
308 $(RUNENV) $(RUNCMD) ./tcbmgr get casket four > check.out
309 $(RUNENV) $(RUNCMD) ./tcbmgr get casket five > check.out
310 $(RUNENV) $(RUNCMD) ./tcbmgr list -pv casket > check.out
311 $(RUNENV) $(RUNCMD) ./tcbmgr list -j three -pv casket > check.out
312 $(RUNENV) $(RUNCMD) ./tcbmgr optimize casket
313 $(RUNENV) $(RUNCMD) ./tcbmgr put -dc casket three third
314 $(RUNENV) $(RUNCMD) ./tcbmgr get casket three > check.out
315 $(RUNENV) $(RUNCMD) ./tcbmgr get casket four > check.out
316 $(RUNENV) $(RUNCMD) ./tcbmgr get casket five > check.out
317 $(RUNENV) $(RUNCMD) ./tcbmgr list -pv casket > check.out
318 $(RUNENV) $(RUNCMD) ./tcatest write 'casket.tch#mode=wct#bnum=5000' 50000
319 $(RUNENV) $(RUNCMD) ./tcatest read 'casket.tch#mode=r'
320 $(RUNENV) $(RUNCMD) ./tcatest remove 'casket.tch#mode=w'
321 $(RUNENV) $(RUNCMD) ./tcatest misc 'casket.tch#mode=wct#bnum=500#opts=ld' 5000
322 $(RUNENV) $(RUNCMD) ./tcatest wicked 'casket.tch#mode=wct' 5000
323 $(RUNENV) $(RUNCMD) ./tcatest write 'casket.tcb#mode=wct#lmemb=5#nmemb=5' 50000
324 $(RUNENV) $(RUNCMD) ./tcatest read 'casket.tcb#mode=r'
325 $(RUNENV) $(RUNCMD) ./tcatest remove 'casket.tcb#mode=w'
326 $(RUNENV) $(RUNCMD) ./tcatest misc 'casket.tcb#mode=wct#lmemb=5#nmemb=5#opts=ld' 5000
327 $(RUNENV) $(RUNCMD) ./tcatest wicked 'casket.tcb#mode=wct' 5000
328 $(RUNENV) $(RUNCMD) ./tcatest write '*#bnum=5000#cap=100' 50000
329 $(RUNENV) $(RUNCMD) ./tcatest misc '*' 5000
330 $(RUNENV) $(RUNCMD) ./tcatest wicked '*' 5000
331 $(RUNENV) $(RUNCMD) ./tcamgr create 'casket.tch#mode=wct#bnum=3'
332 $(RUNENV) $(RUNCMD) ./tcamgr inform 'casket.tch'
333 $(RUNENV) $(RUNCMD) ./tcamgr put casket.tch one first
334 $(RUNENV) $(RUNCMD) ./tcamgr put casket.tch two second
335 $(RUNENV) $(RUNCMD) ./tcamgr put -dk casket.tch three third
336 $(RUNENV) $(RUNCMD) ./tcamgr put -dc casket.tch three third
337 $(RUNENV) $(RUNCMD) ./tcamgr put -dc casket.tch three third
338 $(RUNENV) $(RUNCMD) ./tcamgr put -dc casket.tch three third
339 $(RUNENV) $(RUNCMD) ./tcamgr put casket.tch four fourth
340 $(RUNENV) $(RUNCMD) ./tcamgr put -dk casket.tch five fifth
341 $(RUNENV) $(RUNCMD) ./tcamgr out casket.tch one
342 $(RUNENV) $(RUNCMD) ./tcamgr out casket.tch two
343 $(RUNENV) $(RUNCMD) ./tcamgr get casket.tch three > check.out
344 $(RUNENV) $(RUNCMD) ./tcamgr get casket.tch four > check.out
345 $(RUNENV) $(RUNCMD) ./tcamgr get casket.tch five > check.out
346 $(RUNENV) $(RUNCMD) ./tcamgr list -pv -fm f casket.tch > check.out
347 $(RUNENV) $(RUNCMD) ./tcamgr put -dc casket.tch three third
348 $(RUNENV) $(RUNCMD) ./tcamgr get casket.tch three > check.out
349 $(RUNENV) $(RUNCMD) ./tcamgr get casket.tch four > check.out
350 $(RUNENV) $(RUNCMD) ./tcamgr get casket.tch five > check.out
351 $(RUNENV) $(RUNCMD) ./tcamgr list -pv casket.tch > check.out
354 @printf '#================================================================\n'
355 @printf '# Checking completed.\n'
356 @printf '#================================================================\n'
360 make RUNCMD="valgrind --tool=memcheck --log-fd=1" check | tee leak.log
362 grep 'at exit' leak.log
367 $(RUNENV) $(RUNCMD) ./tchmttest typical casket 3 1000000 5000000 13 8
368 $(RUNENV) $(RUNCMD) ./tchmttest typical -nc casket 3 1000000 5000000 13 8
369 $(RUNENV) $(RUNCMD) ./tcbmttest typical casket 3 500000 8 8 500000 16 8
370 $(RUNENV) $(RUNCMD) ./tcbmttest typical -nc casket 3 500000 8 8 500000 16 8
376 $(RUNENV) $(RUNCMD) ./tcumttest typical 5 500000 500000
377 $(RUNENV) $(RUNCMD) ./tcumttest typical -nc -rr 1000 5 500000 500000
378 $(RUNENV) $(RUNCMD) ./tchmttest typical casket 5 500000 500000
379 $(RUNENV) $(RUNCMD) ./tchmttest typical -rc 500000 -nc -rr 1000 casket 5 500000 500000
380 $(RUNENV) $(RUNCMD) ./tcbmttest typical casket 5 100000 5 5
381 $(RUNENV) $(RUNCMD) ./tcbmttest typical -nc -rr 1000 casket 5 100000 5 5
388 make check || break ; \
389 make check || break ; \
390 make check || break ; \
391 make check || break ; \
392 make check || break ; \
393 make check-thread || break ; \
399 sed -e 's/.*$$/&\t&/' /usr/share/dict/words | \
400 ./tchmgr importtsv -sc casket
405 sed -e 's/.*$$/&\t&/' /usr/share/dict/words | \
406 ./tcbmgr importtsv -sc casket
409 .PHONY : all clean install check
413 #================================================================
415 #================================================================
418 libtokyocabinet.a : $(LIBOBJFILES)
419 $(AR) $(ARFLAGS) $@ $(LIBOBJFILES)
422 libtokyocabinet.so.$(LIBVER).$(LIBREV).0 : $(LIBOBJFILES)
423 $(CC) -shared -Wl,-soname,libtokyocabinet.so.$(LIBVER) -o $@ $(LIBOBJFILES) \
427 libtokyocabinet.so.$(LIBVER) : libtokyocabinet.so.$(LIBVER).$(LIBREV).0
428 ln -f -s libtokyocabinet.so.$(LIBVER).$(LIBREV).0 $@
431 libtokyocabinet.so : libtokyocabinet.so.$(LIBVER).$(LIBREV).0
432 ln -f -s libtokyocabinet.so.$(LIBVER).$(LIBREV).0 $@
435 libtokyocabinet.$(LIBVER).$(LIBREV).0.dylib : $(LIBOBJFILES)
436 $(CC) -dynamiclib -o $@ \
437 -install_name $(LIBDIR)/libtokyocabinet.$(LIBVER).dylib \
438 -current_version $(LIBVER).$(LIBREV).0 -compatibility_version $(LIBVER) \
439 $(LIBOBJFILES) $(LDFLAGS) $(LIBS)
442 libtokyocabinet.$(LIBVER).dylib : libtokyocabinet.$(LIBVER).$(LIBREV).0.dylib
443 ln -f -s libtokyocabinet.$(LIBVER).$(LIBREV).0.dylib $@
446 libtokyocabinet.dylib : libtokyocabinet.$(LIBVER).$(LIBREV).0.dylib
447 ln -f -s libtokyocabinet.$(LIBVER).$(LIBREV).0.dylib $@
450 tcutest : tcutest.o $(LIBRARYFILES)
451 $(LDENV) $(CC) $(CFLAGS) -o $@ $< $(LDFLAGS) -ltokyocabinet $(LIBS)
454 tcumttest : tcumttest.o $(LIBRARYFILES)
455 $(LDENV) $(CC) $(CFLAGS) -o $@ $< $(LDFLAGS) -ltokyocabinet $(LIBS)
458 tcucodec : tcucodec.o $(LIBRARYFILES)
459 $(LDENV) $(CC) $(CFLAGS) -o $@ $< $(LDFLAGS) -ltokyocabinet $(LIBS)
462 tchtest : tchtest.o $(LIBRARYFILES)
463 $(LDENV) $(CC) $(CFLAGS) -o $@ $< $(LDFLAGS) -ltokyocabinet $(LIBS)
466 tchmttest : tchmttest.o $(LIBRARYFILES)
467 $(LDENV) $(CC) $(CFLAGS) -o $@ $< $(LDFLAGS) -ltokyocabinet $(LIBS)
470 tchmgr : tchmgr.o $(LIBRARYFILES)
471 $(LDENV) $(CC) $(CFLAGS) -o $@ $< $(LDFLAGS) -ltokyocabinet $(LIBS)
474 tcbtest : tcbtest.o $(LIBRARYFILES)
475 $(LDENV) $(CC) $(CFLAGS) -o $@ $< $(LDFLAGS) -ltokyocabinet $(LIBS)
478 tcbmttest : tcbmttest.o $(LIBRARYFILES)
479 $(LDENV) $(CC) $(CFLAGS) -o $@ $< $(LDFLAGS) -ltokyocabinet $(LIBS)
482 tcbmgr : tcbmgr.o $(LIBRARYFILES)
483 $(LDENV) $(CC) $(CFLAGS) -o $@ $< $(LDFLAGS) -ltokyocabinet $(LIBS)
486 tcatest : tcatest.o $(LIBRARYFILES)
487 $(LDENV) $(CC) $(CFLAGS) -o $@ $< $(LDFLAGS) -ltokyocabinet $(LIBS)
490 tcamgr : tcamgr.o $(LIBRARYFILES)
491 $(LDENV) $(CC) $(CFLAGS) -o $@ $< $(LDFLAGS) -ltokyocabinet $(LIBS)
496 tcutil.o : tcutil.h myconf.h
498 tchdb.o : tchdb.h tcutil.h myconf.h
500 tcbdb.o : tcbdb.h tchdb.h tcutil.h myconf.h
502 tcutest.o tcucodec.o : tcutil.h myconf.h
504 tchtest.o tchmttest.o tchmgr.o : tcutil.h tchdb.h myconf.h
506 tcbtest.o tcbmttest.o tcbmgr.o : tcutil.h tchdb.h tcbdb.h myconf.h
508 tcatest.o : tcutil.h tchdb.h tcbdb.h tcadb.h myconf.h