s4-waf: nsstest only needs replace.
[Samba.git] / lib / tdb / Makefile.in
blobf12a27a3500533da9ea9d790aab7eff3f64847ce
1 #!gmake
3 # Makefile for tdb directory
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@
35 EXTRA_TARGETS = @DOC_TARGET@
37 TDB_OBJ = @TDB_OBJ@ @LIBREPLACEOBJ@
38 TDB_DEPS = @TDB_DEPS@
40 SONAMEFLAG = @SONAMEFLAG@
41 VERSIONSCRIPT = @VERSIONSCRIPT@
42 EXPORTSFILE = @EXPORTSFILE@
44 XSLTPROC = @XSLTPROC@
46 default: all
48 include $(tdbdir)/tdb.mk
49 include $(tdbdir)/rules.mk
51 all:: showflags dirs $(PROGS) $(TDB_SOLIB) libtdb.a $(PYTHON_BUILD_TARGET) $(EXTRA_TARGETS)
53 install:: all
54 $(TDB_SOLIB): $(TDB_OBJ)
55 $(SHLD) $(SHLD_FLAGS) -o $@ $(TDB_OBJ) $(VERSIONSCRIPT) $(EXPORTSFILE) $(TDB_DEPS) $(SONAMEFLAG)$(TDB_SONAME)
57 shared-build: all
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
66 check: test
68 test:: $(PYTHON_CHECK_TARGET)
69 installcheck:: test install
71 clean::
72 rm -f *.o *.a */*.o
73 rm -fr abi
75 distclean:: clean
76 rm -f config.log config.status include/config.h config.cache
77 rm -f Makefile
79 realdistclean:: distclean
80 rm -f configure include/config.h.in