[Freeswitch-svn] [commit] r7508 - freeswitch/trunk/src/mod/xml_int/mod_xml_ldap

Freeswitch SVN jskopis at freeswitch.org
Sun Feb 3 22:49:56 EST 2008


Author: jskopis
Date: Sun Feb  3 22:49:55 2008
New Revision: 7508

Modified:
   freeswitch/trunk/src/mod/xml_int/mod_xml_ldap/Makefile

Log:
copied Makefile from src/mod/directory/mod_ldap



Modified: freeswitch/trunk/src/mod/xml_int/mod_xml_ldap/Makefile
==============================================================================
--- freeswitch/trunk/src/mod/xml_int/mod_xml_ldap/Makefile	(original)
+++ freeswitch/trunk/src/mod/xml_int/mod_xml_ldap/Makefile	Sun Feb  3 22:49:55 2008
@@ -1,10 +1,23 @@
-WANT_LDAP=yes
+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_LIBADD=$(LDAPLA) $(LIBLBERLA)
-switch_srcdir=../../../..
 
 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)



More information about the Freeswitch-svn mailing list