2 # Copyright 2004 Howard Chu, Symas Corp. All Rights Reserved.
4 # Redistribution and use in source and binary forms, with or without
5 # modification, are permitted only as authorized by the OpenLDAP
8 # A copy of this license is available in the file LICENSE in the
9 # top-level directory of the distribution or, alternatively, at
10 # <http://www.OpenLDAP.org/license.html>.
12 LIBTOOL=../../../libtool
16 # Omit DO_KRB5 or DO_SAMBA if you don't want to support it.
17 DEFS=-DDO_KRB5 -DDO_SAMBA
19 HEIMDAL_INC=-I/usr/heimdal/include
21 LDAP_INC=-I../../../include -I../../../servers/slapd
22 INCS=$(LDAP_INC) $(HEIMDAL_INC) $(SSL_INC)
24 HEIMDAL_LIB=-L/usr/heimdal/lib -lkrb5 -lkadm5srv
26 LDAP_LIB=-lldap_r -llber
27 LIBS=$(LDAP_LIB) $(HEIMDAL_LIB) $(SSL_LIB)
32 smbk5pwd.lo: smbk5pwd.c
33 $(LIBTOOL) --mode=compile $(CC) $(OPT) $(DEFS) $(INCS) -c $?
35 smbk5pwd.la: smbk5pwd.lo
36 $(LIBTOOL) --mode=link $(CC) $(OPT) -version-info 0:0:0 \
37 -rpath /usr/local/libexec/openldap -module -o $@ $? $(LIBS)