Makefile.com revision 54034eb2d6e7d811adf4a1fe5105eac6fea6b0b5
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# CDDL HEADER START
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# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# See the License for the specific language governing permissions
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# and limitations under the License.
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# CDDL HEADER END
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# Use is subject to license terms.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteAES_COMMON_SRC= $(AES_COMMON_OBJS:%.o=$(AES_DIR)/%.c)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteBLOWFISH_COMMON_SRC= $(BLOWFISH_COMMON_OBJS:%.o=$(BLOWFISH_DIR)/%.c)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteARCFOUR_COMMON_SRC= $(ARCFOUR_COMMON_OBJS:%.o=$(ARCFOUR_DIR)/%.c)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteDES_COMMON_SRC= $(DES_COMMON_OBJS:%.o=$(DES_DIR)/%.c)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteBIGNUM_COMMON_SRC= $(BIGNUM_COMMON_OBJS:%.o=$(BIGNUM_DIR)/%.c)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteMODES_COMMON_SRC= $(MODES_COMMON_OBJS:%.o=$(MODES_DIR)/%.c)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# Object setup
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteARCFOUR_OBJS= $(ARCFOUR_COMMON_OBJS) $(ARCFOUR_PSM_OBJS)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteBLOWFISH_OBJS= $(BLOWFISH_COMMON_OBJS) $(BLOWFISH_PSM_OBJS)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteBIGNUM_OBJS= $(BIGNUM_COMMON_OBJS) $(BIGNUM_PSM_OBJS)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteOBJECTS= $(AES_OBJS) $(ARCFOUR_OBJS) $(BIGNUM_OBJS) $(BLOWFISH_OBJS) \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# Source file setup
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteARCFOUR_SRC= $(ARCFOUR_COMMON_SRC) $(ARCFOUR_PSM_SRC)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteBLOWFISH_SRC= $(BLOWFISH_COMMON_SRC) $(BLOWFISH_PSM_SRC)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteBIGNUM_SRC= $(BIGNUM_COMMON_SRC) $(BIGNUM_PSM_SRC)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteSRCS= $(AES_SRC) $(ARCFOUR_SRC) $(BIGNUM_SRC) $(BLOWFISH_SRC) $(DES_SRC) \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# Compiler settings
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteCPPFLAGS += -I$(SRCDIR) -I$(CRYPTODIR) -I$(MODESDIR) -D_POSIX_PTHREAD_SEMANTICS
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# Platform-specific targets
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteSOFT_PSR_DIRS = $(LINKED_PLATFORMS:%=$(USR_PLAT_DIR)/%/lib)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteSOFT_PSR_LINKS = $(LINKED_PLATFORMS:%=$(USR_PLAT_DIR)/%/lib/$(MODULE))
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteSOFT_PSR64_DIRS = $(LINKED_PLATFORMS:%=$(USR_PLAT_DIR)/%/lib/$(MACH64))
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(LINKED_PLATFORMS:%=$(USR_PLAT_DIR)/%/lib/$(MACH64)/$(MODULE))
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(SYMLINK) ../../$(PLATFORM)/lib/$(MODULE) $@ $(CHOWNLINK) $(CHGRPLINK)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(SYMLINK) ../../../$(PLATFORM)/lib/$(MACH64)/$(MODULE) \