3 ## This work is part of OpenLDAP Software <http://www.openldap.org/>.
5 ## Copyright 1998-2007 The OpenLDAP Foundation.
6 ## All rights reserved.
8 ## Redistribution and use in source and binary forms, with or without
9 ## modification, are permitted only as authorized by the OpenLDAP
12 ## A copy of this license is available in the file LICENSE in the
13 ## top-level directory of the distribution or, alternatively, at
14 ## <http://www.OpenLDAP.org/license.html>.
24 LIB_DEFS = -DLBER_LIBRARY
26 SRCS= assert.c decode.c encode.c io.c bprint.c debug.c \
27 memory.c options.c sockbuf.c $(@PLAT@_SRCS)
28 OBJS= assert.lo decode.lo encode.lo io.lo bprint.lo debug.lo \
29 memory.lo options.lo sockbuf.lo $(@PLAT@_OBJS)
32 PROGRAMS= dtest etest idtest
34 LDAP_INCDIR= ../../include
35 LDAP_LIBDIR= ../../libraries
37 XLIBS = $(LIBRARY) $(LDAP_LIBLUTIL_A)
39 NT_LINK_LIBS = $(AC_LIBS)
41 dtest: $(XLIBS) dtest.o
42 $(LTLINK) -o $@ dtest.o $(LIBS)
43 etest: $(XLIBS) etest.o
44 $(LTLINK) -o $@ etest.o $(LIBS)
45 idtest: $(XLIBS) idtest.o
46 $(LTLINK) -o $@ idtest.o $(LIBS)
49 -$(MKDIR) $(DESTDIR)$(libdir)
50 $(LTINSTALL) $(INSTALLFLAGS) -m 644 $(LIBRARY) $(DESTDIR)$(libdir)
51 $(LTFINISH) $(DESTDIR)$(libdir)