Makefile revision 726fad2a65f16c200a03969c29cb5c86c2d427db
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein#
5347c0fcb04eaea19d9f39795646239f487c6207Tinderbox User# CDDL HEADER START
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein#
5347c0fcb04eaea19d9f39795646239f487c6207Tinderbox User# The contents of this file are subject to the terms of the
5347c0fcb04eaea19d9f39795646239f487c6207Tinderbox User# Common Development and Distribution License (the "License").
5347c0fcb04eaea19d9f39795646239f487c6207Tinderbox User# You may not use this file except in compliance with the License.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein#
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# or http://www.opensolaris.org/os/licensing.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# See the License for the specific language governing permissions
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# and limitations under the License.
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User#
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# When distributing Covered Code, include this CDDL HEADER in each
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# If applicable, add the following below this CDDL HEADER, with the
cd32f419a8a5432fbb139f56ee73cbf68b9350ccTinderbox User# fields enclosed by brackets "[]" replaced with your own identifying
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# information: Portions Copyright [yyyy] [name of copyright owner]
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein#
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# CDDL HEADER END
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein#
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein#
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein#
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein#
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# lib/pkcs11/libsoftcrypto/amd64/Makefile
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein#
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinLIBRARY= libsoftcrypto.a
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinVERS= .1
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserAES_PSM_OBJS= aes_amd64.o aes_intel.o aeskey.o
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserAES_PSM_SRC= $(AES_DIR)/$(MACH64)/aes_amd64.s $(AES_DIR)/$(MACH64)/aes_intel.s \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein $(AES_DIR)/$(MACH64)/aeskey.c
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserARCFOUR_PSM_OBJS= arcfour-x86_64.o
af40ebed6257e4ac1996144530b3de317cf4da11Tinderbox UserARCFOUR_PSM_SRC= arcfour-x86_64.s
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserBIGNUM_PSM_OBJS= bignum_amd64.o bignum_amd64_asm.o
af40ebed6257e4ac1996144530b3de317cf4da11Tinderbox UserBIGNUM_PSM_SRC= $(BIGNUM_DIR)/$(MACH64)/bignum_amd64.c \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein $(BIGNUM_DIR)/$(MACH64)/bignum_amd64_asm.s
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox Userinclude ../Makefile.com
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austeininclude $(SRC)/lib/Makefile.lib.64
af40ebed6257e4ac1996144530b3de317cf4da11Tinderbox User
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserCFLAGS += -xO4 -xcrossfile
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinBIGNUM_FLAGS += -DPSR_MUL
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserLINTFLAGS64 += $(BIGNUM_FLAGS) $(AES_FLAGS) $(ARCFOUR_FLAGS)
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserCLEANFILES += arcfour-x86_64.s
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinLDLIBS += -lcryptoutil
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinLIBS += $(LINTLIB)
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austeininstall: all $(ROOTLIBS64) $(ROOTLINKS64) $(ROOTLINT64)
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox Userarcfour-x86_64.s: $(ARCFOUR_DIR)/amd64/arcfour-x86_64.pl
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User $(PERL) $? $@
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austeinpics/%.o: $(AES_DIR)/$(MACH64)/%.c
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User $(COMPILE.c) $(AES_FLAGS) -o $@ $<
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User $(POST_PROCESS_O)
48abcd3eb789fdd24a2e0a6155b25e6979a39ae0Mark Andrews
48abcd3eb789fdd24a2e0a6155b25e6979a39ae0Mark Andrewspics/%.o: $(AES_DIR)/$(MACH64)/%.s
48abcd3eb789fdd24a2e0a6155b25e6979a39ae0Mark Andrews $(COMPILE.s) $(AES_FLAGS) -o $@ $<
48abcd3eb789fdd24a2e0a6155b25e6979a39ae0Mark Andrews $(POST_PROCESS_O)
48abcd3eb789fdd24a2e0a6155b25e6979a39ae0Mark Andrews
48abcd3eb789fdd24a2e0a6155b25e6979a39ae0Mark Andrewspics/%.o: $(BIGNUM_DIR)/$(MACH64)/%.c
48abcd3eb789fdd24a2e0a6155b25e6979a39ae0Mark Andrews $(COMPILE.c) $(BIGNUM_FLAGS) -o $@ $<
48abcd3eb789fdd24a2e0a6155b25e6979a39ae0Mark Andrews $(POST_PROCESS_O)
48abcd3eb789fdd24a2e0a6155b25e6979a39ae0Mark Andrews
48abcd3eb789fdd24a2e0a6155b25e6979a39ae0Mark Andrewspics/%.o: $(BIGNUM_DIR)/$(MACH64)/%.s
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein $(COMPILE64.s) $(BIGNUM_FLAGS) -o $@ $<
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User $(POST_PROCESS_O)
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austeinpics/%.o: arcfour-x86_64.s
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein $(COMPILE64.s) $(ARCFOUR_FLAGS) -o $@ $<
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein $(POST_PROCESS_O)
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User