1*b60f2a0bSfr41279# 2*b60f2a0bSfr41279# CDDL HEADER START 3*b60f2a0bSfr41279# 4*b60f2a0bSfr41279# The contents of this file are subject to the terms of the 5*b60f2a0bSfr41279# Common Development and Distribution License (the "License"). 6*b60f2a0bSfr41279# You may not use this file except in compliance with the License. 7*b60f2a0bSfr41279# 8*b60f2a0bSfr41279# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9*b60f2a0bSfr41279# or http://www.opensolaris.org/os/licensing. 10*b60f2a0bSfr41279# See the License for the specific language governing permissions 11*b60f2a0bSfr41279# and limitations under the License. 12*b60f2a0bSfr41279# 13*b60f2a0bSfr41279# When distributing Covered Code, include this CDDL HEADER in each 14*b60f2a0bSfr41279# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15*b60f2a0bSfr41279# If applicable, add the following below this CDDL HEADER, with the 16*b60f2a0bSfr41279# fields enclosed by brackets "[]" replaced with your own identifying 17*b60f2a0bSfr41279# information: Portions Copyright [yyyy] [name of copyright owner] 18*b60f2a0bSfr41279# 19*b60f2a0bSfr41279# CDDL HEADER END 20*b60f2a0bSfr41279# 21*b60f2a0bSfr41279# 22*b60f2a0bSfr41279# Copyright 2008 Sun Microsystems, Inc. All rights reserved. 23*b60f2a0bSfr41279# Use is subject to license terms. 24*b60f2a0bSfr41279# 25*b60f2a0bSfr41279#ident "%Z%%M% %I% %E% SMI" 26*b60f2a0bSfr41279# 27*b60f2a0bSfr41279# This makefile drives the production of the RSA KEF provider. 28*b60f2a0bSfr41279# 29*b60f2a0bSfr41279# intel implementation architecture dependent 30*b60f2a0bSfr41279# 31*b60f2a0bSfr41279 32*b60f2a0bSfr41279# 33*b60f2a0bSfr41279# Path to the base of the uts directory tree (usually /usr/src/uts). 34*b60f2a0bSfr41279# 35*b60f2a0bSfr41279UTSBASE = ../.. 36*b60f2a0bSfr41279BIGNUMDIR = $(COMMONBASE)/bignum 37*b60f2a0bSfr41279 38*b60f2a0bSfr41279# 39*b60f2a0bSfr41279# Define the module and object file sets. 40*b60f2a0bSfr41279# 41*b60f2a0bSfr41279MODULE = bignum 42*b60f2a0bSfr41279OBJECTS = $(BIGNUM_OBJS:%=$(OBJS_DIR)/%) 43*b60f2a0bSfr41279LINTS = $(BIGNUM_OBJS:%.o=$(LINTS_DIR)/%.ln) 44*b60f2a0bSfr41279ROOTMODULE = $(ROOT_MISC_DIR)/$(MODULE) 45*b60f2a0bSfr41279 46*b60f2a0bSfr41279BIGNUM_OBJS_32 = bignum_i386.o bignum_i386_asm.o 47*b60f2a0bSfr41279BIGNUM_OBJS_64 = bignum_amd64.o bignum_amd64_asm.o 48*b60f2a0bSfr41279BIGNUM_PSR_OBJS = $(BIGNUM_OBJS_$(CLASS)) 49*b60f2a0bSfr41279 50*b60f2a0bSfr41279# 51*b60f2a0bSfr41279# Include common rules. 52*b60f2a0bSfr41279# 53*b60f2a0bSfr41279include $(UTSBASE)/intel/Makefile.intel 54*b60f2a0bSfr41279 55*b60f2a0bSfr41279# 56*b60f2a0bSfr41279# Define targets 57*b60f2a0bSfr41279# 58*b60f2a0bSfr41279ALL_TARGET = $(BINARY) 59*b60f2a0bSfr41279LINT_TARGET = $(MODULE).lint 60*b60f2a0bSfr41279INSTALL_TARGET = $(BINARY) $(ROOTMODULE) 61*b60f2a0bSfr41279 62*b60f2a0bSfr41279# 63*b60f2a0bSfr41279# Linkage dependencies 64*b60f2a0bSfr41279# 65*b60f2a0bSfr41279LDFLAGS += -dy 66*b60f2a0bSfr41279 67*b60f2a0bSfr41279CPPFLAGS += -I$(BIGNUMDIR) 68*b60f2a0bSfr41279 69*b60f2a0bSfr41279# 70*b60f2a0bSfr41279# Default build targets. 71*b60f2a0bSfr41279# 72*b60f2a0bSfr41279.KEEP_STATE: 73*b60f2a0bSfr41279 74*b60f2a0bSfr41279def: $(DEF_DEPS) 75*b60f2a0bSfr41279 76*b60f2a0bSfr41279all: $(ALL_DEPS) 77*b60f2a0bSfr41279 78*b60f2a0bSfr41279clean: $(CLEAN_DEPS) 79*b60f2a0bSfr41279 80*b60f2a0bSfr41279clobber: $(CLOBBER_DEPS) 81*b60f2a0bSfr41279 82*b60f2a0bSfr41279lint: $(LINT_DEPS) 83*b60f2a0bSfr41279 84*b60f2a0bSfr41279modlintlib: $(MODLINTLIB_DEPS) 85*b60f2a0bSfr41279 86*b60f2a0bSfr41279clean.lint: $(CLEAN_LINT_DEPS) 87*b60f2a0bSfr41279 88*b60f2a0bSfr41279install: $(INSTALL_DEPS) 89*b60f2a0bSfr41279 90*b60f2a0bSfr41279# 91*b60f2a0bSfr41279# Include common targets. 92*b60f2a0bSfr41279# 93*b60f2a0bSfr41279include $(UTSBASE)/intel/Makefile.targ 94*b60f2a0bSfr41279 95*b60f2a0bSfr41279 96*b60f2a0bSfr41279include Makefile.$(CLASS) 97