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