James Le Cuirot 23fe7f5c9f Add libyaml pkg-config LIBS to LIBADD not LDFLAGS
Per the automake manual these should go in LIBADD.

http://www.gnu.org/software/automake/manual/html_node/Program-and-Library-Variables.html

FS-353

Signed-off-by: Travis Cross <tc@traviscross.com>
2014-04-11 22:53:14 +00:00

19 lines
471 B
Makefile

include $(top_srcdir)/build/modmake.rulesam
MODNAME=mod_yaml
if HAVE_YAML
mod_LTLIBRARIES = mod_yaml.la
mod_yaml_la_SOURCES = mod_yaml.c
mod_yaml_la_CFLAGS = $(AM_CFLAGS)
mod_yaml_la_CPPFLAGS = $(AM_CPPFLAGS) $(YAML_CFLAGS)
mod_yaml_la_LIBADD = $(switch_builddir)/libfreeswitch.la $(YAML_LIBS)
mod_yaml_la_LDFLAGS = -avoid-version -module -no-undefined -shared
else
install: error
all: error
error:
$(error You must install libyaml-dev to build mod_yaml)
endif