Makefile.com revision 726fad2a65f16c200a03969c29cb5c86c2d427db
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar#
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar# CDDL HEADER START
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar#
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar# The contents of this file are subject to the terms of the
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar# Common Development and Distribution License (the "License").
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar# You may not use this file except in compliance with the License.
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar#
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar# or http://www.opensolaris.org/os/licensing.
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar# See the License for the specific language governing permissions
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar# and limitations under the License.
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar#
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar# When distributing Covered Code, include this CDDL HEADER in each
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar# If applicable, add the following below this CDDL HEADER, with the
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar# fields enclosed by brackets "[]" replaced with your own identifying
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar# information: Portions Copyright [yyyy] [name of copyright owner]
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar#
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar# CDDL HEADER END
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar#
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar#
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar# Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved.
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar#
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar# lib/pkcs11/pkcs11_softtoken/Makefile.com
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar#
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod GunjikarLIBRARY = pkcs11_softtoken.a
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod GunjikarVERS= .1
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod GunjikarLCL_OBJECTS = \
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar softGeneral.o \
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar softSlotToken.o \
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar softSession.o \
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar softObject.o \
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar softDigest.o \
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar softSign.o \
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar softVerify.o \
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar softDualCrypt.o \
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar softKeys.o \
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar softRand.o \
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar softSessionUtil.o \
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar softDigestUtil.o \
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar softAttributeUtil.o \
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar softObjectUtil.o \
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar softDESCrypt.o \
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar softEncrypt.o \
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar softDecrypt.o \
fffafeb2cc01732fd6a28ed530e4424094685eceJohnny Cheung softEncryptUtil.o \
fffafeb2cc01732fd6a28ed530e4424094685eceJohnny Cheung softDecryptUtil.o \
fffafeb2cc01732fd6a28ed530e4424094685eceJohnny Cheung softSignUtil.o \
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar softVerifyUtil.o \
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar softMAC.o \
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar softRSA.o \
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar softKeysUtil.o \
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar softARCFourCrypt.o \
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar softDSA.o \
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar softDH.o \
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar softAESCrypt.o \
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar softKeystore.o \
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar softKeystoreUtil.o \
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar softSSL.o \
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar softASN1.o \
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar softBlowfishCrypt.o \
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar softEC.o \
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar softFipsPost.o \
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar softFipsPostUtil.o
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod GunjikarASFLAGS = $(AS_PICFLAGS) -P -D__STDC__ -D_ASM $(CPPFLAGS)
a307732568c3d861c38b0342ae32434226d10e94Pramod Gunjikar
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod GunjikarECC_COBJECTS = \
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar ec.o ec2_163.o ec2_mont.o ecdecode.o ecl_mult.o ecp_384.o \
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar ecp_jac.o ec2_193.o ecl.o ecp_192.o ecp_521.o \
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar ecp_jm.o ec2_233.o ecl_curve.o ecp_224.o ecp_aff.o ecp_mont.o \
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar ec2_aff.o ec_naf.o ecl_gf.o ecp_256.o oid.o secitem.o \
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar ec2_test.o ecp_test.o
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod GunjikarMPI_COBJECTS = mp_gf2m.o mpi.o mplogic.o mpmontg.o mpprime.o
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod GunjikarRNG_COBJECTS = fips_random.o
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod GunjikarFIPS_COBJECTS = fips_aes_util.o fips_des_util.o \
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar fips_sha1_util.o fips_sha2_util.o \
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar fips_dsa_util.o fips_rsa_util.o \
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar fips_ecc_util.o fips_random_util.o
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod GunjikarECC_OBJECTS = $(ECC_COBJECTS) $(ECC_PSR_OBJECTS)
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod GunjikarMPI_OBJECTS = $(MPI_COBJECTS) $(MPI_PSR_OBJECTS)
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod GunjikarRNG_OBJECTS = $(RNG_COBJECTS)
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod GunjikarFIPS_OBJECTS = $(FIPS_COBJECTS)
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod GunjikarBER_OBJECTS = bprint.o decode.o encode.o io.o
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod GunjikarOBJECTS = \
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar $(LCL_OBJECTS) \
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar $(MPI_OBJECTS) \
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar $(RNG_OBJECTS) \
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar $(FIPS_OBJECTS) \
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar $(BIGNUM_OBJECTS) \
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar $(BER_OBJECTS) \
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar $(ECC_OBJECTS)
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod GunjikarAESDIR= $(SRC)/common/crypto/aes
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod GunjikarBLOWFISHDIR= $(SRC)/common/crypto/blowfish
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod GunjikarARCFOURDIR= $(SRC)/common/crypto/arcfour
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod GunjikarDESDIR= $(SRC)/common/crypto/des
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod GunjikarDHDIR= $(SRC)/common/crypto/dh
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod GunjikarDSADIR= $(SRC)/common/crypto/dsa
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod GunjikarECCDIR= $(SRC)/common/crypto/ecc
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod GunjikarMPIDIR= $(SRC)/common/mpi
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod GunjikarRSADIR= $(SRC)/common/crypto/rsa
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod GunjikarRNGDIR= $(SRC)/common/crypto/rng
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod GunjikarFIPSDIR= $(SRC)/common/crypto/fips
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod GunjikarSHA1DIR= $(SRC)/common/crypto/sha1
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod GunjikarSHA2DIR= $(SRC)/common/crypto/sha2
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod GunjikarBIGNUMDIR= $(SRC)/common/bignum
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod GunjikarPADDIR= $(SRC)/common/crypto/padding
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod GunjikarBERDIR= ../../../libldap5/sources/ldap/ber
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikarinclude $(SRC)/lib/Makefile.lib
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar# set signing mode
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod GunjikarPOST_PROCESS_SO += ; $(ELFSIGN_CRYPTO)
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod GunjikarSRCDIR= ../common
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod GunjikarSRCS = \
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar $(LCL_OBJECTS:%.o=$(SRCDIR)/%.c) \
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar $(MPI_COBJECTS:%.o=$(MPIDIR)/%.c) \
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar $(ECC_COBJECTS:%.o=$(ECCDIR)/%.c) \
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar $(RNG_COBJECTS:%.o=$(RNGDIR)/%.c) \
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar $(FIPS_COBJECTS:%.o=$(FIPSDIR)/%.c)
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar# libelfsign needs a static pkcs11_softtoken
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod GunjikarLIBS = $(DYNLIB)
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod GunjikarLDLIBS += -lc -lmd -lcryptoutil -lsoftcrypto -lgen
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod GunjikarCFLAGS += $(CCVERBOSE)
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod GunjikarCPPFLAGS += -I$(AESDIR) -I$(BLOWFISHDIR) -I$(ARCFOURDIR) -I$(DESDIR) \
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar -I$(DHDIR) -I$(DSADIR) -I$(ECCDIR) -I$(SRC)/common/crypto \
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar -I$(MPIDIR) -I$(RSADIR) -I$(RNGDIR) \
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar -I$(FIPSDIR) -I$(SHA1DIR) -I$(SHA2DIR) -I$(SRCDIR) \
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar -I$(BIGNUMDIR) -I$(PADDIR) -D_POSIX_PTHREAD_SEMANTICS \
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar -DMP_API_COMPATIBLE -DNSS_ECC_MORE_THAN_SUITE_B
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod GunjikarLINTFLAGS64 += -errchk=longptr64
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod GunjikarROOTLIBDIR= $(ROOT)/usr/lib/security
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod GunjikarROOTLIBDIR64= $(ROOT)/usr/lib/security/$(MACH64)
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod GunjikarLINTSRC = \
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar $(LCL_OBJECTS:%.o=$(SRCDIR)/%.c) \
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar $(RNG_COBJECTS:%.o=$(RNGDIR)/%.c) \
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar $(FIPS_COBJECTS:%.o=$(FIPSDIR)/%.c)
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar.KEEP_STATE:
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikarall: $(LIBS)
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikarlint: $$(LINTSRC)
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar $(LINT.c) $(LINTCHECKFLAGS) $(LINTSRC) $(LDLIBS)
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikarpics/%.o: $(BERDIR)/%.c
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar $(COMPILE.c) -o $@ $< -D_SOLARIS_SDK -I$(BERDIR) \
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar -I../../../libldap5/include/ldap
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar $(POST_PROCESS_O)
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikarpics/%.o: $(ECCDIR)/%.c
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar $(COMPILE.c) -o $@ $<
a307732568c3d861c38b0342ae32434226d10e94Pramod Gunjikar $(POST_PROCESS_O)
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikarpics/%.o: $(MPIDIR)/%.c
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar $(COMPILE.c) -o $@ $<
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar $(POST_PROCESS_O)
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikarpics/%.o: $(RNGDIR)/%.c
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar $(COMPILE.c) -o $@ $<
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar $(POST_PROCESS_O)
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikarpics/%.o: $(FIPSDIR)/%.c
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar $(COMPILE.c) -o $@ $<
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar $(POST_PROCESS_O)
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikarinclude $(SRC)/lib/Makefile.targ
c39526b769298791ff5b0b6c5e761f49aabaeb4ePramod Gunjikar