]> mj.ucw.cz Git - libucw.git/commitdiff
libucw dist: condition to turn off other libs
authorMichal Vaner <vorner@ucw.cz>
Mon, 8 Sep 2008 12:53:03 +0000 (14:53 +0200)
committerMichal Vaner <vorner@ucw.cz>
Wed, 8 Oct 2008 12:53:38 +0000 (14:53 +0200)
Compilation of other libraries (libsh, liblang, ...) can be turned off
by CONFIG_UCW_ONLY

free/libs/Makefile

index 4c55eb9b47ac4e4bcf0de627347e16c0396740d8..c2c11b221ff9c29027f11fee984e2fc6e01c2079 100644 (file)
@@ -13,6 +13,12 @@ obj/config.mk:
 # We will use the libucw build system
 include $(s)/build/Maketop
 
+# The UCW library
+include $(s)/ucw/Makefile
+
+# Stripped down version
+ifndef CONFIG_UCW_ONLY
+
 # Install config files
 CONFIGS+=sherlock local
 
@@ -21,7 +27,6 @@ LIBCHARSET=$(o)/charset/libcharset.pc
 LIBSH=$(o)/sherlock/libsh.pc
 
 # Include makefiles of libraries we wish to use
-include $(s)/ucw/Makefile
 include $(s)/charset/Makefile
 include $(s)/sherlock/Makefile
 
@@ -35,6 +40,8 @@ LIBIMAGES=$(o)/images/libimages.pc
 include $(s)/images/Makefile
 endif
 
+endif
+
 libs: $(LIBUCW) $(LIBSH) $(LIBIMAGES) $(LIBCHARSET) $(LIBLANG)
 
 # And finally the default rules of the build system