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@
2006-10-20 13:55:47 +04:00
VPATH = @srcdir@:@libreplacedir@
srcdir = @srcdir@
builddir = @builddir@
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
SWIG = swig
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
2007-11-07 09:57:35 +03:00
TDB_OBJ = @TDB_OBJ@ @LIBREPLACEOBJ@
2006-10-20 13:55:47 +04:00
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
2008-09-14 21:21:54 +04:00
all :: showflags dirs $( PROGS ) $( TDB_SOLIB ) libtdb .a $( PYTHON_BUILD_TARGET )
2006-08-18 20:25:09 +04:00
2008-09-14 21:21:54 +04:00
install :: all
$(TDB_SOLIB) : $( TDB_OBJ )
$( SHLD) $( SHLD_FLAGS) -o $@ $( TDB_OBJ) @SONAMEFLAG@$( TDB_SONAME)
2006-08-18 20:25:09 +04:00
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
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