freeswitch/src/mod/directories/mod_ldap/Makefile.am

18 lines
476 B
Makefile

include $(top_srcdir)/build/modmake.rulesam
MODNAME=mod_ldap
if HAVE_LDAP
mod_LTLIBRARIES = mod_ldap.la
mod_ldap_la_SOURCES = mod_ldap.c
mod_ldap_la_CFLAGS = $(AM_CFLAGS) -DWITH_OPENLDAP -DLDAP_DEPRECATED
mod_ldap_la_LIBADD = $(switch_builddir)/libfreeswitch.la $(OPENLDAP_LIBS)
mod_ldap_la_LDFLAGS = -avoid-version -module -no-undefined -shared
else
install: error
all: error
error:
$(error You must install libldap2-dev or similar package to build mod_ldap)
endif