16df3ef80SGreg Tucker######################################################################## 26df3ef80SGreg Tucker# Copyright(c) 2011-2016 Intel Corporation All rights reserved. 36df3ef80SGreg Tucker# 46df3ef80SGreg Tucker# Redistribution and use in source and binary forms, with or without 56df3ef80SGreg Tucker# modification, are permitted provided that the following conditions 66df3ef80SGreg Tucker# are met: 76df3ef80SGreg Tucker# * Redistributions of source code must retain the above copyright 86df3ef80SGreg Tucker# notice, this list of conditions and the following disclaimer. 96df3ef80SGreg Tucker# * Redistributions in binary form must reproduce the above copyright 106df3ef80SGreg Tucker# notice, this list of conditions and the following disclaimer in 116df3ef80SGreg Tucker# the documentation and/or other materials provided with the 126df3ef80SGreg Tucker# distribution. 136df3ef80SGreg Tucker# * Neither the name of Intel Corporation nor the names of its 146df3ef80SGreg Tucker# contributors may be used to endorse or promote products derived 156df3ef80SGreg Tucker# from this software without specific prior written permission. 166df3ef80SGreg Tucker# 176df3ef80SGreg Tucker# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 186df3ef80SGreg Tucker# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 196df3ef80SGreg Tucker# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 206df3ef80SGreg Tucker# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 216df3ef80SGreg Tucker# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 226df3ef80SGreg Tucker# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 236df3ef80SGreg Tucker# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 246df3ef80SGreg Tucker# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 256df3ef80SGreg Tucker# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 266df3ef80SGreg Tucker# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 276df3ef80SGreg Tucker# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 286df3ef80SGreg Tucker######################################################################## 29ffd20d8cSJerry Yuhost_cpu ?= $(shell uname -m | sed -e 's/amd/x86_/') 30f073af04SJerry Yuarch ?= $(shell uname | grep -v -e Linux -e BSD ) 31dc44e3c3SJerry Yu 32f073af04SJerry Yu 33f073af04SJerry Yu 34f073af04SJerry Yuunits ?=sha1_mb sha256_mb sha512_mb md5_mb mh_sha1 mh_sha1_murmur3_x64_128 \ 35*fea2d86aSMarcel Cornu mh_sha256 rolling_hash sm3_mb fips misc 36dff5fd77SGreg Tucker 37dff5fd77SGreg Tucker 38f073af04SJerry Yuifneq ($(arch),noarch) 39dff5fd77SGreg Tucker ifneq ($(filter x86_%,$(host_cpu)),) 40f073af04SJerry Yu units +=aes 41dc44e3c3SJerry Yu endif 42dff5fd77SGreg Tucker 43f073af04SJerry Yu ifeq ($(host_cpu)_$(arch),aarch64_) 44f073af04SJerry Yu arch = aarch64 452118044bSDaniel Hu units +=aes 46f073af04SJerry Yu endif 47dff5fd77SGreg Tuckerendif 48dff5fd77SGreg Tucker 496df3ef80SGreg Tuckerdefault: lib 506df3ef80SGreg Tuckerinclude $(foreach unit,$(units), $(unit)/Makefile.am) 516df3ef80SGreg Tucker 526df3ef80SGreg Tucker# Override individual lib names to make one inclusive library. 536df3ef80SGreg Tuckerlib_name := bin/isa-l_crypto.a 546df3ef80SGreg Tucker 556df3ef80SGreg Tuckerinclude make.inc 56096215acSGreg Tuckerinclude tools/gen_nmake.mk 5766a48ecdSTomasz KanteckiVPATH = . $(units) include intel-ipsec-mb/lib 58