[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[UNIKRAFT/LIBMEMCACHED PATCH 2/7] Add Makefile.uk



From: gaulthier gain <gaulthier.gain@xxxxxxxxx>

Add SQLite port Makefile.uk.

Signed-off-by: gaulthier gain <gaulthier.gain@xxxxxxxxx>
---
 Makefile.uk | 109 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 109 insertions(+)
 create mode 100644 Makefile.uk

diff --git a/Makefile.uk b/Makefile.uk
new file mode 100644
index 0000000..2e07f4e
--- /dev/null
+++ b/Makefile.uk
@@ -0,0 +1,109 @@
+#  SPDX-License-Identifier: BSD-3-Clause
+#
+#  Memcached Makefile.uk
+#
+#  Authors: Gain Gaulthier <gaulthier.gain@xxxxxxxxx>
+#
+#  Copyright (c) 2020, University of Liege. All rights reserved.
+#
+#  Redistribution and use in source and binary forms, with or without
+#  modification, are permitted provided that the following conditions
+#  are met:
+#
+#  1. Redistributions of source code must retain the above copyright
+#     notice, this list of conditions and the following disclaimer.
+#  2. Redistributions in binary form must reproduce the above copyright
+#     notice, this list of conditions and the following disclaimer in the
+#     documentation and/or other materials provided with the distribution.
+#  3. Neither the name of the copyright holder nor the names of its
+#     contributors may be used to endorse or promote products derived from
+#     this software without specific prior written permission.
+#
+#  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+#  AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+#  IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+#  ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
+#  LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+#  CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+#  SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+#  INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+#  CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+#  ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+#  POSSIBILITY OF SUCH DAMAGE.
+#
+#  THIS HEADER MAY NOT BE EXTRACTED OR MODIFIED IN ANY WAY.
+#
+
+################################################################################
+# Library registration
+################################################################################
+$(eval $(call addlib,libmemcached))
+
+################################################################################
+# Sources
+################################################################################
+LIBMEMCACHED_VERSION=1.5.18
+LIBMEMCACHED_URL=https://memcached.org/files/memcached-$(LIBMEMCACHED_VERSION).tar.gz
+LIBMEMCACHED_PATCHDIR=$(LIBMEMCACHED_BASE)/patches
+
+$(eval $(call fetch,libmemcached,$(LIBMEMCACHED_URL)))
+$(eval $(call 
patch,libmemcached,$(LIBMEMCACHED_PATCHDIR),memcached-$(LIBMEMCACHED_VERSION)))
+
+################################################################################
+# Helpers
+################################################################################
+LIBMEMCACHED_SUBDIR=memcached-$(LIBMEMCACHED_VERSION)
+LIBMEMCACHED=$(LIBMEMCACHED_ORIGIN)/$(LIBMEMCACHED_SUBDIR)/
+
+################################################################################
+# Library includes
+################################################################################
+LIBMEMCACHED_CINCLUDES-y += -I$(LIBMEMCACHED_BASE)/include
+LIBMEMCACHED_CINCLUDES-y += -I$(LIBMEMCACHED)
+
+################################################################################
+# Global flags
+################################################################################
+LIBMEMCACHED_FLAGS = -DHAVE_CONFIG_H
+
+LIBMEMCACHED_SUPPRESS_FLAGS-y = -Wno-unused-parameter -Wno-unused-variable     
        \
+-Wno-cast-function-type -Wno-char-subscripts
+
+LIBMEMCACHED_SUPPRESS_FLAGS-$(call gcc_version_ge,7,0) 
+=-Wimplicit-fallthrough=0      \
+
+LIBMEMCACHED_CFLAGS-y += $(LIBMEMCACHED_FLAGS)
+LIBMEMCACHED_CFLAGS-y += $(LIBMEMCACHED_SUPPRESS_FLAGS-y)
+
+################################################################################
+# Memcached sources
+################################################################################
+LIBMEMCACHED_SRCS-y += $(LIBMEMCACHED)/assoc.c
+LIBMEMCACHED_SRCS-y += $(LIBMEMCACHED)/authfile.c
+LIBMEMCACHED_SRCS-y += $(LIBMEMCACHED)/bipbuffer.c
+LIBMEMCACHED_SRCS-y += $(LIBMEMCACHED)/cache.c
+LIBMEMCACHED_SRCS-y += $(LIBMEMCACHED)/crawler.c
+LIBMEMCACHED_SRCS-y += $(LIBMEMCACHED)/crc32c.c
+#LIBMEMCACHED_SRCS-y += $(LIBMEMCACHED)/daemon.c
+LIBMEMCACHED_SRCS-y += $(LIBMEMCACHED)/extstore.c
+LIBMEMCACHED_SRCS-y += $(LIBMEMCACHED)/hash.c
+LIBMEMCACHED_SRCS-y += $(LIBMEMCACHED)/items.c
+LIBMEMCACHED_SRCS-y += $(LIBMEMCACHED)/itoa_ljust.c
+LIBMEMCACHED_SRCS-y += $(LIBMEMCACHED)/jenkins_hash.c
+#LIBMEMCACHED_SRCS-y += $(LIBMEMCACHED)/linux_priv.c
+LIBMEMCACHED_SRCS-y += $(LIBMEMCACHED)/logger.c
+LIBMEMCACHED_SRCS-y += $(LIBMEMCACHED)/memcached.c
+LIBMEMCACHED_SRCS-y += $(LIBMEMCACHED)/murmur3_hash.c
+#LIBMEMCACHED_SRCS-y += $(LIBMEMCACHED)/openbsd_priv.c
+LIBMEMCACHED_SRCS-y += $(LIBMEMCACHED)/restart.c
+#LIBMEMCACHED_SRCS-y += $(LIBMEMCACHED)/sasl_defs.c
+#LIBMEMCACHED_SRCS-y += $(LIBMEMCACHED)/sizes.c
+LIBMEMCACHED_SRCS-y += $(LIBMEMCACHED)/slab_automove.c
+#LIBMEMCACHED_SRCS-y += $(LIBMEMCACHED)/slab_automove_extstore.c
+LIBMEMCACHED_SRCS-y += $(LIBMEMCACHED)/slabs.c
+#LIBMEMCACHED_SRCS-y += $(LIBMEMCACHED)/solaris_priv.c
+LIBMEMCACHED_SRCS-y += $(LIBMEMCACHED)/stats.c
+LIBMEMCACHED_SRCS-y += $(LIBMEMCACHED)/storage.c
+#LIBMEMCACHED_SRCS-y += $(LIBMEMCACHED)/testapp.c
+LIBMEMCACHED_SRCS-y += $(LIBMEMCACHED)/thread.c
+#LIBMEMCACHED_SRCS-y += $(LIBMEMCACHED)/timedrun.c
+LIBMEMCACHED_SRCS-y += $(LIBMEMCACHED)/util.c
-- 
2.17.1




 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.