X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=extras%2Flibmemif%2FMakefile.am;h=8640cf8cdb628539a8ed28062bb8f04d0981fe1b;hb=f91080c01104a5999fe6c08e699b3426fea62dad;hp=1ff7e7e5a5a1fce181f3222b487cb9fe103a36fc;hpb=b467b2a02be6ea7bab1a4773523afe8a8e3cfd83;p=vpp.git diff --git a/extras/libmemif/Makefile.am b/extras/libmemif/Makefile.am index 1ff7e7e5a5a..8640cf8cdb6 100644 --- a/extras/libmemif/Makefile.am +++ b/extras/libmemif/Makefile.am @@ -53,22 +53,22 @@ unit_test_LDADD = $(CHECK_LIBS) # main lib # libmemif_la_SOURCES = src/main.c src/socket.c -libmemif_la_CPPFLAGS = $(AM_CPPFLAGS) -Isrc +libmemif_la_CPPFLAGS = $(AM_CPPFLAGS) -I$(top_srcdir)/src # # ICMP responder example # icmpr_SOURCES = examples/icmp_responder/main.c examples/icmp_responder/icmp_proto.c icmpr_LDADD = libmemif.la -icmpr_CPPFLAGS = $(AM_CPPFLAGS) -Isrc -Iexamples/icmp_responder +icmpr_CPPFLAGS = $(AM_CPPFLAGS) -I$(top_srcdir)/src -I$(top_srcdir)/examples/icmp_responder # # ICMP responder libmemif event polling example # icmpr_epoll_SOURCES = examples/icmp_responder-epoll/main.c \ examples/icmp_responder/icmp_proto.c -icmpr_epoll_LDADD = libmemif.la -icmpr_epoll_CPPFLAGS = $(AM_CPPFLAGS) -Isrc -Iexamples/icmp_responder +icmpr_epoll_LDADD = libmemif.la -lpthread +icmpr_epoll_CPPFLAGS = $(AM_CPPFLAGS) -I$(top_srcdir)/src -I$(top_srcdir)/examples/icmp_responder # # ICMP responder multi-thread example @@ -76,14 +76,15 @@ icmpr_epoll_CPPFLAGS = $(AM_CPPFLAGS) -Isrc -Iexamples/icmp_responder icmpr_mt_SOURCES = examples/icmp_responder-mt/main.c \ examples/icmp_responder/icmp_proto.c icmpr_mt_LDADD = libmemif.la -lpthread -icmpr_mt_CPPFLAGS = $(AM_CPPFLAGS) -Isrc -Iexamples/icmp_responder +icmpr_mt_CPPFLAGS = $(AM_CPPFLAGS) -I$(top_srcdir)/src -I$(top_srcdir)/examples/icmp_responder noinst_PROGRAMS = icmpr icmpr-epoll icmpr-mt -check_PROGRAMS = unit_test - include_HEADERS = src/libmemif.h lib_LTLIBRARIES = libmemif.la +if USE_CHECK +check_PROGRAMS = unit_test TESTS = $(check_PROGRAMS) +endif