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@
36 SONAMEFLAG
= @SONAMEFLAG@
37 VERSIONSCRIPT
= @VERSIONSCRIPT@
38 EXPORTSFILE
= @EXPORTSFILE@
42 include $(tdbdir
)/tdb.mk
43 include $(tdbdir
)/rules.mk
45 all:: showflags dirs
$(PROGS
) $(TDB_SOLIB
) libtdb.a
$(PYTHON_BUILD_TARGET
)
48 $(TDB_SOLIB
): $(TDB_OBJ
)
49 $(SHLD
) $(SHLD_FLAGS
) -o
$@
$(TDB_OBJ
) $(VERSIONSCRIPT
) $(EXPORTSFILE
) $(SONAMEFLAG
)$(TDB_SONAME
)
52 ${INSTALLCMD} -d
$(sharedbuilddir
)/lib
53 ${INSTALLCMD} -m
644 libtdb.a
$(sharedbuilddir
)/lib
54 ${INSTALLCMD} -m
755 $(TDB_SOLIB
) $(sharedbuilddir
)/lib
55 ln
-sf
$(TDB_SOLIB
) $(sharedbuilddir
)/lib
/$(TDB_SONAME
)
56 ln
-sf
$(TDB_SOLIB
) $(sharedbuilddir
)/lib
/libtdb.so
57 ${INSTALLCMD} -d
$(sharedbuilddir
)/include
58 ${INSTALLCMD} -m
644 $(srcdir)/include/tdb.h
$(sharedbuilddir
)/include
62 test:: $(PYTHON_CHECK_TARGET
)
63 installcheck:: test install
70 rm -f config.log config.status
include/config.h config.cache
73 realdistclean
:: distclean
74 rm -f configure
include/config.h.in