]> mj.ucw.cz Git - libucw.git/blob - lib/Makefile
57ff42a8676f32dff7ec110bd8b8ce5a471efd20
[libucw.git] / lib / Makefile
1 # Makefile for the Sherlock Library (c) 1997--2004 Martin Mares <mj@ucw.cz>
2
3 DIRS+=lib
4 PROGS+=obj/lib/db-tool obj/lib/buckettool
5 TESTS+=obj/lib/regex-ut
6
7 LIBSH_MODS= \
8         alloc alloc_str realloc pool pool-str \
9         mmap pagecache partmap hashfunc \
10         lists sorter bitsig \
11         log log-file proctitle \
12         conf ipaccess \
13         profile \
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 \
20         db \
21         url urlkey finger \
22         mainloop exitstatus runcmd sighandler \
23         lizard lizard-safe \
24         md5 md5hex \
25         base64 base224
26
27 ifdef CONFIG_OWN_REGEX
28 include lib/regex/Makefile
29 endif
30
31 LIBSH_MOD_PATHS=$(addprefix obj/lib/,$(LIBSH_MODS)) $(CUSTOM_LIB_MODULES)
32
33 obj/lib/libsh.a: $(addsuffix .o,$(LIBSH_MOD_PATHS))
34 obj/lib/libsh.so: $(addsuffix .oo,$(LIBSH_MOD_PATHS))
35
36 obj/lib/hashfunc.o obj/lib/hashfunc.oo: CFLAGS += -funroll-loops
37
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)
50
51 obj/lib/lizard.o: CFLAGS += -O6 -funroll-loops
52
53 include lib/perl/Makefile
54 include lib/shell/Makefile