MPLS disposition actions at the tail of unicast LSPs
[vpp.git] / extras / libmemif / Makefile.am
index 48e4bb8..292eb9c 100644 (file)
@@ -17,6 +17,9 @@ ACLOCAL_AMFLAGS = -I m4
 
 AM_CPPFLAGS = -g -DMEMIF_DBG -DICMP_DBG
 
+SRCS_C := $(shell find . -name "*.c" )
+SRCS_H := $(shell find . -name "*.h" )
+
 .PHONY: release
 release:
        $(MAKE) AM_CPPFLAGS="-O3"
@@ -27,6 +30,12 @@ doc:
        doxygen doxygen.conf
        @echo Doxygen documentation built in docs directory.
 
+.PHONY: fixstyle
+fixstyle:
+       @echo Fixing code style...
+       indent $(SRCS_C) $(SRCS_H)
+       @echo Code style fixed!
+
 #
 # unit_test
 #
@@ -58,7 +67,7 @@ icmpr_CPPFLAGS = $(AM_CPPFLAGS) -Isrc -Iexamples/icmp_responder
 #
 icmpr_epoll_SOURCES = examples/icmp_responder-epoll/main.c \
                     examples/icmp_responder/icmp_proto.c
-icmpr_epoll_LDADD = libmemif.la
+icmpr_epoll_LDADD = libmemif.la -lpthread
 icmpr_epoll_CPPFLAGS = $(AM_CPPFLAGS) -Isrc -Iexamples/icmp_responder
 
 #
@@ -73,7 +82,7 @@ noinst_PROGRAMS = icmpr icmpr-epoll icmpr-mt
 
 check_PROGRAMS = unit_test
 
-include_HEADERS = src/libmemif.h
+include_HEADERS = src/libmemif.h src/memif.h
 
 lib_LTLIBRARIES = libmemif.la