diff --git a/src/mod/xml_int/mod_xml_ldap/Makefile b/src/mod/xml_int/mod_xml_ldap/Makefile index 2684521593..4582ed24c9 100644 --- a/src/mod/xml_int/mod_xml_ldap/Makefile +++ b/src/mod/xml_int/mod_xml_ldap/Makefile @@ -1,10 +1,23 @@ -WANT_LDAP=yes -LDAP=openldap-2.3.19 -LDAP_DIR=$(switch_srcdir)/libs/$(LDAP) -LDAPLA=$(LDAP_DIR)/libraries/libldap_r/libldap_r.la -LIBLBERLA=$(LDAP_DIR)/libraries/liblber/liblber.la -LOCAL_LIBADD=$(LDAPLA) $(LIBLBERLA) switch_srcdir=../../../.. +LDAP=openldap-2.3.19 +LDAP_DIR=$(switch_srcdir)/libs/$(LDAP) + +LDAPLA=$(LDAP_DIR)/libraries/libldap_r/libldap_r.la +LIBLBERLA=$(LDAP_DIR)/libraries/liblber/liblber.la + LOCAL_CFLAGS=-DWITH_OPENLDAP -DLDAP_DEPRECATED -I$(LDAP_DIR)/include -include ../../../../build/modmake.rules + +DEFAULT_ARGS=--prefix=$(PREFIX) --disable-shared --with-pic + +LOCAL_LIBADD=$(LDAPLA) $(LIBLBERLA) + +include $(switch_srcdir)/build/modmake.rules + +$(LDAP_DIR): + $(GETLIB) $(LDAP).tgz + cd $(LDAP_DIR) && ./configure $(DEFAULT_ARGS) --disable-bdb --disable-hdb --disable-slapd + +$(LDAPLA) $(LIBLBERLA): $(LDAP_DIR) + cd $(LDAP_DIR) && $(MAKE) + $(TOUCH_TARGET)