From ec0cc2cf05dd5fe285e72b366d837eed841e34a8 Mon Sep 17 00:00:00 2001 From: Mauro Sardara Date: Mon, 17 Dec 2018 15:59:13 +0100 Subject: Remove autotools files from extras/libmemif Change-Id: I6c5f7ab5bb6c0022746d3feedd71b5981f31c7fb Signed-off-by: Mauro Sardara --- extras/libmemif/Makefile.am | 98 -------------------------------------------- extras/libmemif/bootstrap | 3 -- extras/libmemif/configure.ac | 16 -------- 3 files changed, 117 deletions(-) delete mode 100644 extras/libmemif/Makefile.am delete mode 100755 extras/libmemif/bootstrap delete mode 100644 extras/libmemif/configure.ac (limited to 'extras/libmemif') diff --git a/extras/libmemif/Makefile.am b/extras/libmemif/Makefile.am deleted file mode 100644 index f66ef9695fa..00000000000 --- a/extras/libmemif/Makefile.am +++ /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 index 5613c2b4bdb..00000000000 --- a/extras/libmemif/bootstrap +++ /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 index 7895cffcce4..00000000000 --- a/extras/libmemif/configure.ac +++ /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]) -- cgit 1.2.3-korg