]> mj.ucw.cz Git - libucw.git/blob - free/libs/Makefile
09f2c02cd9bbd2f6e98b864894589f07abe3ce20
[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 # The UCW library
17 include $(s)/ucw/Makefile
18
19 # Stripped down version
20 ifndef CONFIG_UCW_ONLY
21
22 # Install config files
23 CONFIGS+=sherlock local
24
25 # Set up names of common libraries (to avoid forward references in rules)
26 LIBCHARSET=$(o)/charset/libcharset.pc
27 LIBSH=$(o)/sherlock/libsh.pc
28
29 # Include makefiles of libraries we wish to use
30 include $(s)/charset/Makefile
31 include $(s)/sherlock/Makefile
32
33 ifdef CONFIG_LANG
34 LIBLANG=$(o)/lang/liblang.pc
35 include $(s)/lang/Makefile
36 endif
37
38 ifdef CONFIG_IMAGES
39 LIBIMAGES=$(o)/images/libimages.pc
40 include $(s)/images/Makefile
41 endif
42
43 endif
44
45 libs: $(LIBUCW) $(LIBSH) $(LIBIMAGES) $(LIBCHARSET) $(LIBLANG)
46
47 # And finally the default rules of the build system
48 include $(s)/build/Makebottom
49
50 ifndef CONFIG_LOCAL
51 install: $(INSTALL_TARGETS)
52 else
53 install:
54         @echo "Nothing to install, this is a local build." && false
55 endif
56 .PHONY: install