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@
39 SONAMEFLAG
= @SONAMEFLAG@
40 VERSIONSCRIPT
= @VERSIONSCRIPT@
41 EXPORTSFILE
= @EXPORTSFILE@
47 include $(tdbdir
)/tdb.mk
48 include $(tdbdir
)/rules.mk
50 all:: showflags dirs
$(PROGS
) $(TDB_SOLIB
) libtdb.a
$(PYTHON_BUILD_TARGET
) $(EXTRA_TARGETS
)
53 $(TDB_SOLIB
): $(TDB_OBJ
)
54 $(SHLD
) $(SHLD_FLAGS
) -o
$@
$(TDB_OBJ
) $(VERSIONSCRIPT
) $(EXPORTSFILE
) $(SONAMEFLAG
)$(TDB_SONAME
)
57 ${INSTALLCMD} -d
$(sharedbuilddir
)/lib
58 ${INSTALLCMD} -m
644 libtdb.a
$(sharedbuilddir
)/lib
59 ${INSTALLCMD} -m
755 $(TDB_SOLIB
) $(sharedbuilddir
)/lib
60 ln
-sf
$(TDB_SOLIB
) $(sharedbuilddir
)/lib
/$(TDB_SONAME
)
61 ln
-sf
$(TDB_SOLIB
) $(sharedbuilddir
)/lib
/libtdb.so
62 ${INSTALLCMD} -d
$(sharedbuilddir
)/include
63 ${INSTALLCMD} -m
644 $(srcdir)/include/tdb.h
$(sharedbuilddir
)/include
67 test:: $(PYTHON_CHECK_TARGET
)
68 installcheck:: test install
75 rm -f config.log config.status
include/config.h config.cache
78 realdistclean
:: distclean
79 rm -f configure
include/config.h.in