Makefile revision 726fad2a65f16c200a03969c29cb5c86c2d427db
71269a2275bf5a143dad6461eee2710a344e7261Anthony Scarpino#
71269a2275bf5a143dad6461eee2710a344e7261Anthony Scarpino# CDDL HEADER START
71269a2275bf5a143dad6461eee2710a344e7261Anthony Scarpino#
71269a2275bf5a143dad6461eee2710a344e7261Anthony Scarpino# The contents of this file are subject to the terms of the
71269a2275bf5a143dad6461eee2710a344e7261Anthony Scarpino# Common Development and Distribution License (the "License").
71269a2275bf5a143dad6461eee2710a344e7261Anthony Scarpino# You may not use this file except in compliance with the License.
71269a2275bf5a143dad6461eee2710a344e7261Anthony Scarpino#
71269a2275bf5a143dad6461eee2710a344e7261Anthony Scarpino# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
71269a2275bf5a143dad6461eee2710a344e7261Anthony Scarpino# or http://www.opensolaris.org/os/licensing.
71269a2275bf5a143dad6461eee2710a344e7261Anthony Scarpino# See the License for the specific language governing permissions
71269a2275bf5a143dad6461eee2710a344e7261Anthony Scarpino# and limitations under the License.
71269a2275bf5a143dad6461eee2710a344e7261Anthony Scarpino#
71269a2275bf5a143dad6461eee2710a344e7261Anthony Scarpino# When distributing Covered Code, include this CDDL HEADER in each
71269a2275bf5a143dad6461eee2710a344e7261Anthony Scarpino# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
71269a2275bf5a143dad6461eee2710a344e7261Anthony Scarpino# If applicable, add the following below this CDDL HEADER, with the
71269a2275bf5a143dad6461eee2710a344e7261Anthony Scarpino# fields enclosed by brackets "[]" replaced with your own identifying
71269a2275bf5a143dad6461eee2710a344e7261Anthony Scarpino# information: Portions Copyright [yyyy] [name of copyright owner]
71269a2275bf5a143dad6461eee2710a344e7261Anthony Scarpino#
71269a2275bf5a143dad6461eee2710a344e7261Anthony Scarpino# CDDL HEADER END
71269a2275bf5a143dad6461eee2710a344e7261Anthony Scarpino#
726fad2a65f16c200a03969c29cb5c86c2d427dbDina K Nimeh
726fad2a65f16c200a03969c29cb5c86c2d427dbDina K Nimeh#
726fad2a65f16c200a03969c29cb5c86c2d427dbDina K Nimeh# Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved.
71269a2275bf5a143dad6461eee2710a344e7261Anthony Scarpino#
726fad2a65f16c200a03969c29cb5c86c2d427dbDina K Nimeh
71269a2275bf5a143dad6461eee2710a344e7261Anthony Scarpino#
71269a2275bf5a143dad6461eee2710a344e7261Anthony Scarpino# lib/pkcs11/libsoftcrypto/amd64/Makefile
71269a2275bf5a143dad6461eee2710a344e7261Anthony Scarpino#
71269a2275bf5a143dad6461eee2710a344e7261Anthony Scarpino
71269a2275bf5a143dad6461eee2710a344e7261Anthony ScarpinoLIBRARY= libsoftcrypto.a
71269a2275bf5a143dad6461eee2710a344e7261Anthony ScarpinoVERS= .1
71269a2275bf5a143dad6461eee2710a344e7261Anthony Scarpino
54034eb2d6e7d811adf4a1fe5105eac6fea6b0b5Dan OpenSolaris AndersonAES_PSM_OBJS= aes_amd64.o aes_intel.o aeskey.o
54034eb2d6e7d811adf4a1fe5105eac6fea6b0b5Dan OpenSolaris AndersonAES_PSM_SRC= $(AES_DIR)/$(MACH64)/aes_amd64.s $(AES_DIR)/$(MACH64)/aes_intel.s \
54034eb2d6e7d811adf4a1fe5105eac6fea6b0b5Dan OpenSolaris Anderson $(AES_DIR)/$(MACH64)/aeskey.c
71269a2275bf5a143dad6461eee2710a344e7261Anthony Scarpino
71269a2275bf5a143dad6461eee2710a344e7261Anthony ScarpinoARCFOUR_PSM_OBJS= arcfour-x86_64.o
71269a2275bf5a143dad6461eee2710a344e7261Anthony ScarpinoARCFOUR_PSM_SRC= arcfour-x86_64.s
71269a2275bf5a143dad6461eee2710a344e7261Anthony Scarpino
71269a2275bf5a143dad6461eee2710a344e7261Anthony ScarpinoBIGNUM_PSM_OBJS= bignum_amd64.o bignum_amd64_asm.o
71269a2275bf5a143dad6461eee2710a344e7261Anthony ScarpinoBIGNUM_PSM_SRC= $(BIGNUM_DIR)/$(MACH64)/bignum_amd64.c \
71269a2275bf5a143dad6461eee2710a344e7261Anthony Scarpino $(BIGNUM_DIR)/$(MACH64)/bignum_amd64_asm.s
71269a2275bf5a143dad6461eee2710a344e7261Anthony Scarpino
71269a2275bf5a143dad6461eee2710a344e7261Anthony Scarpinoinclude ../Makefile.com
71269a2275bf5a143dad6461eee2710a344e7261Anthony Scarpinoinclude $(SRC)/lib/Makefile.lib.64
71269a2275bf5a143dad6461eee2710a344e7261Anthony Scarpino
8475e04352e630e4bd0f59a283286ee2475a14ceDan OpenSolaris AndersonCFLAGS += -xO4 -xcrossfile
8475e04352e630e4bd0f59a283286ee2475a14ceDan OpenSolaris AndersonBIGNUM_FLAGS += -DPSR_MUL
92a8e44d7a50507b89a65e1e3226edb5b90fd363Dan OpenSolaris AndersonLINTFLAGS64 += $(BIGNUM_FLAGS) $(AES_FLAGS) $(ARCFOUR_FLAGS)
92a8e44d7a50507b89a65e1e3226edb5b90fd363Dan OpenSolaris AndersonCLEANFILES += arcfour-x86_64.s
71269a2275bf5a143dad6461eee2710a344e7261Anthony Scarpino
726fad2a65f16c200a03969c29cb5c86c2d427dbDina K NimehLDLIBS += -lcryptoutil
71269a2275bf5a143dad6461eee2710a344e7261Anthony ScarpinoLIBS += $(LINTLIB)
71269a2275bf5a143dad6461eee2710a344e7261Anthony Scarpino
71269a2275bf5a143dad6461eee2710a344e7261Anthony Scarpinoinstall: all $(ROOTLIBS64) $(ROOTLINKS64) $(ROOTLINT64)
71269a2275bf5a143dad6461eee2710a344e7261Anthony Scarpino
8475e04352e630e4bd0f59a283286ee2475a14ceDan OpenSolaris Andersonarcfour-x86_64.s: $(ARCFOUR_DIR)/amd64/arcfour-x86_64.pl
71269a2275bf5a143dad6461eee2710a344e7261Anthony Scarpino $(PERL) $? $@
71269a2275bf5a143dad6461eee2710a344e7261Anthony Scarpino
71269a2275bf5a143dad6461eee2710a344e7261Anthony Scarpinopics/%.o: $(AES_DIR)/$(MACH64)/%.c
8475e04352e630e4bd0f59a283286ee2475a14ceDan OpenSolaris Anderson $(COMPILE.c) $(AES_FLAGS) -o $@ $<
71269a2275bf5a143dad6461eee2710a344e7261Anthony Scarpino $(POST_PROCESS_O)
71269a2275bf5a143dad6461eee2710a344e7261Anthony Scarpino
71269a2275bf5a143dad6461eee2710a344e7261Anthony Scarpinopics/%.o: $(AES_DIR)/$(MACH64)/%.s
71269a2275bf5a143dad6461eee2710a344e7261Anthony Scarpino $(COMPILE.s) $(AES_FLAGS) -o $@ $<
71269a2275bf5a143dad6461eee2710a344e7261Anthony Scarpino $(POST_PROCESS_O)
71269a2275bf5a143dad6461eee2710a344e7261Anthony Scarpino
71269a2275bf5a143dad6461eee2710a344e7261Anthony Scarpinopics/%.o: $(BIGNUM_DIR)/$(MACH64)/%.c
8475e04352e630e4bd0f59a283286ee2475a14ceDan OpenSolaris Anderson $(COMPILE.c) $(BIGNUM_FLAGS) -o $@ $<
71269a2275bf5a143dad6461eee2710a344e7261Anthony Scarpino $(POST_PROCESS_O)
71269a2275bf5a143dad6461eee2710a344e7261Anthony Scarpino
71269a2275bf5a143dad6461eee2710a344e7261Anthony Scarpinopics/%.o: $(BIGNUM_DIR)/$(MACH64)/%.s
71269a2275bf5a143dad6461eee2710a344e7261Anthony Scarpino $(COMPILE64.s) $(BIGNUM_FLAGS) -o $@ $<
71269a2275bf5a143dad6461eee2710a344e7261Anthony Scarpino $(POST_PROCESS_O)
71269a2275bf5a143dad6461eee2710a344e7261Anthony Scarpino
8475e04352e630e4bd0f59a283286ee2475a14ceDan OpenSolaris Andersonpics/%.o: arcfour-x86_64.s
71269a2275bf5a143dad6461eee2710a344e7261Anthony Scarpino $(COMPILE64.s) $(ARCFOUR_FLAGS) -o $@ $<
71269a2275bf5a143dad6461eee2710a344e7261Anthony Scarpino $(POST_PROCESS_O)