X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=free%2Flibs%2FMakefile;h=09f2c02cd9bbd2f6e98b864894589f07abe3ce20;hb=86b74f27a95b617008575a9088e4c675e9f956d6;hp=07745f67694da652d991689643e714346b9f4be1;hpb=33a9906a504d894349311ad1932076e25ae49e85;p=libucw.git diff --git a/free/libs/Makefile b/free/libs/Makefile index 07745f67..09f2c02c 100644 --- a/free/libs/Makefile +++ b/free/libs/Makefile @@ -2,7 +2,7 @@ # (c) 2007 Martin Mares # The default target -all: runtree libs +all: runtree libs api programs extras configs # Include configuration s=. @@ -13,20 +13,44 @@ 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 + # Set up names of common libraries (to avoid forward references in rules) -LIBLANG=$(o)/lang/liblang.pc LIBCHARSET=$(o)/charset/libcharset.pc -LIBIMAGES=$(o)/images/libimages.pc LIBSH=$(o)/sherlock/libsh.pc # Include makefiles of libraries we wish to use -include $(s)/lib/Makefile include $(s)/charset/Makefile +include $(s)/sherlock/Makefile + +ifdef CONFIG_LANG +LIBLANG=$(o)/lang/liblang.pc include $(s)/lang/Makefile +endif + +ifdef CONFIG_IMAGES +LIBIMAGES=$(o)/images/libimages.pc include $(s)/images/Makefile -include $(s)/sherlock/Makefile +endif + +endif libs: $(LIBUCW) $(LIBSH) $(LIBIMAGES) $(LIBCHARSET) $(LIBLANG) # And finally the default rules of the build system include $(s)/build/Makebottom + +ifndef CONFIG_LOCAL +install: $(INSTALL_TARGETS) +else +install: + @echo "Nothing to install, this is a local build." && false +endif +.PHONY: install