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