Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 374115
Collapse All | Expand All

(-)openldap-2.4.19.orig/contrib/slapd-modules/smbk5pwd/Makefile (-10 / +14 lines)
Lines 13-34 Link Here
13
# <http://www.OpenLDAP.org/license.html>.
13
# <http://www.OpenLDAP.org/license.html>.
14
14
15
LIBTOOL=../../../libtool
15
LIBTOOL=../../../libtool
16
OPT=-g -O2
16
#OPT=
17
CC=gcc
17
CC=gcc
18
18
19
# Omit DO_KRB5, DO_SAMBA or DO_SHADOW if you don't want to support it.
19
# Omit DO_KRB5, DO_SAMBA or DO_SHADOW if you don't want to support it.
20
DEFS=-DDO_KRB5 -DDO_SAMBA -DDO_SHADOW
20
#DEFS=
21
21
22
HEIMDAL_INC=-I/usr/heimdal/include
22
#KRB5_INC=
23
SSL_INC=
23
SSL_INC=
24
LDAP_INC=-I../../../include -I../../../servers/slapd
24
LDAP_INC=-I../../../include -I../../../servers/slapd
25
INCS=$(LDAP_INC) $(HEIMDAL_INC) $(SSL_INC)
25
INCS=$(LDAP_INC) $(SSL_INC) $(KRB5_INC)
26
26
27
HEIMDAL_LIB=-L/usr/heimdal/lib -lkrb5 -lkadm5srv
27
KRB5_LIB=-lkrb5 -lkadm5srv
28
SSL_LIB=-lcrypto
28
SSL_LIB=-lcrypto
29
LDAP_LIB=-lldap_r -llber
29
LDAP_LIB=-L../../../libraries/libldap_r -lldap_r -llber
30
LIBS=$(LDAP_LIB) $(HEIMDAL_LIB) $(SSL_LIB)
30
ifneq (DDO_KRB5,$(findstring DDO_KRB5,$(DEFS)))
31
31
	LIBS=$(LDAP_LIB) $(SSL_LIB)
32
else
33
	LIBS=$(LDAP_LIB) $(KRB5_LIB) $(SSL_LIB)
34
endif
35
	
32
prefix=/usr/local
36
prefix=/usr/local
33
exec_prefix=$(prefix)
37
exec_prefix=$(prefix)
34
ldap_subdir=/openldap
38
ldap_subdir=/openldap
Lines 41-50 Link Here
41
45
42
46
43
smbk5pwd.lo:	smbk5pwd.c
47
smbk5pwd.lo:	smbk5pwd.c
44
	$(LIBTOOL) --mode=compile $(CC) $(OPT) $(DEFS) $(INCS) -c $?
48
	$(LIBTOOL) --mode=compile $(CC) $(CFLAGS) $(DEFS) $(INCS) -c $?
45
49
46
smbk5pwd.la:	smbk5pwd.lo
50
smbk5pwd.la:	smbk5pwd.lo
47
	$(LIBTOOL) --mode=link $(CC) $(OPT) -version-info 0:0:0 \
51
	$(LIBTOOL) --mode=link $(CC) $(CFLAGS) -version-info 0:0:0 \
48
	-rpath $(moduledir) -module -o $@ $? $(LIBS)
52
	-rpath $(moduledir) -module -o $@ $? $(LIBS)
49
53
50
clean:
54
clean:

Return to bug 374115