]> git.sur5r.net Git - openldap/blob - libraries/liblutil/Makefile.in
ff7bc3a88017b68b883b2986d35d9a3775f7a1bc
[openldap] / libraries / liblutil / Makefile.in
1 # Makefile for -llutil
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
16 LIBRARY = liblutil.a
17
18 SHAREDLIB = libldif.la
19
20 PROGRAM = testavl
21
22 LDAP_INCDIR= ../../include       
23 LDAP_LIBDIR= ../../libraries
24
25 NT_SRCS = ntservice.c
26 NT_OBJS = ntservice.o slapdmsg.res
27
28 UNIX_SRCS = detach.c
29 UNIX_OBJS = detach.o
30
31 XLIBS = $(LIBRARY) $(LDAP_LIBLBER_LA)
32
33 SRCS    = base64.c entropy.c sasl.c signal.c hash.c passfile.c \
34         md5.c passwd.c sha1.c getpass.c lockf.c utils.c uuid.c sockpair.c \
35         avl.c tavl.c ldif.c fetch.c \
36         testavl.c \
37         meter.c \
38         @LIBSRCS@ $(@PLAT@_SRCS)
39
40 OBJS    = base64.o entropy.o sasl.o signal.o hash.o passfile.o \
41         md5.o passwd.o sha1.o getpass.o lockf.o utils.o uuid.o sockpair.o \
42         avl.o tavl.o ldif.o fetch.o \
43         meter.o \
44         @LIBOBJS@ $(@PLAT@_OBJS)
45
46 SHAREDLIBOBJS = ldif.lo fetch.lo
47
48 testavl: $(XLIBS) testavl.o
49         (LTLINK) -o $@ testavl.o $(LIBS)
50
51 testtavl: $(XLIBS) testtavl.o
52         (LTLINK) -o $@ testtavl.o $(LIBS)
53
54 # These rules are for a Mingw32 build, specifically.
55 # It's ok for them to be here because the clean rule is harmless, and
56 # slapdmsg.res won't get built unless it's declared in OBJS.
57
58 slapdmsg.bin: FORCE
59         @if [ ! -f $@ ]; then cp $(srcdir)/$@ .; fi
60
61 slapdmsg.res: slapdmsg.rc slapdmsg.bin
62         windres $< -O coff -o $@
63
64 clean-local:
65         $(RM) *.res
66
67 all-local: $(SHAREDLIB)
68
69 .SUFFIXES: .c .o .lo
70
71 .c.lo:
72         $(LTCOMPILE_LIB) $<
73
74 $(LIBRARY): $(SHAREDLIBOBJS) version.lo
75
76 $(SHAREDLIB): $(SHAREDLIBOBJS) version.lo
77         $(LTLINK_LIB) -o $(SHAREDLIB) $(SHAREDLIBOBJS) version.lo $(LINK_LIBS)
78
79 install-local: FORCE
80         -$(MKDIR) $(DESTDIR)$(libdir)
81         $(LTINSTALL) $(INSTALLFLAGS) -m 644 $(SHAREDLIB) $(DESTDIR)$(libdir)
82         $(LTFINISH) $(DESTDIR)$(libdir)