3 # Makefile for tdb directory
8 exec_prefix = @
exec_prefix@
10 includedir = @
includedir@
12 VPATH
= @
srcdir@
:@libreplacedir@
15 sharedbuilddir
= @sharedbuilddir@
16 INSTALLCMD
= @INSTALL@
17 CPPFLAGS
= @CPPFLAGS@
-I
$(srcdir)/include -Iinclude
18 CFLAGS
= $(CPPFLAGS
) @CFLAGS@
22 SHLD_FLAGS
= @SHLD_FLAGS@
23 PACKAGE_VERSION
= @PACKAGE_VERSION@
27 PYTHON_CONFIG
= @PYTHON_CONFIG@
28 PYTHON_BUILD_TARGET
= @PYTHON_BUILD_TARGET@
29 PYTHON_INSTALL_TARGET
= @PYTHON_INSTALL_TARGET@
30 PYTHON_CHECK_TARGET
= @PYTHON_CHECK_TARGET@
31 LIB_PATH_VAR
= @LIB_PATH_VAR@
34 TDB_OBJ
= @TDB_OBJ@ @LIBREPLACEOBJ@
38 include $(tdbdir
)/tdb.mk
39 include $(tdbdir
)/rules.mk
41 all:: showflags dirs
$(PROGS
) $(TDB_SOLIB
) libtdb.a
$(PYTHON_BUILD_TARGET
)
44 $(TDB_SOLIB
): $(TDB_OBJ
)
45 $(SHLD
) $(SHLD_FLAGS
) -o
$@
$(TDB_OBJ
) @SONAMEFLAG@
$(TDB_SONAME
)
48 ${INSTALLCMD} -d
$(sharedbuilddir
)/lib
49 ${INSTALLCMD} -m
644 libtdb.a
$(sharedbuilddir
)/lib
50 ${INSTALLCMD} -m
755 $(TDB_SOLIB
) $(sharedbuilddir
)/lib
51 ln
-sf
$(TDB_SOLIB
) $(sharedbuilddir
)/lib
/$(TDB_SONAME
)
52 ln
-sf
$(TDB_SOLIB
) $(sharedbuilddir
)/lib
/libtdb.so
53 ${INSTALLCMD} -d
$(sharedbuilddir
)/include
54 ${INSTALLCMD} -m
644 $(srcdir)/include/tdb.h
$(sharedbuilddir
)/include
58 test:: $(PYTHON_CHECK_TARGET
)
59 installcheck:: test install
65 rm -f config.log config.status
include/config.h config.cache
68 realdistclean
:: distclean
69 rm -f configure
include/config.h.in