1# $OpenLDAP: pkg/ldap/contrib/slapd-modules/smbk5pwd/Makefile,v 1.1 2004/04/02 11:06:38 hyc Exp $ 2# Copyright 2004 Howard Chu, Symas Corp. All Rights Reserved. 3# 4# Redistribution and use in source and binary forms, with or without 5# modification, are permitted only as authorized by the OpenLDAP 6# Public License. 7# 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>. 11 12LIBTOOL=../../../libtool 13OPT=-g -O2 14CC=gcc 15 16# Omit DO_KRB5 or DO_SAMBA if you don't want to support it. 17DEFS=-DDO_KRB5 -DDO_SAMBA 18 19HEIMDAL_INC=-I/usr/heimdal/include 20SSL_INC= 21LDAP_INC=-I../../../include -I../../../servers/slapd 22INCS=$(LDAP_INC) $(HEIMDAL_INC) $(SSL_INC) 23 24HEIMDAL_LIB=-L/usr/heimdal/lib -lkrb5 -lkadm5srv 25SSL_LIB=-lcrypto 26LDAP_LIB=-lldap_r -llber 27LIBS=$(LDAP_LIB) $(HEIMDAL_LIB) $(SSL_LIB) 28 29all: smbk5pwd.la 30 31 32smbk5pwd.lo: smbk5pwd.c 33 $(LIBTOOL) --mode=compile $(CC) $(OPT) $(DEFS) $(INCS) -c $? 34 35smbk5pwd.la: smbk5pwd.lo 36 $(LIBTOOL) --mode=link $(CC) $(OPT) -version-info 0:0:0 \ 37 -rpath /usr/local/libexec/openldap -module -o $@ $? $(LIBS) 38