1 # Makefile for the Sherlock Library (c) 1997--2004 Martin Mares <mj@ucw.cz>
4 PROGS+=obj/lib/db-tool obj/lib/buckettool
5 TESTS+=obj/lib/regex-ut
8 alloc alloc_str realloc mempool mempool-str \
9 mmap pagecache partmap hashfunc \
11 log log-file proctitle \
14 fastbuf ff-printf ff-utf8 \
15 fb-file carefulio fb-mem fb-temp fb-mmap fb-limfd fb-buffer \
16 str_ctype str_upper str_lower unicode-utf8 \
17 wildmatch wordsplit ctmatch patimatch patmatch regex \
18 bucket object buck2obj obj2buck \
19 prime random timer log2 randomkey \
22 mainloop exitstatus runcmd sighandler \
23 lizard lizard-safe adler32 \
27 ifdef CONFIG_OWN_REGEX
28 include lib/regex/Makefile
31 LIBSH_MOD_PATHS=$(addprefix obj/lib/,$(LIBSH_MODS)) $(CUSTOM_LIB_MODULES)
33 obj/lib/libsh.a: $(addsuffix .o,$(LIBSH_MOD_PATHS))
34 obj/lib/libsh.so: $(addsuffix .oo,$(LIBSH_MOD_PATHS))
36 obj/lib/hashfunc.o obj/lib/hashfunc.oo: CFLAGS += -funroll-loops
38 obj/lib/db-test: obj/lib/db-test.o $(LIBSH)
39 obj/lib/db-tool: obj/lib/db-tool.o $(LIBSH)
40 obj/lib/buckettool: obj/lib/buckettool.o $(LIBSH)
41 obj/lib/conf-test: obj/lib/conf-test.o $(LIBSH)
42 obj/lib/sort-test: obj/lib/sort-test.o $(LIBSH)
43 obj/lib/lfs-test: obj/lib/lfs-test.o $(LIBSH)
44 obj/lib/hash-test: obj/lib/hash-test.o $(LIBSH)
45 obj/lib/str-test: obj/lib/str-test.o $(LIBSH)
46 obj/lib/asort-test: obj/lib/asort-test.o $(LIBSH)
47 obj/lib/redblack-test: obj/lib/redblack-test.o $(LIBSH)
48 obj/lib/binheap-test: obj/lib/binheap-test.o $(LIBSH)
49 obj/lib/lizard-test: obj/lib/lizard-test.o $(LIBSH)
51 obj/lib/lizard.o: CFLAGS += -O6 -funroll-loops
53 include lib/perl/Makefile
54 include lib/shell/Makefile