forked from opinsys/smbkrb5pwd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
53 lines (42 loc) · 1.68 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# $OpenLDAP: pkg/ldap/contrib/slapd-modules/smbk5pwd/Makefile,v 1.1.6.4 2009/10/02 21:16:53 quanah Exp $
# This work is part of OpenLDAP Software <http://www.openldap.org/>.
#
# Copyright 1998-2009 The OpenLDAP Foundation.
# Copyright 2004 Howard Chu, Symas Corp. All Rights Reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted only as authorized by the OpenLDAP
# Public License.
#
# A copy of this license is available in the file LICENSE in the
# top-level directory of the distribution or, alternatively, at
# <http://www.OpenLDAP.org/license.html>.
LIBTOOL=../../../debian/build/libtool
OPT=-g -O2
CC=gcc
SSL_INC=
LDAP_INC=-I../../../include -I../../../servers/slapd -I../../../../../include -I../../../../../servers/slapd -I../../../debian/build/include
INCS=$(LDAP_INC) $(SSL_INC)
KRB5_LIB=-lkrb5 -lkadm5clnt_mit
SSL_LIB=-lcrypto
LDAP_LIB=-L../../../debian/build/libraries/libldap_r/.libs -lldap_r \
-L../../../debian/build/libraries/liblber/.libs -llber
LIBS=$(LDAP_LIB) $(KRB5_LIB) $(SSL_LIB)
prefix=/usr/local
exec_prefix=$(prefix)
ldap_subdir=/openldap
libdir=$(exec_prefix)/lib
libexecdir=$(exec_prefix)/libexec
#moduledir = $(libexecdir)$(ldap_subdir)
moduledir = /usr/lib/ldap
all: smbkrb5pwd.la
smbkrb5pwd.lo: smbkrb5pwd.c
$(LIBTOOL) --mode=compile $(CC) $(OPT) $(DEFS) $(INCS) -c $?
smbkrb5pwd.la: smbkrb5pwd.lo
$(LIBTOOL) --mode=link $(CC) $(OPT) -version-info 0:0:0 \
-rpath $(moduledir) -module -o $@ $? $(LIBS)
clean:
rm -f smbkrb5pwd.lo smbkrb5pwd.la
install: smbkrb5pwd.la
mkdir -p $(DESTDIR)/$(SMBKRB5PWD_PREFIXDIR)$(moduledir)
$(LIBTOOL) --mode=install cp smbkrb5pwd.la $(DESTDIR)/$(SMBKRB5PWD_PREFIXDIR)$(moduledir)