mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-15 03:01:09 +08:00
b7beec1663
John's still working on the 'perl-test' (the perl backend test module).
45 lines
1.3 KiB
Makefile
45 lines
1.3 KiB
Makefile
###########################################################################
|
|
#
|
|
# Copyright 1999, John C. Quillan, 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 = init.c search.c close.c config.c bind.c unbind.c compare.c \
|
|
modify.c add.c modrdn.c delete.c
|
|
OBJS = init.o search.o close.o config.o bind.o unbind.o compare.o \
|
|
modify.o add.o modrdn.o delete.o
|
|
|
|
LDAP_INCDIR= ../../../include
|
|
LDAP_LIBDIR= ../../../libraries
|
|
|
|
BUILD_OPT = "--enable-perl"
|
|
BUILD_SRV = @BUILD_PERL@
|
|
|
|
PROGRAMS = libback-perl.a
|
|
|
|
XINCPATH = -I.. -I$(srcdir)/..
|
|
XDEFS = $(PERL_CPPFLAGS)
|
|
|
|
all-local-srv: FORCE
|
|
$(MAKE) $(MFLAGS) libback-perl.a
|
|
|
|
libback-perl.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 > $@)
|
|
|