lib/util: hex_encode_talloc(): fix error path and set talloc name
[Samba/vfs_proxy.git] / lib / tdb / Makefile.in
blob9915d88264b9a486a3da092fe10b896330874655
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 VPATH = @srcdir@:@libreplacedir@
13 srcdir = @srcdir@
14 builddir = @builddir@
15 sharedbuilddir = @sharedbuilddir@
16 INSTALLCMD = @INSTALL@
17 CPPFLAGS = @CPPFLAGS@ -I$(srcdir)/include -Iinclude
18 CFLAGS = $(CPPFLAGS) @CFLAGS@
19 LDFLAGS = @LDFLAGS@
20 EXEEXT = @EXEEXT@
21 SHLD = @SHLD@
22 SHLD_FLAGS = @SHLD_FLAGS@
23 PACKAGE_VERSION = @PACKAGE_VERSION@
24 PICFLAG = @PICFLAG@
25 SHLIBEXT = @SHLIBEXT@
26 SWIG = swig
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 TDB_OBJ = @TDB_OBJ@ @LIBREPLACEOBJ@
37 default: all
39 include $(tdbdir)/tdb.mk
40 include $(tdbdir)/rules.mk
42 all:: showflags dirs $(PROGS) $(TDB_SOLIB) libtdb.a $(PYTHON_BUILD_TARGET)
44 install:: all
45 $(TDB_SOLIB): $(TDB_OBJ)
46 $(SHLD) $(SHLD_FLAGS) -o $@ $(TDB_OBJ) @SONAMEFLAG@$(TDB_SONAME)
48 shared-build: all
49 ${INSTALLCMD} -d $(sharedbuilddir)/lib
50 ${INSTALLCMD} -m 644 libtdb.a $(sharedbuilddir)/lib
51 ${INSTALLCMD} -m 755 $(TDB_SOLIB) $(sharedbuilddir)/lib
52 ln -sf $(TDB_SOLIB) $(sharedbuilddir)/lib/$(TDB_SONAME)
53 ln -sf $(TDB_SOLIB) $(sharedbuilddir)/lib/libtdb.so
54 ${INSTALLCMD} -d $(sharedbuilddir)/include
55 ${INSTALLCMD} -m 644 $(srcdir)/include/tdb.h $(sharedbuilddir)/include
57 check: test
59 test:: $(PYTHON_CHECK_TARGET)
60 installcheck:: test install
62 clean::
63 rm -f *.o *.a */*.o
65 distclean:: clean
66 rm -f config.log config.status include/config.h config.cache
67 rm -f Makefile
69 realdistclean:: distclean
70 rm -f configure include/config.h.in