mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-02-23 01:50:05 +00:00
Eliminate some more gmakeisms in the modules makefiles git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4629 d0543943-73ff-0310-b7d9-9358b9ac24b2
24 lines
598 B
Makefile
24 lines
598 B
Makefile
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
|
|
|
|
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
|
|
|
|
$(LDAPLA) $(LIBLBERLA): $(LDAP_DIR)
|
|
cd $(LDAP_DIR) && $(MAKE)
|
|
$(TOUCH_TARGET)
|