s4-python: Install external included packages only if they're not present on the...
[nivanova/samba-autobuild/.git] / lib / tdb / Makefile.in
1 #!gmake
2 #
3 # Makefile for tdb directory
4 #
5
6 CC = @CC@
7 prefix = @prefix@
8 exec_prefix = @exec_prefix@
9 bindir = @bindir@
10 includedir = @includedir@
11 libdir = @libdir@
12 mandir = @mandir@
13 VPATH = @srcdir@:@libreplacedir@
14 srcdir = @srcdir@
15 builddir = @builddir@
16 sharedbuilddir = @sharedbuilddir@
17 INSTALLCMD = @INSTALL@
18 CPPFLAGS = @CPPFLAGS@ -I$(srcdir)/include -Iinclude 
19 CFLAGS = $(CPPFLAGS) @CFLAGS@
20 LDFLAGS = @LDFLAGS@
21 EXEEXT = @EXEEXT@
22 SHLD = @SHLD@
23 SHLD_FLAGS = @SHLD_FLAGS@
24 PACKAGE_VERSION = @PACKAGE_VERSION@
25 PICFLAG = @PICFLAG@
26 SHLIBEXT = @SHLIBEXT@
27 PYTHON = @PYTHON@
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@
33 tdbdir = @tdbdir@
34
35 EXTRA_TARGETS = @DOC_TARGET@
36
37 TDB_OBJ = @TDB_OBJ@ @LIBREPLACEOBJ@
38
39 SONAMEFLAG = @SONAMEFLAG@
40 VERSIONSCRIPT = @VERSIONSCRIPT@
41 EXPORTSFILE = @EXPORTSFILE@
42
43 XSLTPROC = @XSLTPROC@
44
45 default: all
46
47 include $(tdbdir)/tdb.mk
48 include $(tdbdir)/rules.mk
49
50 all:: showflags dirs $(PROGS) $(TDB_SOLIB) libtdb.a $(PYTHON_BUILD_TARGET) $(EXTRA_TARGETS)
51
52 install:: all
53 $(TDB_SOLIB): $(TDB_OBJ)
54         $(SHLD) $(SHLD_FLAGS) -o $@ $(TDB_OBJ) $(VERSIONSCRIPT) $(EXPORTSFILE) $(SONAMEFLAG)$(TDB_SONAME)
55
56 shared-build: all
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
64
65 check: test
66
67 test:: $(PYTHON_CHECK_TARGET)
68 installcheck:: test install
69
70 clean::
71         rm -f *.o *.a */*.o
72         rm -fr abi
73
74 distclean:: clean
75         rm -f config.log config.status include/config.h config.cache
76         rm -f Makefile
77
78 realdistclean:: distclean
79         rm -f configure include/config.h.in