--- /dev/null
+# Makefile for the stand-alone release of Sherlock libraries
+# (c) 2007 Martin Mares <mj@ucw.cz>
+
+# The default target
+all: runtree libs
+
+# Include configuration
+s=.
+-include obj/config.mk
+obj/config.mk:
+ @echo "You need to run configure first." && false
+
+# We will use the libucw build system
+include $(s)/build/Maketop
+
+# 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)/lang/Makefile
+include $(s)/images/Makefile
+include $(s)/sherlock/Makefile
+
+libs: $(LIBUCW) $(LIBSH) $(LIBIMAGES) $(LIBCHARSET) $(LIBLANG)
+
+# And finally the default rules of the build system
+include $(s)/build/Makebottom
--- /dev/null
+README for the free release of libraries
+
+ FIXME: Write
--- /dev/null
+#!/usr/bin/perl
+# Configure Script for Stand-Alone Sherlock Libraries
+# (c) 2007 Martin Mares <mj@ucw.cz>
+
+use warnings;
+use strict;
+
+our $srcdir;
+BEGIN {
+ my $pkgfile = "lib/wildmatch.c";
+ if (!defined ($srcdir = $ENV{"SRCDIR"})) {
+ if (-f $pkgfile) {
+ $srcdir=".";
+ } elsif ($0 =~ m@^(.*)/configure$@ && -f "$1/$pkgfile") {
+ $srcdir=$1;
+ } else {
+ die "Don't know how to find myself. Please set SRCDIR manually.";
+ }
+ }
+ require "$srcdir/lib/perl/Configure.pm";
+ UCW::Configure::import UCW::Configure;
+}
+
+Init($srcdir, "defconfig"); ## FIXME: Shouldn't we use default.cfg everywhere?
+Include "sherlock/default.cfg";
+Log "### Configuring Sherlock Libraries " . Get("SHERLOCK_VERSION") . " with configuration " . Get("CONFIG") . "\n";
+Include Get("CONFIG");
+Include "lib/autoconf.cfg";
+Include "sherlock/autoconf.cfg";
+Finish();
+
+Log "\nConfigured, run `make' to build everything.\n";
--- /dev/null
+# Default configuration of Sherlock libraries
+
+# Version string used by all Sherlock libraries
+# FIXME!
+Set("SHERLOCK_VERSION" => "0.0");
+
+UnSet("CONFIG_LARGE_FILES");
+
+# We want to build all libraries shared
+Set("CONFIG_SHARED");
+
+# Liblang settings
+Set("CONFIG_LANG");
+Set("MAX_WORD_LEN" => 64);
+
+# Libimages settings
+Set("CONFIG_IMAGES");
+Set("CONFIG_IMAGES_LIBJPEG");
+Set("CONFIG_IMAGES_LIBPNG");
+Set("CONFIG_IMAGES_LIBUNGIF");
+UnSet("CONFIG_IMAGES_LIBGIF");
+UnSet("CONFIG_IMAGES_LIBMAGICK");
+
+# We want the public API
+Set("CONFIG_INSTALL_API");
+
+# FIXME
+Set("DEFAULT_CONFIG" => "cf/library");
+
+# Return success
+1;