Blame SOURCES/check-password-makefile.patch

adf540
--- a/Makefile	2009-10-31 18:59:06.000000000 +0100
adf540
+++ b/Makefile	2014-12-17 09:42:37.586079225 +0100
adf540
@@ -13,22 +13,11 @@
adf540
 #
adf540
 CONFIG=/etc/openldap/check_password.conf
adf540
 
adf540
-OPT=-g -O2 -Wall -fpic 						\
adf540
-	-DHAVE_CRACKLIB -DCRACKLIB_DICTPATH="\"$(CRACKLIB)\""	\
adf540
-	-DCONFIG_FILE="\"$(CONFIG)\""					\
adf540
+CFLAGS+=-fpic                                                  \
adf540
+	-DHAVE_CRACKLIB -DCRACKLIB_DICTPATH="\"$(CRACKLIB)\""  \
adf540
+	-DCONFIG_FILE="\"$(CONFIG)\""                          \
adf540
 	-DDEBUG
adf540
 
adf540
-# Where to find the OpenLDAP headers.
adf540
-#
adf540
-LDAP_INC=-I/home/pyb/tmp/openldap-2.3.39/include \
adf540
-	 -I/home/pyb/tmp/openldap-2.3.39/servers/slapd
adf540
-
adf540
-# Where to find the CrackLib headers.
adf540
-#
adf540
-CRACK_INC=
adf540
-
adf540
-INCS=$(LDAP_INC) $(CRACK_INC)
adf540
-
adf540
 LDAP_LIB=-lldap_r -llber
adf540
 
adf540
 # Comment out this line if you do NOT want to use the cracklib.
adf540
@@ -45,10 +34,10 @@
adf540
 all: 	check_password
adf540
 
adf540
 check_password.o:
adf540
-	$(CC) $(OPT) -c $(INCS) check_password.c
adf540
+	$(CC) $(CFLAGS) -c $(LDAP_INC) check_password.c
adf540
 
adf540
 check_password: clean check_password.o
adf540
-	$(CC) -shared -o check_password.so check_password.o $(CRACKLIB_LIB)
adf540
+	$(CC) $(LDFLAGS) -shared -o check_password.so check_password.o $(CRACKLIB_LIB)
adf540
 
adf540
 install: check_password
adf540
 	cp -f check_password.so ../../../usr/lib/openldap/modules/