1# LIBLBER
2# $OpenLDAP$
3## This work is part of OpenLDAP Software <http://www.openldap.org/>.
4##
5## Copyright 1998-2011 The OpenLDAP Foundation.
6## All rights reserved.
7##
8## Redistribution and use in source and binary forms, with or without
9## modification, are permitted only as authorized by the OpenLDAP
10## Public License.
11##
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>.
15
16LIBRARY = liblber.la
17
18NT_SRCS = nt_err.c
19NT_OBJS = nt_err.lo
20
21UNIX_SRCS = stdio.c
22UNIX_OBJS = stdio.lo
23
24LIB_DEFS = -DLBER_LIBRARY
25
26SRCS= assert.c decode.c encode.c io.c bprint.c debug.c \
27	memory.c options.c sockbuf.c $(@PLAT@_SRCS)
28OBJS= assert.lo decode.lo encode.lo io.lo bprint.lo debug.lo \
29	memory.lo options.lo sockbuf.lo $(@PLAT@_OBJS)
30XSRCS= version.c
31
32PROGRAMS= dtest etest idtest
33
34LDAP_INCDIR= ../../include
35LDAP_LIBDIR= ../../libraries
36
37XLIBS = $(LIBRARY) $(LDAP_LIBLUTIL_A)
38XXLIBS = 
39NT_LINK_LIBS = $(AC_LIBS)
40UNIX_LINK_LIBS = $(AC_LIBS)
41
42dtest:    $(XLIBS) dtest.o
43	$(LTLINK) -o $@ dtest.o $(LIBS)
44etest:  $(XLIBS) etest.o
45	$(LTLINK) -o $@ etest.o $(LIBS)
46idtest:  $(XLIBS) idtest.o
47	$(LTLINK) -o $@ idtest.o $(LIBS)
48
49install-local: FORCE
50