]> mj.ucw.cz Git - libucw.git/blob - lib/Makefile
Added sync_dir().
[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 mempool mempool-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 adler32 \
24         md5 md5hex \
25         base64 base224 \
26         sync
27
28 ifdef CONFIG_OWN_REGEX
29 include lib/regex/Makefile
30 endif
31
32 LIBSH_MOD_PATHS=$(addprefix obj/lib/,$(LIBSH_MODS)) $(CUSTOM_LIB_MODULES)
33
34 obj/lib/libsh.a: $(addsuffix .o,$(LIBSH_MOD_PATHS))
35 obj/lib/libsh.so: $(addsuffix .oo,$(LIBSH_MOD_PATHS))
36
37 obj/lib/hashfunc.o obj/lib/hashfunc.oo: CFLAGS += -funroll-loops
38
39 obj/lib/db-test: obj/lib/db-test.o $(LIBSH)
40 obj/lib/db-tool: obj/lib/db-tool.o $(LIBSH)
41 obj/lib/buckettool: obj/lib/buckettool.o $(LIBSH)
42 obj/lib/conf-test: obj/lib/conf-test.o $(LIBSH)
43 obj/lib/sort-test: obj/lib/sort-test.o $(LIBSH)
44 obj/lib/lfs-test: obj/lib/lfs-test.o $(LIBSH)
45 obj/lib/hash-test: obj/lib/hash-test.o $(LIBSH)
46 obj/lib/str-test: obj/lib/str-test.o $(LIBSH)
47 obj/lib/asort-test: obj/lib/asort-test.o $(LIBSH)
48 obj/lib/redblack-test: obj/lib/redblack-test.o $(LIBSH)
49 obj/lib/binheap-test: obj/lib/binheap-test.o $(LIBSH)
50 obj/lib/lizard-test: obj/lib/lizard-test.o $(LIBSH)
51
52 obj/lib/lizard.o: CFLAGS += -O6 -funroll-loops
53
54 include lib/perl/Makefile
55 include lib/shell/Makefile