2 # $OpenLDAP: pkg/ldap/libraries/liblber/Makefile.in,v 1.37.2.4 2008/02/11 23:26:41 kurt Exp $
3 ## This work is part of OpenLDAP Software <http://www.openldap.org/>.
5 ## Copyright 1998-2008 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
)
40 UNIX_LINK_LIBS
= $(AC_LIBS
)
42 dtest
: $(XLIBS
) dtest.o
43 $(LTLINK
) -o
$@ dtest.o
$(LIBS
)
44 etest
: $(XLIBS
) etest.o
45 $(LTLINK
) -o
$@ etest.o
$(LIBS
)
46 idtest
: $(XLIBS
) idtest.o
47 $(LTLINK
) -o
$@ idtest.o
$(LIBS
)
50 -$(MKDIR
) $(DESTDIR
)$(libdir)
51 $(LTINSTALL
) $(INSTALLFLAGS
) -m
644 $(LIBRARY
) $(DESTDIR
)$(libdir)
52 $(LTFINISH
) $(DESTDIR
)$(libdir)