1 # Makefile for the UCW Library (c) 1997--2004 Martin Mares <mj@ucw.cz>
5 ifdef CONFIG_UCW_DBTOOL
10 alloc alloc_str realloc mempool mempool-str mempool-fmt \
11 mmap pagecache partmap hashfunc \
13 log log-file proctitle \
16 fastbuf ff-printf ff-utf8 \
17 fb-file carefulio fb-mem fb-temp fb-mmap fb-limfd fb-buffer \
18 str_ctype str_upper str_lower unicode-utf8 \
19 wildmatch wordsplit ctmatch patimatch patmatch regex \
20 prime random timer log2 randomkey \
23 mainloop exitstatus runcmd sighandler \
24 lizard lizard-safe adler32 \
29 ifdef CONFIG_OWN_REGEX
30 include lib/regex/Makefile
33 LIBUCW=obj/lib/libucw.$(LS)
34 LIBUCW_MOD_PATHS=$(addprefix obj/lib/,$(LIBUCW_MODS)) $(CUSTOM_LIB_MODULES)
36 obj/lib/libucw.a: $(addsuffix .o,$(LIBUCW_MOD_PATHS))
37 obj/lib/libucw.so: $(addsuffix .oo,$(LIBUCW_MOD_PATHS))
39 obj/lib/hashfunc.o obj/lib/hashfunc.oo: CFLAGS += -funroll-loops
40 obj/lib/lizard.o: CFLAGS += -O6 -funroll-loops
42 obj/lib/db-test: obj/lib/db-test.o $(LIBUCW)
43 obj/lib/db-tool: obj/lib/db-tool.o $(LIBUCW)
44 obj/lib/conf-test: obj/lib/conf-test.o $(LIBUCW)
45 obj/lib/sort-test: obj/lib/sort-test.o $(LIBUCW)
46 obj/lib/lfs-test: obj/lib/lfs-test.o $(LIBUCW)
47 obj/lib/hash-test: obj/lib/hash-test.o $(LIBUCW)
48 obj/lib/str-test: obj/lib/str-test.o $(LIBUCW)
49 obj/lib/asort-test: obj/lib/asort-test.o $(LIBUCW)
50 obj/lib/redblack-test: obj/lib/redblack-test.o $(LIBUCW)
51 obj/lib/binheap-test: obj/lib/binheap-test.o $(LIBUCW)
52 obj/lib/lizard-test: obj/lib/lizard-test.o $(LIBUCW)
54 TESTS+=$(addprefix obj/lib/,regex.test unicode-utf8.test hash-test.test)
55 obj/lib/regex.test: obj/lib/regex-t
56 obj/lib/unicode-utf8.test: obj/lib/unicode-utf8-t
57 obj/lib/hash-test.test: obj/lib/hash-test
60 include lib/perl/Makefile
63 ifdef CONFIG_UCW_SHELL_UTILS
64 include lib/shell/Makefile