Remove autotools files from extras/libmemif 13/16513/2
authorMauro Sardara <msardara+fdio@cisco.com>
Mon, 17 Dec 2018 14:59:13 +0000 (15:59 +0100)
committerDamjan Marion <dmarion@me.com>
Tue, 18 Dec 2018 09:35:08 +0000 (09:35 +0000)
Change-Id: I6c5f7ab5bb6c0022746d3feedd71b5981f31c7fb
Signed-off-by: Mauro Sardara <msardara+fdio@cisco.com>
extras/libmemif/Makefile.am [deleted file]
extras/libmemif/bootstrap [deleted file]
extras/libmemif/configure.ac [deleted file]

diff --git a/extras/libmemif/Makefile.am b/extras/libmemif/Makefile.am
deleted file mode 100644 (file)
index f66ef96..0000000
+++ /dev/null
@@ -1,98 +0,0 @@
-# Copyright (c) 2017 Cisco and/or its affiliates.
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at:
-#
-#     http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-AUTOMAKE_OPTIONS = foreign subdir-objects
-
-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"
-
-.PHONY: doc
-doc:
-       @echo Building doxygen documentation...
-       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
-#
-unit_test_SOURCES = test/unit_test.c \
-                    test/main_test.c \
-                    test/socket_test.c \
-                    src/main.c \
-                    src/socket.c
-# macro MEMIF_UNIT_TEST -> compile functions without static keyword
-# and declare them in header files, so they can be called from unit tests
-unit_test_CPPFLAGS = $(AM_CPPFLAGS) -Itest -Isrc -DMEMIF_UNIT_TEST -g $(CHECK_CFLAGS)
-unit_test_LDADD = $(CHECK_LIBS)
-
-#
-# main lib
-#
-libmemif_la_SOURCES = src/main.c src/socket.c
-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) -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 -lpthread
-icmpr_epoll_CPPFLAGS = $(AM_CPPFLAGS) -I$(top_srcdir)/src -I$(top_srcdir)/examples/icmp_responder
-
-#
-# ICMP responder multi-thread example
-#
-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) -I$(top_srcdir)/src -I$(top_srcdir)/examples/icmp_responder
-
-#
-# ICMP responder external buffer example
-#
-icmpr_eb_SOURCES = examples/icmp_responder-eb/main.c\
-                       examples/icmp_responder/icmp_proto.c
-icmpr_eb_LDADD = libmemif.la -lpthread
-icmpr_eb_CPPFLAGS = $(AM_CPPFLAGS) -I$(top_srcdir)/src -I$(top_srcdir)/examples/icmp_responder
-
-noinst_PROGRAMS = icmpr icmpr-epoll icmpr-mt icmpr-eb
-
-include_HEADERS = src/libmemif.h
-
-lib_LTLIBRARIES = libmemif.la
-
-if USE_CHECK
-check_PROGRAMS = unit_test
-TESTS = $(check_PROGRAMS)
-endif
diff --git a/extras/libmemif/bootstrap b/extras/libmemif/bootstrap
deleted file mode 100755 (executable)
index 5613c2b..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-#!/bin/bash
-
-autoreconf -fis
diff --git a/extras/libmemif/configure.ac b/extras/libmemif/configure.ac
deleted file mode 100644 (file)
index 7895cff..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-AC_INIT(libmemif, 2.0)
-LT_INIT
-AM_INIT_AUTOMAKE
-AM_SILENT_RULES([yes])
-AC_PREFIX_DEFAULT([/usr])
-
-PKG_CHECK_MODULES([CHECK], [check], [HAVE_CHECK=1], [HAVE_CHECK=0])
-AM_CONDITIONAL([USE_CHECK],[test "$HAVE_CHECK" -eq 1])
-
-AC_CHECK_FUNC([memfd_create], [AC_DEFINE([HAVE_MEMFD_CREATE], [1], [Define if memfd exists])])
-
-AC_PROG_CC
-
-AC_OUTPUT([Makefile])
-
-AC_CONFIG_MACRO_DIR([m4])