mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-09 02:52:04 +08:00
46 lines
1.4 KiB
Makefile
46 lines
1.4 KiB
Makefile
###########################################################################
|
|
#
|
|
# Copyright 1999, Ben Collins <bcollins@debian.org>, All rights reserved.
|
|
#
|
|
# Redistribution and use in source and binary forms are permitted only
|
|
# as authorized by the OpenLDAP Public License. A copy of this
|
|
# license is available at http://www.OpenLDAP.org/license.html or
|
|
# 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
|
|
|
|
LDAP_INCDIR= ../../../include
|
|
LDAP_LIBDIR= ../../../libraries
|
|
|
|
BUILD_OPT = "--enable-tcl"
|
|
BUILD_SRV = @BUILD_TCL@
|
|
|
|
PROGRAMS = libback-tcl.a
|
|
|
|
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 > $@)
|
|
|