2015-07-20 15:58:40 +00:00
|
|
|
AUTOMAKE_OPTIONS = foreign
|
2015-07-10 14:07:36 +00:00
|
|
|
FSLD = $(top_builddir)/libfreeswitch.la $(top_builddir)/libs/apr/libapr-1.la $(top_builddir)/libs/apr-util/libaprutil-1.la
|
|
|
|
|
2015-07-10 21:37:05 +00:00
|
|
|
TESTS =
|
|
|
|
check_PROGRAMS =
|
2015-07-10 14:07:36 +00:00
|
|
|
|
|
|
|
|
2015-07-10 21:37:05 +00:00
|
|
|
if HAVE_TAP
|
|
|
|
TESTS += switch_event
|
2015-07-14 19:34:05 +00:00
|
|
|
check_PROGRAMS += switch_event
|
2015-07-10 14:07:36 +00:00
|
|
|
|
2015-07-10 19:26:03 +00:00
|
|
|
switch_event_SOURCES = switch_event.c
|
|
|
|
switch_event_CFLAGS = $(SWITCH_AM_CFLAGS)
|
|
|
|
switch_event_LDADD = $(FSLD)
|
|
|
|
switch_event_LDFLAGS = $(SWITCH_AM_LDFLAGS) -ltap
|
2015-07-10 14:07:36 +00:00
|
|
|
|
2015-07-10 21:37:05 +00:00
|
|
|
TESTS += switch_hash
|
|
|
|
check_PROGRAMS += switch_hash
|
2015-07-10 14:07:36 +00:00
|
|
|
|
2015-07-10 21:37:05 +00:00
|
|
|
switch_hash_SOURCES = switch_hash.c
|
|
|
|
switch_hash_CFLAGS = $(SWITCH_AM_CFLAGS)
|
|
|
|
switch_hash_LDADD = $(FSLD)
|
|
|
|
switch_hash_LDFLAGS = $(SWITCH_AM_LDFLAGS) -ltap
|
2015-07-10 14:07:36 +00:00
|
|
|
|
|
|
|
else
|
2015-07-20 15:58:40 +00:00
|
|
|
check: error
|
2015-07-10 14:07:36 +00:00
|
|
|
error:
|
|
|
|
$(error You must install libtap-dev to build these unit tests)
|
|
|
|
endif
|
|
|
|
|