]> mj.ucw.cz Git - libucw.git/blob - free/libs/Makefile
Merge with git+ssh://git.ucw.cz/projects/sherlock/GIT/sherlock.git
[libucw.git] / free / libs / Makefile
1 # Makefile for the stand-alone release of Sherlock libraries
2 # (c) 2007 Martin Mares <mj@ucw.cz>
3
4 # The default target
5 all: runtree libs api programs extras configs
6
7 # Include configuration
8 s=.
9 -include obj/config.mk
10 obj/config.mk:
11         @echo "You need to run configure first." && false
12
13 # We will use the libucw build system
14 include $(s)/build/Maketop
15
16 # Install config files
17 CONFIGS+=sherlock local
18
19 # Set up names of common libraries (to avoid forward references in rules)
20 LIBCHARSET=$(o)/charset/libcharset.pc
21 LIBSH=$(o)/sherlock/libsh.pc
22
23 # Include makefiles of libraries we wish to use
24 include $(s)/lib/Makefile
25 include $(s)/charset/Makefile
26 include $(s)/sherlock/Makefile
27
28 ifdef CONFIG_LANG
29 LIBLANG=$(o)/lang/liblang.pc
30 include $(s)/lang/Makefile
31 endif
32
33 ifdef CONFIG_IMAGES
34 LIBIMAGES=$(o)/images/libimages.pc
35 include $(s)/images/Makefile
36 endif
37
38 libs: $(LIBUCW) $(LIBSH) $(LIBIMAGES) $(LIBCHARSET) $(LIBLANG)
39
40 # And finally the default rules of the build system
41 include $(s)/build/Makebottom