2 # This work is part of OpenLDAP Software <http://www.openldap.org/>.
4 # Copyright 1998-2009 The OpenLDAP Foundation.
5 # Copyright 2004 Howard Chu, Symas Corp. All Rights Reserved.
7 # Redistribution and use in source and binary forms, with or without
8 # modification, are permitted only as authorized by the OpenLDAP
11 # A copy of this license is available in the file LICENSE in the
12 # top-level directory of the distribution or, alternatively, at
13 # <http://www.OpenLDAP.org/license.html>.
15 LIBTOOL=../../../libtool
19 # Omit DO_KRB5 or DO_SAMBA if you don't want to support it.
20 DEFS=-DDO_KRB5 -DDO_SAMBA
22 HEIMDAL_INC=-I/usr/heimdal/include
24 LDAP_INC=-I../../../include -I../../../servers/slapd
25 INCS=$(LDAP_INC) $(HEIMDAL_INC) $(SSL_INC)
27 HEIMDAL_LIB=-L/usr/heimdal/lib -lkrb5 -lkadm5srv
29 LDAP_LIB=-lldap_r -llber
30 LIBS=$(LDAP_LIB) $(HEIMDAL_LIB) $(SSL_LIB)
35 smbk5pwd.lo: smbk5pwd.c
36 $(LIBTOOL) --mode=compile $(CC) $(OPT) $(DEFS) $(INCS) -c $?
38 smbk5pwd.la: smbk5pwd.lo
39 $(LIBTOOL) --mode=link $(CC) $(OPT) -version-info 0:0:0 \
40 -rpath $(PREFIX)/lib -module -o $@ $? $(LIBS)
43 rm -f smbk5pwd.lo smbk5pwd.la
46 mkdir -p $(PREFIX)/lib/openldap
47 $(LIBTOOL) --mode=install cp smbk5pwd.la $(PREFIX)/lib/openldap
48 $(LIBTOOL) --finish $(PREFIX)/lib