~ubuntu-branches/ubuntu/maverick/openldap/maverick-proposed

« back to all changes in this revision

Viewing changes to contrib/slapd-modules/nssov/Makefile

  • Committer: Bazaar Package Importer
  • Author(s): Mathias Gug
  • Date: 2009-09-07 13:41:10 UTC
  • mto: This revision was merged to the branch mainline in revision 19.
  • Revision ID: james.westby@ubuntu.com-20090907134110-jsdrvn0atu1fex4m
Tags: upstream-2.4.18
ImportĀ upstreamĀ versionĀ 2.4.18

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# $OpenLDAP: pkg/ldap/contrib/slapd-modules/nssov/Makefile,v 1.1.2.2 2009/06/03 20:46:54 quanah Exp $
2
 
# Copyright 2008 Howard Chu, Symas Corp. All Rights Reserved.
 
1
# $OpenLDAP: pkg/ldap/contrib/slapd-modules/nssov/Makefile,v 1.1.2.5 2009/09/01 22:53:30 quanah Exp $
 
2
# This work is part of OpenLDAP Software <http://www.openldap.org/>.
 
3
#
 
4
# Copyright 2008-2009 The OpenLDAP Foundation.
 
5
# Portions Copyright 2008 Howard Chu, Symas Corp. All Rights Reserved.
3
6
#
4
7
# Redistribution and use in source and binary forms, with or without
5
8
# modification, are permitted only as authorized by the OpenLDAP
27
30
LDAP_LIB=-lldap_r -llber
28
31
LIBS=$(LDAP_LIB)
29
32
 
30
 
all:    nssov.la
 
33
prefix=/usr/local
 
34
exec_prefix=$(prefix)
 
35
ldap_subdir=/openldap
 
36
 
 
37
libdir=$(exec_prefix)/lib
 
38
libexecdir=$(exec_prefix)/libexec
 
39
moduledir = $(libexecdir)$(ldap_subdir)
 
40
sysconfdir = $(prefix)/etc$(ldap_subdir)
 
41
schemadir = $(sysconfdir)/schema
 
42
 
 
43
all:    install
31
44
 
32
45
XOBJS = tio.lo
33
46
 
37
50
.SUFFIXES: .c .o .lo
38
51
 
39
52
.c.lo:
40
 
        $(LIBTOOL) --mode=compile $(CC) $(OPT) $(DEFS) $(INCS) -c $?
 
53
        $(LIBTOOL) --mode=compile $(CC) $(OPT) $(DEFS) $(INCS) -c $<
41
54
 
42
55
tio.lo: nss-ldapd/common/tio.c
43
56
        $(LIBTOOL) --mode=compile $(CC) $(OPT) $(DEFS) $(NLDAPD_INC) -c $?
46
59
 
47
60
nssov.la:       $(OBJS) $(XOBJS)
48
61
        $(LIBTOOL) --mode=link $(CC) $(OPT) -version-info 0:0:0 \
49
 
        -rpath /usr/local/libexec/openldap -module -o $@ $(OBJS) $(XOBJS) $(LIBS)
 
62
        -rpath $(libdir) -module -o $@ $(OBJS) $(XOBJS) $(LIBS)
 
63
 
 
64
install: nssov.la
 
65
        mkdir -p $(DESTDIR)$(moduledir)
 
66
        $(LIBTOOL) --mode=install cp nssov.la $(DESTDIR)$(moduledir)
 
67
        cp ldapns.schema $(DESTDIR)$(schemadir)
 
68
 
 
69
clean:
 
70
        rm -f *.*o *.la .libs/*