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

[UNIKRAFT/LIBTASN1, 2/2] Add Makefile.uk



Signed-off-by: Laurentiu Barbulescu <lrbarbulescu@xxxxxxxxx>
---
 Makefile.uk | 121 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 121 insertions(+)
 create mode 100644 Makefile.uk

diff --git a/Makefile.uk b/Makefile.uk
new file mode 100644
index 0000000..75573a2
--- /dev/null
+++ b/Makefile.uk
@@ -0,0 +1,121 @@
+#  SPDX-License-Identifier: BSD-3-Clause
+#
+#  libtasn1 Makefile.uk
+#
+#  Authors: Laurentiu Barbulescu <lrbarbulescu@xxxxxxxxx>
+#
+#  Copyright (c) 2019, University Politehnica of Bucharest. 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_s,libtasn1,$(CONFIG_LIBTASN1)))
+
+################################################################################
+# Original sources
+################################################################################
+LIBTASN1_VERSION = 4.16.0
+LIBTASN1_URL = 
http://ftp.gnu.org/gnu/libtasn1/libtasn1-$(LIBTASN1_VERSION).tar.gz
+LIBTASN1_SUBDIR = libtasn1-$(LIBTASN1_VERSION)
+$(eval $(call fetch,libtasn1,$(LIBTASN1_URL)))
+
+# LIBTASN1_PATCHDIR=$(LIBTASN1_BASE)/patches
+# $(eval $(call patch,libtasn1,$(LIBTASN1_PATCHDIR),$(LIBTASN1_SUBDIR)))
+
+################################################################################
+# Helpers
+################################################################################
+LIBTASN1_EXTRACTED = $(LIBTASN1_ORIGIN)/libtasn1-$(LIBTASN1_VERSION)
+
+################################################################################
+# Library includes
+################################################################################
+LIBTASN1_COMMON_INCLUDES-y     += -I$(LIBTASN1_EXTRACTED)/lib
+LIBTASN1_COMMON_INCLUDES-y     += -I$(LIBTASN1_EXTRACTED)/lib/gl
+LIBTASN1_COMMON_INCLUDES-y     += -I$(LIBTASN1_EXTRACTED)/lib/includes
+
+CINCLUDES-$(CONFIG_LIBTASN1)   += $(LIBTASN1_COMMON_INCLUDES-y)
+CXXINCLUDES-$(CONFIG_LIBTASN1) += $(LIBTASN1_COMMON_INCLUDES-y)
+
+LIBTASN1_CINCLUDES   += -I$(LIBTASN1_EXTRACTED)
+LIBTASN1_CXXINCLUDES += -I$(LIBTASN1_EXTRACTED)
+
+################################################################################
+# Global flags
+################################################################################
+# Suppress flags
+LIBTASN1_SUPPRESS_FLAGS += -Wno-unused-parameter -Wno-type-limits
+LIBTASN1_CFLAGS-y   += $(LIBTASN1_SUPPRESS_FLAGS)
+LIBTASN1_CXXFLAGS-y += $(LIBTASN1_SUPPRESS_FLAGS)
+
+# Preprocessing symbols
+LIBTASN1_DEFINES    += -DHAVE_CONFIG_H
+LIBTASN1_CFLAGS-y   += $(LIBTASN1_DEFINES)
+LIBTASN1_CXXFLAGS-y += $(LIBTASN1_DEFINES)
+
+################################################################################
+# LIBTASN1 code
+################################################################################
+LIBTASN1_SRCS-y += $(LIBTASN1_EXTRACTED)/lib/ASN1.c
+LIBTASN1_SRCS-y += $(LIBTASN1_EXTRACTED)/lib/coding.c
+LIBTASN1_SRCS-y += $(LIBTASN1_EXTRACTED)/lib/decoding.c
+LIBTASN1_SRCS-y += $(LIBTASN1_EXTRACTED)/lib/element.c
+LIBTASN1_SRCS-y += $(LIBTASN1_EXTRACTED)/lib/errors.c
+LIBTASN1_SRCS-y += $(LIBTASN1_EXTRACTED)/lib/gstr.c
+LIBTASN1_SRCS-y += $(LIBTASN1_EXTRACTED)/lib/parser_aux.c
+LIBTASN1_SRCS-y += $(LIBTASN1_EXTRACTED)/lib/structure.c
+LIBTASN1_SRCS-y += $(LIBTASN1_EXTRACTED)/lib/version.c
+LIBTASN1_SRCS-y += $(LIBTASN1_EXTRACTED)/lib/gl/c-ctype.c
+LIBTASN1_SRCS-y += $(LIBTASN1_EXTRACTED)/lib/gl/strverscmp.c
+
+################################################################################
+# LIBTASN1 prepare
+################################################################################
+# Run ./configure
+$(LIBTASN1_EXTRACTED)/config.status: $(LIBTASN1_BUILD)/.origin
+       $(call verbose_cmd,CONFIG,libtasn1: $(notdir $@), \
+               cd $(LIBTASN1_EXTRACTED) && ./configure)
+
+# Use the native build system to generate limits.h
+$(LIBTASN1_EXTRACTED)/lib/gl/limits.h: $(LIBTASN1_BUILD)/.origin
+       $(call verbose_cmd,CONFIG,libtasn1: $(notdir $@), \
+               cd $(LIBTASN1_EXTRACTED)/lib/gl && make limits.h)
+# Use the native build system to generate string.h
+$(LIBTASN1_EXTRACTED)/lib/gl/string.h: $(LIBTASN1_BUILD)/.origin
+       $(call verbose_cmd,CONFIG,libtasn1: $(notdir $@), \
+               cd $(LIBTASN1_EXTRACTED)/lib/gl && make string.h)
+
+LIBTASN1_PREPARED_DEPS = $(LIBTASN1_EXTRACTED)/config.status \
+                                                
$(LIBTASN1_EXTRACTED)/lib/gl/limits.h \
+                                                
$(LIBTASN1_EXTRACTED)/lib/gl/string.h 
+$(LIBTASN1_BUILD)/.prepared: $(LIBTASN1_PREPARED_DEPS)
+
+UK_PREPARE += $(LIBTASN1_BUILD)/.prepared
-- 
2.25.1




 


Rackspace

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