3 # Makefile for tdb directory
8 exec_prefix = @
exec_prefix@
10 includedir = @
includedir@
13 VPATH
= @
srcdir@
:@libreplacedir@
16 sharedbuilddir
= @sharedbuilddir@
17 INSTALLCMD
= @INSTALL@
18 CPPFLAGS
= @CPPFLAGS@
-I
$(srcdir)/include -Iinclude
19 CFLAGS
= $(CPPFLAGS
) @CFLAGS@
23 SHLD_FLAGS
= @SHLD_FLAGS@
24 PACKAGE_VERSION
= @PACKAGE_VERSION@
28 PYTHON_CONFIG
= @PYTHON_CONFIG@
29 PYTHON_BUILD_TARGET
= @PYTHON_BUILD_TARGET@
30 PYTHON_INSTALL_TARGET
= @PYTHON_INSTALL_TARGET@
31 PYTHON_CHECK_TARGET
= @PYTHON_CHECK_TARGET@
32 LIB_PATH_VAR
= @LIB_PATH_VAR@
35 EXTRA_TARGETS
= @DOC_TARGET@
37 TDB_OBJ
= @TDB_OBJ@ @LIBREPLACEOBJ@
40 SONAMEFLAG
= @SONAMEFLAG@
41 VERSIONSCRIPT
= @VERSIONSCRIPT@
42 EXPORTSFILE
= @EXPORTSFILE@
48 include $(tdbdir
)/tdb.mk
49 include $(tdbdir
)/rules.mk
51 all:: showflags dirs
$(PROGS
) $(TDB_SOLIB
) libtdb.a
$(PYTHON_BUILD_TARGET
) $(EXTRA_TARGETS
)
54 $(TDB_SOLIB
): $(TDB_OBJ
)
55 $(SHLD
) $(SHLD_FLAGS
) -o
$@
$(TDB_OBJ
) $(VERSIONSCRIPT
) $(EXPORTSFILE
) $(TDB_DEPS
) $(SONAMEFLAG
)$(TDB_SONAME
)
58 ${INSTALLCMD} -d
$(sharedbuilddir
)/lib
59 ${INSTALLCMD} -m
644 libtdb.a
$(sharedbuilddir
)/lib
60 ${INSTALLCMD} -m
755 $(TDB_SOLIB
) $(sharedbuilddir
)/lib
61 ln
-sf
$(TDB_SOLIB
) $(sharedbuilddir
)/lib
/$(TDB_SONAME
)
62 ln
-sf
$(TDB_SOLIB
) $(sharedbuilddir
)/lib
/libtdb.so
63 ${INSTALLCMD} -d
$(sharedbuilddir
)/include
64 ${INSTALLCMD} -m
644 $(srcdir)/include/tdb.h
$(sharedbuilddir
)/include
68 test:: $(PYTHON_CHECK_TARGET
)
69 installcheck:: test install
76 rm -f config.log config.status
include/config.h config.cache
79 realdistclean
:: distclean
80 rm -f configure
include/config.h.in