2003-11-26 10:58:56 +08:00
|
|
|
# Makefile for -llutil
|
1999-09-09 06:52:19 +08:00
|
|
|
# $OpenLDAP$
|
2003-11-26 12:17:25 +08:00
|
|
|
## This work is part of OpenLDAP Software <http://www.openldap.org/>.
|
|
|
|
##
|
2009-01-22 08:40:04 +08:00
|
|
|
## Copyright 1998-2009 The OpenLDAP Foundation.
|
2003-11-26 10:58:56 +08:00
|
|
|
## All rights reserved.
|
1998-10-25 09:41:42 +08:00
|
|
|
##
|
2003-11-26 10:58:56 +08:00
|
|
|
## Redistribution and use in source and binary forms, with or without
|
|
|
|
## modification, are permitted only as authorized by the OpenLDAP
|
|
|
|
## Public License.
|
1998-10-25 09:41:42 +08:00
|
|
|
##
|
2003-11-26 10:58:56 +08:00
|
|
|
## A copy of this license is available in the file LICENSE in the
|
|
|
|
## top-level directory of the distribution or, alternatively, at
|
|
|
|
## <http://www.OpenLDAP.org/license.html>.
|
1998-10-25 09:41:42 +08:00
|
|
|
|
|
|
|
LIBRARY = liblutil.a
|
2010-04-12 10:01:55 +08:00
|
|
|
|
|
|
|
SHAREDLIB = libldif.la
|
|
|
|
|
2003-11-26 12:17:25 +08:00
|
|
|
PROGRAM = testavl
|
|
|
|
|
|
|
|
LDAP_INCDIR= ../../include
|
|
|
|
LDAP_LIBDIR= ../../libraries
|
1999-10-28 15:31:59 +08:00
|
|
|
|
2000-05-13 05:16:15 +08:00
|
|
|
NT_SRCS = ntservice.c
|
|
|
|
NT_OBJS = ntservice.o slapdmsg.res
|
1999-10-28 15:31:59 +08:00
|
|
|
|
|
|
|
UNIX_SRCS = detach.c
|
|
|
|
UNIX_OBJS = detach.o
|
|
|
|
|
2003-11-26 12:17:25 +08:00
|
|
|
XLIBS = $(LIBRARY) $(LDAP_LIBLBER_LA)
|
|
|
|
|
2009-08-19 07:48:15 +08:00
|
|
|
SRCS = base64.c entropy.c sasl.c signal.c hash.c passfile.c \
|
2001-12-05 13:39:34 +08:00
|
|
|
md5.c passwd.c sha1.c getpass.c lockf.c utils.c uuid.c sockpair.c \
|
2005-09-21 19:27:14 +08:00
|
|
|
avl.c tavl.c ldif.c fetch.c \
|
2003-11-26 12:17:25 +08:00
|
|
|
testavl.c \
|
2009-02-05 17:38:07 +08:00
|
|
|
meter.c \
|
1999-10-28 15:31:59 +08:00
|
|
|
@LIBSRCS@ $(@PLAT@_SRCS)
|
|
|
|
|
2009-08-19 07:48:15 +08:00
|
|
|
OBJS = base64.o entropy.o sasl.o signal.o hash.o passfile.o \
|
2001-12-05 13:39:34 +08:00
|
|
|
md5.o passwd.o sha1.o getpass.o lockf.o utils.o uuid.o sockpair.o \
|
2005-09-21 19:27:14 +08:00
|
|
|
avl.o tavl.o ldif.o fetch.o \
|
2009-02-05 17:38:07 +08:00
|
|
|
meter.o \
|
1999-10-28 15:31:59 +08:00
|
|
|
@LIBOBJS@ $(@PLAT@_OBJS)
|
1998-10-25 09:41:42 +08:00
|
|
|
|
2010-04-12 10:01:55 +08:00
|
|
|
SHAREDLIBOBJS = ldif.lo fetch.lo
|
|
|
|
|
2003-11-26 12:17:25 +08:00
|
|
|
testavl: $(XLIBS) testavl.o
|
|
|
|
(LTLINK) -o $@ testavl.o $(LIBS)
|
1998-10-25 09:41:42 +08:00
|
|
|
|
2005-09-21 22:45:35 +08:00
|
|
|
testtavl: $(XLIBS) testtavl.o
|
|
|
|
(LTLINK) -o $@ testtavl.o $(LIBS)
|
|
|
|
|
1999-10-28 15:31:59 +08:00
|
|
|
# These rules are for a Mingw32 build, specifically.
|
|
|
|
# It's ok for them to be here because the clean rule is harmless, and
|
|
|
|
# slapdmsg.res won't get built unless it's declared in OBJS.
|
|
|
|
|
2005-05-12 12:03:31 +08:00
|
|
|
slapdmsg.bin: FORCE
|
|
|
|
@if [ ! -f $@ ]; then cp $(srcdir)/$@ .; fi
|
|
|
|
|
1999-10-28 15:31:59 +08:00
|
|
|
slapdmsg.res: slapdmsg.rc slapdmsg.bin
|
|
|
|
windres $< -O coff -o $@
|
|
|
|
|
|
|
|
clean-local:
|
|
|
|
$(RM) *.res
|
|
|
|
|
2010-04-12 10:01:55 +08:00
|
|
|
all-local: $(SHAREDLIB)
|
|
|
|
|
|
|
|
.SUFFIXES: .c .o .lo
|
|
|
|
|
|
|
|
.c.lo:
|
|
|
|
$(LTCOMPILE_LIB) $<
|
|
|
|
|
|
|
|
$(SHAREDLIB): $(LIBRARY) $(SHAREDLIBOBJS) version.lo
|
|
|
|
$(LTLINK_LIB) -o $(SHAREDLIB) $(SHAREDLIBOBJS) version.lo $(LINK_LIBS)
|
|
|
|
|
|
|
|
install-local: FORCE
|
|
|
|
-$(MKDIR) $(DESTDIR)$(libdir)
|
|
|
|
$(LTINSTALL) $(INSTALLFLAGS) -m 644 $(SHAREDLIB) $(DESTDIR)$(libdir)
|
|
|
|
$(LTFINISH) $(DESTDIR)$(libdir)
|