]> mj.ucw.cz Git - libucw.git/blob - lib/Makefile
- lizard_alloc() turns on the wrapper for SIGSEGV and lizard_free() restores
[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=alloc alloc_str ctmatch db fastbuf fb-file fb-mem lists \
8         log log-file log2 md5 md5hex mmap pagecache patimatch patmatch pool pool-str \
9         prime random realloc regex timer url wildmatch \
10         wordsplit str_ctype str_upper str_lower bucket conf object sorter \
11         finger proctitle ipaccess profile bitsig randomkey \
12         hashfunc base64 base224 fb-temp fb-mmap fb-printf urlkey \
13         partmap fb-limfd fb-buffer mainloop exitstatus runcmd carefulio \
14         lizard lizard-safe sighandler
15
16 ifdef CONFIG_OWN_REGEX
17 include lib/regex/Makefile
18 endif
19
20 LIBSH_MOD_PATHS=$(addprefix obj/lib/,$(LIBSH_MODS)) $(CUSTOM_LIB_MODULES)
21
22 obj/lib/libsh.a: $(addsuffix .o,$(LIBSH_MOD_PATHS))
23 obj/lib/libsh.so: $(addsuffix .oo,$(LIBSH_MOD_PATHS))
24
25 obj/lib/hashfunc.o obj/lib/hashfunc.oo: CFLAGS += -funroll-loops
26
27 obj/lib/db-test: obj/lib/db-test.o $(LIBSH)
28 obj/lib/db-tool: obj/lib/db-tool.o $(LIBSH)
29 obj/lib/buckettool: obj/lib/buckettool.o $(LIBSH)
30 obj/lib/conf-test: obj/lib/conf-test.o $(LIBSH)
31 obj/lib/sort-test: obj/lib/sort-test.o $(LIBSH)
32 obj/lib/lfs-test: obj/lib/lfs-test.o $(LIBSH)
33 obj/lib/hash-test: obj/lib/hash-test.o $(LIBSH)
34 obj/lib/str-test: obj/lib/str-test.o $(LIBSH)
35 obj/lib/asort-test: obj/lib/asort-test.o $(LIBSH)
36 obj/lib/redblack-test: obj/lib/redblack-test.o $(LIBSH)
37 obj/lib/binheap-test: obj/lib/binheap-test.o $(LIBSH)
38 obj/lib/lizard-test: obj/lib/lizard-test.o $(LIBSH)
39
40 obj/lib/lizard.o: CFLAGS += -O6 -funroll-loops
41
42 include lib/perl/Makefile
43 include lib/shell/Makefile