2008-02-04 03:49:55 +00:00
|
|
|
switch_srcdir=../../../..
|
|
|
|
|
2008-02-02 00:17:47 +00:00
|
|
|
LDAP=openldap-2.3.19
|
|
|
|
LDAP_DIR=$(switch_srcdir)/libs/$(LDAP)
|
2008-02-04 03:49:55 +00:00
|
|
|
|
2008-02-02 00:17:47 +00:00
|
|
|
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
|
2008-02-04 03:49:55 +00:00
|
|
|
|
2008-05-06 16:03:02 +00:00
|
|
|
DEFAULT_ARGS= --prefix=$(PREFIX) --disable-shared --with-pic --disable-slapd
|
|
|
|
DEFAULT_ARGS+= --disable-slurpd --disable-relay --disable-bdb --disable-hdb
|
2008-02-04 03:49:55 +00:00
|
|
|
|
|
|
|
LOCAL_LIBADD=$(LDAPLA) $(LIBLBERLA)
|
|
|
|
|
|
|
|
include $(switch_srcdir)/build/modmake.rules
|
|
|
|
|
|
|
|
$(LDAP_DIR):
|
|
|
|
$(GETLIB) $(LDAP).tgz
|
2008-05-06 16:03:02 +00:00
|
|
|
cd $(LDAP_DIR) && CFLAGS="`echo $(CFLAGS) | sed -e 's:-std=c99::'`" ./configure $(DEFAULT_ARGS)
|
2008-02-04 03:49:55 +00:00
|
|
|
|
|
|
|
$(LDAPLA) $(LIBLBERLA): $(LDAP_DIR)
|
|
|
|
cd $(LDAP_DIR) && $(MAKE)
|
|
|
|
$(TOUCH_TARGET)
|