# (c) 2007 Martin Mares <mj@ucw.cz>
# The default target
-all: runtree libs
+all: runtree libs api programs extras configs
# Include configuration
s=.
# We will use the libucw build system
include $(s)/build/Maketop
+# 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
}
Init($srcdir, "defconfig"); ## FIXME: Shouldn't we use default.cfg everywhere?
-Include "sherlock/default.cfg";
+# FIXME!
+Set("SHERLOCK_VERSION" => "0.0");
Log "### Configuring Sherlock Libraries " . Get("SHERLOCK_VERSION") . " with configuration " . Get("CONFIG") . "\n";
Include Get("CONFIG");
Include "lib/autoconf.cfg";
-# Default configuration of Sherlock libraries
+# Default configuration of Sherlock libraries (see sherlock/default.cfg for an explanation)
-# Version string used by all Sherlock libraries
-# FIXME!
-Set("SHERLOCK_VERSION" => "0.0");
+# Do we want shared or static libraries?
+Set("CONFIG_SHARED");
-UnSet("CONFIG_LARGE_FILES");
+# We want the public API
+Set("CONFIG_INSTALL_API");
-# We want to build all libraries shared
-Set("CONFIG_SHARED");
+# Libucw should support files >2GB and threading
+Set("CONFIG_LARGE_FILES");
+Set("CONFIG_UCW_THREADS" => 1);
+
+# Libucw extensions
+Set("CONFIG_UCW_PERL" => 1);
+Set("CONFIG_UCW_PERL_MODULES" => 1);
+Set("CONFIG_UCW_SHELL_UTILS" => 1);
+
+# Libsh settings
+Set("CONFIG_BUCKET_SHIFT" => 6);
# Liblang settings
Set("CONFIG_LANG");
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;