Makefile revision 726fad2a65f16c200a03969c29cb5c86c2d427db
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
3b4098640dd85040270f39b9a5ee5e22de99d3d6Mark Andrews# CDDL HEADER START
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# The contents of this file are subject to the terms of the
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# Common Development and Distribution License (the "License").
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# You may not use this file except in compliance with the License.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# or http://www.opensolaris.org/os/licensing.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# See the License for the specific language governing permissions
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# and limitations under the License.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# When distributing Covered Code, include this CDDL HEADER in each
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# If applicable, add the following below this CDDL HEADER, with the
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# fields enclosed by brackets "[]" replaced with your own identifying
3b4098640dd85040270f39b9a5ee5e22de99d3d6Mark Andrews# information: Portions Copyright [yyyy] [name of copyright owner]
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# CDDL HEADER END
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
cedb0bd0c1e3c461b7e479a16d3adfd5b150f1f4Mark Andrews#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# lib/pkcs11/libsoftcrypto/amd64/Makefile
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsLIBRARY= libsoftcrypto.a
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsVERS= .1
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsAES_PSM_OBJS= aes_amd64.o aes_intel.o aeskey.o
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsAES_PSM_SRC= $(AES_DIR)/$(MACH64)/aes_amd64.s $(AES_DIR)/$(MACH64)/aes_intel.s \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews $(AES_DIR)/$(MACH64)/aeskey.c
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsARCFOUR_PSM_OBJS= arcfour-x86_64.o
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsARCFOUR_PSM_SRC= arcfour-x86_64.s
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsBIGNUM_PSM_OBJS= bignum_amd64.o bignum_amd64_asm.o
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsBIGNUM_PSM_SRC= $(BIGNUM_DIR)/$(MACH64)/bignum_amd64.c \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews $(BIGNUM_DIR)/$(MACH64)/bignum_amd64_asm.s
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrewsinclude ../Makefile.com
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrewsinclude $(SRC)/lib/Makefile.lib.64
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsCFLAGS += -xO4 -xcrossfile
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsBIGNUM_FLAGS += -DPSR_MUL
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsLINTFLAGS64 += $(BIGNUM_FLAGS) $(AES_FLAGS) $(ARCFOUR_FLAGS)
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsCLEANFILES += arcfour-x86_64.s
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsLDLIBS += -lcryptoutil
3b4098640dd85040270f39b9a5ee5e22de99d3d6Mark AndrewsLIBS += $(LINTLIB)
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrewsinstall: all $(ROOTLIBS64) $(ROOTLINKS64) $(ROOTLINT64)
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrewsarcfour-x86_64.s: $(ARCFOUR_DIR)/amd64/arcfour-x86_64.pl
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews $(PERL) $? $@
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrewspics/%.o: $(AES_DIR)/$(MACH64)/%.c
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews $(COMPILE.c) $(AES_FLAGS) -o $@ $<
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews $(POST_PROCESS_O)
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrewspics/%.o: $(AES_DIR)/$(MACH64)/%.s
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews $(COMPILE.s) $(AES_FLAGS) -o $@ $<
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews $(POST_PROCESS_O)
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrewspics/%.o: $(BIGNUM_DIR)/$(MACH64)/%.c
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews $(COMPILE.c) $(BIGNUM_FLAGS) -o $@ $<
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews $(POST_PROCESS_O)
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrewspics/%.o: $(BIGNUM_DIR)/$(MACH64)/%.s
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews $(COMPILE64.s) $(BIGNUM_FLAGS) -o $@ $<
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews $(POST_PROCESS_O)
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrewspics/%.o: arcfour-x86_64.s
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews $(COMPILE64.s) $(ARCFOUR_FLAGS) -o $@ $<
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews $(POST_PROCESS_O)
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews