]> mj.ucw.cz Git - libucw.git/blob - lib/Makefile
Removed xprintf() -- it was very ugly and its only raison d'etre was
[libucw.git] / lib / Makefile
1 # Makefile for the Sherlock Library (c) 1997--2002 Martin Mares <mj@ucw.cz>
2
3 DIRS+=lib
4 PROGS+=obj/lib/db-tool obj/lib/buckettool
5
6 LIBSH_MODS=alloc alloc_str ctmatch db fastbuf fb-file fb-mem lists \
7         log log2 md5 md5hex mmap pagecache patimatch patmatch pool \
8         prime random realloc regex timer url wildmatch \
9         wordsplit str_ctype str_upper bucket conf object sorter \
10         finger proctitle ipaccess profile bitsig randomkey \
11         hashfunc base64 base224 fb-temp fb-mmap fb-printf
12 LIBSH_MOD_PATHS=$(addprefix obj/lib/,$(LIBSH_MODS)) $(CUSTOM_MODULES)
13
14 obj/lib/libsh.a: $(addsuffix .o,$(LIBSH_MOD_PATHS))
15 obj/lib/libsh.so: $(addsuffix .oo,$(LIBSH_MOD_PATHS))
16
17 obj/lib/hashfunc.o obj/lib/hashfunc.oo: CFLAGS += -funroll-loops
18
19 obj/lib/db-test: obj/lib/db-test.o obj/lib/libsh.$(LS)
20 obj/lib/db-tool: obj/lib/db-tool.o obj/lib/libsh.$(LS)
21 obj/lib/buckettool: obj/lib/buckettool.o obj/lib/libsh.$(LS)
22 obj/lib/conf-test: obj/lib/conf-test.o obj/lib/libsh.$(LS)
23 obj/lib/sort-test: obj/lib/sort-test.o obj/lib/libsh.$(LS)
24 obj/lib/lfs-test: obj/lib/lfs-test.o obj/lib/libsh.$(LS)
25 obj/lib/regex-test: obj/lib/regex-test.o obj/lib/libsh.$(LS)
26 obj/lib/hash-test: obj/lib/hash-test.o obj/lib/libsh.$(LS)
27 obj/lib/str-test: obj/lib/str-test.o obj/lib/libsh.$(LS)
28
29 include lib/perl/Makefile
30 include lib/shell/Makefile