spoolss: add spoolss_DriverInfo7.
[Samba.git] / lib / tdb / Makefile.in
blob93bfe37f4f2089bf2d8d65b9ac0626ddec7f09fc
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 PYTHON = @PYTHON@
27 PYTHON_CONFIG = @PYTHON_CONFIG@
28 PYTHON_BUILD_TARGET = @PYTHON_BUILD_TARGET@
29 PYTHON_INSTALL_TARGET = @PYTHON_INSTALL_TARGET@
30 PYTHON_CHECK_TARGET = @PYTHON_CHECK_TARGET@
31 LIB_PATH_VAR = @LIB_PATH_VAR@
32 tdbdir = @tdbdir@
34 TDB_OBJ = @TDB_OBJ@ @LIBREPLACEOBJ@
36 SONAMEFLAG = @SONAMEFLAG@
37 VERSIONSCRIPT = @VERSIONSCRIPT@
38 EXPORTSFILE = @EXPORTSFILE@
40 default: all
42 include $(tdbdir)/tdb.mk
43 include $(tdbdir)/rules.mk
45 all:: showflags dirs $(PROGS) $(TDB_SOLIB) libtdb.a $(PYTHON_BUILD_TARGET)
47 install:: all
48 $(TDB_SOLIB): $(TDB_OBJ)
49 $(SHLD) $(SHLD_FLAGS) -o $@ $(TDB_OBJ) $(VERSIONSCRIPT) $(EXPORTSFILE) $(SONAMEFLAG)$(TDB_SONAME)
51 shared-build: all
52 ${INSTALLCMD} -d $(sharedbuilddir)/lib
53 ${INSTALLCMD} -m 644 libtdb.a $(sharedbuilddir)/lib
54 ${INSTALLCMD} -m 755 $(TDB_SOLIB) $(sharedbuilddir)/lib
55 ln -sf $(TDB_SOLIB) $(sharedbuilddir)/lib/$(TDB_SONAME)
56 ln -sf $(TDB_SOLIB) $(sharedbuilddir)/lib/libtdb.so
57 ${INSTALLCMD} -d $(sharedbuilddir)/include
58 ${INSTALLCMD} -m 644 $(srcdir)/include/tdb.h $(sharedbuilddir)/include
60 check: test
62 test:: $(PYTHON_CHECK_TARGET)
63 installcheck:: test install
65 clean::
66 rm -f *.o *.a */*.o
67 rm -fr abi
69 distclean:: clean
70 rm -f config.log config.status include/config.h config.cache
71 rm -f Makefile
73 realdistclean:: distclean
74 rm -f configure include/config.h.in