2N/A#
2N/A# CDDL HEADER START
2N/A#
2N/A# The contents of this file are subject to the terms of the
2N/A# Common Development and Distribution License (the "License").
2N/A# You may not use this file except in compliance with the License.
2N/A#
2N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2N/A# or http://www.opensolaris.org/os/licensing.
2N/A# See the License for the specific language governing permissions
2N/A# and limitations under the License.
2N/A#
2N/A# When distributing Covered Code, include this CDDL HEADER in each
2N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
2N/A# If applicable, add the following below this CDDL HEADER, with the
2N/A# fields enclosed by brackets "[]" replaced with your own identifying
2N/A# information: Portions Copyright [yyyy] [name of copyright owner]
2N/A#
2N/A# CDDL HEADER END
2N/A#
2N/A
2N/A#
2N/A# Copyright (c) 2008, 2012, Oracle and/or its affiliates. All rights reserved.
2N/A#
2N/A
2N/ASRC_REL = ../../..
2N/ALIBRARY = libsoftcrypto.a
2N/AVERS = .1
2N/A
2N/AAES_PSM_COBJS= aeskey.o aesni_modes.o
2N/AAES_PSM_SOBJS= aes_amd64.o
2N/AAES_PSM_OBJS= $(AES_PSM_COBJS) $(AES_PSM_SOBJS)
2N/A
2N/AARCFOUR_PSM_OBJS = arcfour-x86_64.o
2N/ABIGNUM_PSM_OBJS = bignum_amd64.o bignum_amd64_asm.o
2N/A
2N/AAES_PSM_SRC= $(AES_PSM_COBJS:%.o=$(AES_DIR)/$(MACH64)/%.c) \
2N/A $(AES_PSM_SOBJS:%.o=$(AES_DIR)/$(MACH64)/%.s)
2N/A
2N/AARCFOUR_PSM_SRC = arcfour-x86_64.s
2N/ABIGNUM_PSM_SRC = $(BIGNUM_DIR)/$(MACH64)/bignum_amd64.c \
2N/A $(BIGNUM_DIR)/$(MACH64)/bignum_amd64_asm.s
2N/A
2N/Ainclude ../Makefile.com
2N/Ainclude $(SRC)/lib/Makefile.lib.64
2N/A
2N/ACFLAGS += -xO4 -xipo
2N/ABIGNUM_FLAGS += -DPSR_MUL
2N/ACLEANFILES += arcfour-x86_64.s
2N/A
2N/A# Symbol capabilities objects are added for amd64.
2N/AEXTPICS = ../capabilities/intel-hwcap1/amd64/pics/symcap.o \
2N/A ../capabilities/intel-hwcap2/amd64/pics/symcap.o
2N/A
2N/A.KEEP_STATE:
2N/A
2N/Aall: stub $(LIBS)
2N/A
2N/Alint: lintcheck
2N/A
2N/Ainstall: stubinstall all $(ROOTLIBS64) $(ROOTLINKS64) $(ROOTLINT64)
2N/A
2N/Ainclude ../Makefile.targ
2N/A
2N/Astubinstall: stub $(STUBROOTLIBS64) $(STUBROOTLINKS64)
2N/A
2N/Apics/%.o: $(AES_DIR)/$(MACH64)/%.c
2N/A $(COMPILE.c) $(AES_FLAGS) -o $@ $<
2N/A $(POST_PROCESS_O)
2N/A
2N/Apics/%.o: $(AES_DIR)/$(MACH64)/%.s
2N/A $(COMPILE.s) $(AES_FLAGS) -o $@ $<
2N/A $(POST_PROCESS_O)
2N/A
2N/Apics/%.o: $(BIGNUM_DIR)/$(MACH64)/%.c
2N/A $(COMPILE.c) $(BIGNUM_FLAGS) -o $@ $<
2N/A $(POST_PROCESS_O)
2N/A
2N/Apics/%.o: $(BIGNUM_DIR)/$(MACH64)/%.s
2N/A $(COMPILE64.s) $(BIGNUM_FLAGS) -o $@ $<
2N/A $(POST_PROCESS_O)
2N/A
2N/Aarcfour-x86_64.s: $(ARCFOUR_DIR)/amd64/arcfour-x86_64.pl
2N/A $(PERL) $? $@
2N/A
2N/Apics/%.o: arcfour-x86_64.s
2N/A $(COMPILE64.s) $(ARCFOUR_FLAGS) -o $@ $<
2N/A $(POST_PROCESS_O)