2006-10-20 13:55:47 +04:00
#!gmake
2006-08-18 20:25:09 +04:00
#
# Makefile for tdb directory
#
CC = @CC@
prefix = @prefix@
exec_prefix = @exec_prefix@
bindir = @bindir@
includedir = @includedir@
libdir = @libdir@
2010-01-06 16:39:43 +03:00
mandir = @mandir@
2006-10-20 13:55:47 +04:00
VPATH = @srcdir@:@libreplacedir@
srcdir = @srcdir@
builddir = @builddir@
2008-09-19 23:15:46 +04:00
sharedbuilddir = @sharedbuilddir@
INSTALLCMD = @INSTALL@
2007-11-07 09:57:35 +03:00
CPPFLAGS = @CPPFLAGS@ -I$( srcdir) /include -Iinclude
2006-12-01 23:45:43 +03:00
CFLAGS = $( CPPFLAGS) @CFLAGS@
LDFLAGS = @LDFLAGS@
EXEEXT = @EXEEXT@
2008-09-14 21:21:54 +04:00
SHLD = @SHLD@
2007-11-07 09:57:35 +03:00
SHLD_FLAGS = @SHLD_FLAGS@
PACKAGE_VERSION = @PACKAGE_VERSION@
PICFLAG = @PICFLAG@
SHLIBEXT = @SHLIBEXT@
2008-09-14 21:21:54 +04:00
PYTHON = @PYTHON@
PYTHON_CONFIG = @PYTHON_CONFIG@
PYTHON_BUILD_TARGET = @PYTHON_BUILD_TARGET@
PYTHON_INSTALL_TARGET = @PYTHON_INSTALL_TARGET@
PYTHON_CHECK_TARGET = @PYTHON_CHECK_TARGET@
LIB_PATH_VAR = @LIB_PATH_VAR@
tdbdir = @tdbdir@
2006-12-01 23:45:43 +03:00
2009-12-20 20:01:24 +03:00
EXTRA_TARGETS = @DOC_TARGET@
2007-11-07 09:57:35 +03:00
TDB_OBJ = @TDB_OBJ@ @LIBREPLACEOBJ@
2006-10-20 13:55:47 +04:00
2009-06-16 00:19:19 +04:00
SONAMEFLAG = @SONAMEFLAG@
VERSIONSCRIPT = @VERSIONSCRIPT@
EXPORTSFILE = @EXPORTSFILE@
2009-12-20 20:01:24 +03:00
XSLTPROC = @XSLTPROC@
2008-09-14 21:21:54 +04:00
default : all
2006-10-20 13:55:47 +04:00
2008-09-14 21:21:54 +04:00
i n c l u d e $( tdbdir ) / t d b . m k
i n c l u d e $( tdbdir ) / r u l e s . m k
2006-08-18 20:25:09 +04:00
2009-12-20 20:01:24 +03:00
all :: showflags dirs $( PROGS ) $( TDB_SOLIB ) libtdb .a $( PYTHON_BUILD_TARGET ) $( EXTRA_TARGETS )
2006-08-18 20:25:09 +04:00
2008-09-14 21:21:54 +04:00
install :: all
$(TDB_SOLIB) : $( TDB_OBJ )
2009-06-16 00:19:19 +04:00
$( SHLD) $( SHLD_FLAGS) -o $@ $( TDB_OBJ) $( VERSIONSCRIPT) $( EXPORTSFILE) $( SONAMEFLAG) $( TDB_SONAME)
2006-08-18 20:25:09 +04:00
2008-09-19 23:15:46 +04:00
shared-build : all
${ INSTALLCMD } -d $( sharedbuilddir) /lib
${ INSTALLCMD } -m 644 libtdb.a $( sharedbuilddir) /lib
${ INSTALLCMD } -m 755 $( TDB_SOLIB) $( sharedbuilddir) /lib
ln -sf $( TDB_SOLIB) $( sharedbuilddir) /lib/$( TDB_SONAME)
ln -sf $( TDB_SOLIB) $( sharedbuilddir) /lib/libtdb.so
${ INSTALLCMD } -d $( sharedbuilddir) /include
${ INSTALLCMD } -m 644 $( srcdir) /include/tdb.h $( sharedbuilddir) /include
2008-09-14 21:21:54 +04:00
check : test
2006-08-18 20:25:09 +04:00
2008-09-14 21:21:54 +04:00
test :: $( PYTHON_CHECK_TARGET )
installcheck :: test install
2006-08-18 20:25:09 +04:00
2008-09-14 21:21:54 +04:00
clean ::
rm -f *.o *.a */*.o
2009-06-16 00:19:19 +04:00
rm -fr abi
2006-08-18 20:25:09 +04:00
2008-09-14 21:21:54 +04:00
distclean :: clean
2006-10-20 13:55:47 +04:00
rm -f config.log config.status include/config.h config.cache
rm -f Makefile
2006-08-18 20:25:09 +04:00
2008-09-14 21:21:54 +04:00
realdistclean :: distclean
2006-10-20 13:55:47 +04:00
rm -f configure include/config.h.in