]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/back-tcl/Makefile.in
Free IDL_CACHE locks
[openldap] / servers / slapd / back-tcl / Makefile.in
index a26ca1210d132e42306567b99496c38fe76e72ed..0b2cf7e3221df54b9e6cc769a1f347c6acbf0846 100644 (file)
@@ -1,3 +1,6 @@
+# $OpenLDAP$
+## Copyright 1999-2003 The OpenLDAP Foundation, All Rights Reserved.
+## COPYING RESTRICTIONS APPLY, see COPYRIGHT file
 ########################################################################### 
 # 
 # Copyright 1999, Ben Collins <bcollins@debian.org>, All rights reserved.
 # in file LICENSE in the top-level directory of the distribution.
 # 
 ##########################################################################
-XSRCS  = version.c
 
 SRCS   = tcl_init.c tcl_search.c tcl_close.c tcl_config.c tcl_bind.c \
        tcl_unbind.c tcl_compare.c tcl_modify.c tcl_add.c tcl_modrdn.c \
        tcl_delete.c tcl_abandon.c tcl_util.c
-OBJS   = tcl_init.o tcl_search.o tcl_close.o tcl_config.o tcl_bind.o \
-       tcl_unbind.o tcl_compare.o tcl_modify.o tcl_add.o tcl_modrdn.o \
-       tcl_delete.o tcl_abandon.o tcl_util.o
+OBJS   = tcl_init.lo tcl_search.lo tcl_close.lo tcl_config.lo tcl_bind.lo \
+       tcl_unbind.lo tcl_compare.lo tcl_modify.lo tcl_add.lo tcl_modrdn.lo \
+       tcl_delete.lo tcl_abandon.lo tcl_util.lo
 
 LDAP_INCDIR= ../../../include       
 LDAP_LIBDIR= ../../../libraries
 
 BUILD_OPT = "--enable-tcl"
-BUILD_SRV = @BUILD_TCL@
+BUILD_MOD = @BUILD_TCL@
+BUILD_MOD_DYNAMIC = @BUILD_TCL_DYNAMIC@
 
-PROGRAMS =             libback-tcl.a
+mod_DEFS = -DSLAPD_IMPORT
+MOD_DEFS = $(@BUILD_TCL@_DEFS)
 
+shared_LDAP_LIBS = $(LDAP_LIBLDAP_R_LA) $(LDAP_LIBLBER_LA)
+NT_LINK_LIBS = -L.. -lslapd $(@BUILD_LIBS_DYNAMIC@_LDAP_LIBS)
+UNIX_LINK_LIBS = $(@BUILD_LIBS_DYNAMIC@_LDAP_LIBS)
+
+LIBBASE = back_tcl
+
+XDEFS = $(MODULES_CPPFLAGS)
 XINCPATH = -I.. -I$(srcdir)/..
 
-all-local-srv: FORCE
-       $(MAKE) $(MFLAGS) libback-tcl.a
-
-libback-tcl.a: version.o
-       $(AR) ruv $@ $(OBJS) version.o
-       @$(RANLIB) $@
-       @touch ../.backend
-
-version.c: $(OBJS) $(LDAP_LIBDEPEND)
-       $(RM) $@
-       (u=$${USER-root} v=`$(CAT) $(VERSIONFILE)` d=`$(PWD)` h=`$(HOSTNAME)` \
-       t=`$(DATE)`; $(SED) -e "s|%WHEN%|$${t}|" \
-       -e "s|%WHOANDWHERE%|$${u}@$${h}:$${d}|" \
-       -e "s|%VERSION%|$${v}|" \
-       < $(srcdir)/Version.c > $@)
+all-local-lib: ../.backend
+
+../.backend: lib$(LIBBASE).a
+       @touch $@