]> git.sur5r.net Git - openldap/blob - libraries/liblber/Makefile.in
41be92d4b95513c45c9ff6654ed87ed37394564b
[openldap] / libraries / liblber / Makefile.in
1 # LIBLBER
2 # $OpenLDAP$
3 ## Copyright 1998-2003 The OpenLDAP Foundation.
4 ## All rights reserved.
5 ##
6 ## Redistribution and use in source and binary forms, with or without
7 ## modification, are permitted only as authorized by the OpenLDAP
8 ## Public License.
9 ##
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>.
13
14 LIBRARY = liblber.la
15
16 NT_SRCS = nt_err.c
17 NT_OBJS = nt_err.lo
18
19 UNIX_SRCS = stdio.c
20 UNIX_OBJS = stdio.lo
21
22 LIB_DEFS = -DLBER_LIBRARY
23
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)
28 XSRCS= version.c
29
30 PROGRAMS= dtest etest idtest
31
32 LDAP_INCDIR= ../../include
33 LDAP_LIBDIR= ../../libraries
34
35 XLIBS = $(LIBRARY) $(LDAP_LIBLUTIL_A)
36 XXLIBS = 
37 NT_LINK_LIBS = $(AC_LIBS)
38
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)
45
46 install-local: FORCE
47         -$(MKDIR) $(DESTDIR)$(libdir)
48         $(LTINSTALL) $(INSTALLFLAGS) -m 644 $(LIBRARY) $(DESTDIR)$(libdir)
49         $(LTFINISH) $(DESTDIR)$(libdir)
50