]> git.sur5r.net Git - openldap/blob - libraries/liblber/Makefile.in
Merge remote-tracking branch 'origin/mdb.master'
[openldap] / libraries / liblber / Makefile.in
1 # LIBLBER
2 # $OpenLDAP$
3 ## This work is part of OpenLDAP Software <http://www.openldap.org/>.
4 ##
5 ## Copyright 1998-2012 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
16 LIBRARY = liblber.la
17
18 NT_SRCS = nt_err.c
19 NT_OBJS = nt_err.lo
20
21 UNIX_SRCS = stdio.c
22 UNIX_OBJS = stdio.lo
23
24 LIB_DEFS = -DLBER_LIBRARY
25
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)
30 XSRCS= version.c
31
32 PROGRAMS= dtest etest idtest
33
34 LDAP_INCDIR= ../../include
35 LDAP_LIBDIR= ../../libraries
36
37 XLIBS = $(LIBRARY) $(LDAP_LIBLUTIL_A)
38 XXLIBS = 
39 NT_LINK_LIBS = $(AC_LIBS)
40 UNIX_LINK_LIBS = $(AC_LIBS)
41
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)
48
49 install-local: FORCE
50         -$(MKDIR) $(DESTDIR)$(libdir)
51         $(LTINSTALL) $(INSTALLFLAGS) -m 644 $(LIBRARY) $(DESTDIR)$(libdir)
52         $(LTFINISH) $(DESTDIR)$(libdir)
53