3 ## Copyright 1998-2003 The OpenLDAP Foundation.
4 ## All rights reserved.
6 ## Redistribution and use in source and binary forms, with or without
7 ## modification, are permitted only as authorized by the OpenLDAP
10 ## A copy of this license is available in the file LICENSE in the
11 ## top-level directory of the distribution or, alternatively, at
12 ## <http://www.OpenLDAP.org/license.html>.
22 LIB_DEFS = -DLBER_LIBRARY
24 SRCS= assert.c decode.c encode.c io.c bprint.c debug.c \
25 memory.c options.c sockbuf.c $(@PLAT@_SRCS)
26 OBJS= assert.lo decode.lo encode.lo io.lo bprint.lo debug.lo \
27 memory.lo options.lo sockbuf.lo $(@PLAT@_OBJS)
30 PROGRAMS= dtest etest idtest
32 LDAP_INCDIR= ../../include
33 LDAP_LIBDIR= ../../libraries
35 XLIBS = $(LIBRARY) $(LDAP_LIBLUTIL_A)
37 NT_LINK_LIBS = $(AC_LIBS)
39 dtest: $(XLIBS) dtest.o
40 $(LTLINK) -o $@ dtest.o $(LIBS)
41 etest: $(XLIBS) etest.o
42 $(LTLINK) -o $@ etest.o $(LIBS)
43 idtest: $(XLIBS) idtest.o
44 $(LTLINK) -o $@ idtest.o $(LIBS)
47 -$(MKDIR) $(DESTDIR)$(libdir)
48 $(LTINSTALL) $(INSTALLFLAGS) -m 644 $(LIBRARY) $(DESTDIR)$(libdir)
49 $(LTFINISH) $(DESTDIR)$(libdir)