Makefile.com revision 54034eb2d6e7d811adf4a1fe5105eac6fea6b0b5
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# CDDL HEADER START
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# The contents of this file are subject to the terms of the
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# Common Development and Distribution License (the "License").
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# You may not use this file except in compliance with the License.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# or http://www.opensolaris.org/os/licensing.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# See the License for the specific language governing permissions
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# and limitations under the License.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# When distributing Covered Code, include this CDDL HEADER in each
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# If applicable, add the following below this CDDL HEADER, with the
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# fields enclosed by brackets "[]" replaced with your own identifying
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# information: Portions Copyright [yyyy] [name of copyright owner]
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# CDDL HEADER END
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# Use is subject to license terms.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# lib/pkcs11/libsoftcrypto/Makefile.com
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# AES
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteAES_DIR= $(SRC)/common/crypto/aes
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteAES_COMMON_OBJS= aes_impl.o aes_modes.o
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteAES_COMMON_SRC= $(AES_COMMON_OBJS:%.o=$(AES_DIR)/%.c)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteAES_FLAGS= -I$(AES_DIR)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# Blowfish
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteBLOWFISH_DIR= $(SRC)/common/crypto/blowfish
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteBLOWFISH_COMMON_OBJS= blowfish_impl.o
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteBLOWFISH_COMMON_SRC= $(BLOWFISH_COMMON_OBJS:%.o=$(BLOWFISH_DIR)/%.c)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteBLOWFISH_FLAGS= -I$(BLOWFISH_DIR)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# ARCFour
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteARCFOUR_DIR= $(SRC)/common/crypto/arcfour
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteARCFOUR_COMMON_OBJS= arcfour_crypt.o
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteARCFOUR_COMMON_SRC= $(ARCFOUR_COMMON_OBJS:%.o=$(ARCFOUR_DIR)/%.c)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteARCFOUR_FLAGS= -I$(ARCFOUR_DIR)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# DES
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteDES_DIR= $(SRC)/common/crypto/des
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteDES_COMMON_OBJS= des_impl.o des_ks.o
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteDES_COMMON_SRC= $(DES_COMMON_OBJS:%.o=$(DES_DIR)/%.c)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteDES_FLAGS= -I$(DES_DIR)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# BIGNUM
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteBIGNUM_DIR= $(SRC)/common/bignum
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteBIGNUM_COMMON_OBJS= bignumimpl.o
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteBIGNUM_COMMON_SRC= $(BIGNUM_COMMON_OBJS:%.o=$(BIGNUM_DIR)/%.c)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteBIGNUM_FLAGS= -I$(BIGNUM_DIR)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# Modes
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteMODES_DIR= $(SRC)/common/crypto/modes
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteMODES_COMMON_OBJS= modes.o ecb.o cbc.o ctr.o
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteMODES_COMMON_SRC= $(MODES_COMMON_OBJS:%.o=$(MODES_DIR)/%.c)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# Object setup
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteAES_OBJS= $(AES_COMMON_OBJS) $(AES_PSM_OBJS)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteARCFOUR_OBJS= $(ARCFOUR_COMMON_OBJS) $(ARCFOUR_PSM_OBJS)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteBLOWFISH_OBJS= $(BLOWFISH_COMMON_OBJS) $(BLOWFISH_PSM_OBJS)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteDES_OBJS= $(DES_COMMON_OBJS) $(DES_PSM_OBJS)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteBIGNUM_OBJS= $(BIGNUM_COMMON_OBJS) $(BIGNUM_PSM_OBJS)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteMODES_OBJS= $(MODES_COMMON_OBJS)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteOBJECTS= $(AES_OBJS) $(ARCFOUR_OBJS) $(BIGNUM_OBJS) $(BLOWFISH_OBJS) \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(DES_OBJS) $(MODES_OBJS)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteinclude $(SRC)/lib/Makefile.lib
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# Source file setup
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteAES_SRC= $(AES_COMMON_SRC) $(AES_PSM_SRC)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteARCFOUR_SRC= $(ARCFOUR_COMMON_SRC) $(ARCFOUR_PSM_SRC)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteBLOWFISH_SRC= $(BLOWFISH_COMMON_SRC) $(BLOWFISH_PSM_SRC)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteDES_SRC= $(DES_COMMON_SRC) $(DES_PSM_SRC)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteBIGNUM_SRC= $(BIGNUM_COMMON_SRC) $(BIGNUM_PSM_SRC)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteMODES_SRC= $(MODES_COMMON_SRC)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteSRCS= $(AES_SRC) $(ARCFOUR_SRC) $(BIGNUM_SRC) $(BLOWFISH_SRC) $(DES_SRC) \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(MODES_SRC)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# Compiler settings
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteSRCDIR= $(SRC)/lib/pkcs11/libsoftcrypto/common/
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteCRYPTODIR= $(SRC)/common/crypto/
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteMODESDIR= $(SRC)/uts/common/
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteROOTLIBDIR= $(ROOT)/usr/lib
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteROOTLIBDIR64= $(ROOT)/usr/lib/$(MACH64)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteROOTHWCAPDIR= $(ROOTLIBDIR)/libsoftcrypto
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteLIBS = $(DYNLIB)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteCFLAGS += $(CCVERBOSE) $(C_BIGPICFLAGS)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteCPPFLAGS += -I$(SRCDIR) -I$(CRYPTODIR) -I$(MODESDIR) -D_POSIX_PTHREAD_SEMANTICS
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteASFLAGS = $(AS_PICFLAGS) -P -D__STDC__ -D_ASM
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteLINTFLAGS64 += -errchk=longptr64
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteall: $(LIBS)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Fortelint: $(SRCS)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(LINT.c) $(LINTCHECKFLAGS) $(SRCS) $(LDLIBS)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Fortepics/%.o: $(AES_DIR)/%.c
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(COMPILE.c) $(AES_FLAGS) -o $@ $<
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(POST_PROCESS_O)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Fortepics/%.o: $(ARCFOUR_DIR)/%.c
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(COMPILE.c) $(ARCFOUR_FLAGS) -o $@ $<
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(POST_PROCESS_O)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Fortepics/%.o: $(BIGNUM_DIR)/%.c
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(COMPILE.c) $(BIGNUM_FLAGS) -o $@ $<
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(POST_PROCESS_O)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Fortepics/%.o: $(BLOWFISH_DIR)/%.c
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(COMPILE.c) $(BLOWFISH_FLAGS) -o $@ $<
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(POST_PROCESS_O)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Fortepics/%.o: $(DES_DIR)/%.c
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(COMPILE.c) $(DES_FLAGS) -o $@ $<
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(POST_PROCESS_O)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Fortepics/%.o: $(MODES_DIR)/%.c
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(COMPILE.c) -o $@ $<
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(POST_PROCESS_O)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# Platform-specific targets
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteSOFT_PSR_DIRS = $(LINKED_PLATFORMS:%=$(USR_PLAT_DIR)/%/lib)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteSOFT_PSR_LINKS = $(LINKED_PLATFORMS:%=$(USR_PLAT_DIR)/%/lib/$(MODULE))
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteSOFT_PSR64_DIRS = $(LINKED_PLATFORMS:%=$(USR_PLAT_DIR)/%/lib/$(MACH64))
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteSOFT_PSR64_LINKS = \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(LINKED_PLATFORMS:%=$(USR_PLAT_DIR)/%/lib/$(MACH64)/$(MODULE))
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteINS.slink6 = $(RM) -r $@; \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(SYMLINK) ../../$(PLATFORM)/lib/$(MODULE) $@ $(CHOWNLINK) $(CHGRPLINK)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteINS.slink64 = $(RM) -r $@; \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(SYMLINK) ../../../$(PLATFORM)/lib/$(MACH64)/$(MODULE) \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $@ $(CHOWNLINK) $(CHGRPLINK)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte$(SOFT_PSR_DIRS) \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte$(SOFT_PSR64_DIRS):
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte -$(INS.dir.root.bin)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte$(SOFT_PSR_LINKS): $(SOFT_PSR_DIRS)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte -$(INS.slink6)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte$(SOFT_PSR64_LINKS): $(SOFT_PSR64_DIRS)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte -$(INS.slink64)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteinclude $(SRC)/lib/Makefile.targ
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte