11e49577aSRod Evans# 21e49577aSRod Evans# CDDL HEADER START 31e49577aSRod Evans# 41e49577aSRod Evans# The contents of this file are subject to the terms of the 51e49577aSRod Evans# Common Development and Distribution License (the "License"). 61e49577aSRod Evans# You may not use this file except in compliance with the License. 71e49577aSRod Evans# 81e49577aSRod Evans# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 91e49577aSRod Evans# or http://www.opensolaris.org/os/licensing. 101e49577aSRod Evans# See the License for the specific language governing permissions 111e49577aSRod Evans# and limitations under the License. 121e49577aSRod Evans# 131e49577aSRod Evans# When distributing Covered Code, include this CDDL HEADER in each 141e49577aSRod Evans# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 151e49577aSRod Evans# If applicable, add the following below this CDDL HEADER, with the 161e49577aSRod Evans# fields enclosed by brackets "[]" replaced with your own identifying 171e49577aSRod Evans# information: Portions Copyright [yyyy] [name of copyright owner] 181e49577aSRod Evans# 191e49577aSRod Evans# CDDL HEADER END 201e49577aSRod Evans# 211e49577aSRod Evans 221e49577aSRod Evans# 231e49577aSRod Evans# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved. 241e49577aSRod Evans# 253eca6103SJohn Levon# Copyright (c) 2019, Joyent, Inc. 263eca6103SJohn Levon# 271e49577aSRod Evans 281e49577aSRod EvansBIGNUM_PSM_OBJS = bignum_i386.o bignum_i386_asm.o 291e49577aSRod Evans 301e49577aSRod Evansinclude ../../Makefile.com 311e49577aSRod Evans 321e49577aSRod Evans# Redefine the objects required for this capabilities group. 331e49577aSRod EvansOBJECTS = $(BIGNUM_OBJS) 341e49577aSRod Evans 351e49577aSRod Evansinclude $(SRC)/lib/Makefile.lib 361e49577aSRod Evans 37*5d9d9091SRichard LoweAS_CPPFLAGS += -D_ASM -DPIC -D_REENTRANT -D$(MACH) 38*5d9d9091SRichard LoweASFLAGS += $(AS_PICFLAGS) 391e49577aSRod EvansCFLAGS += $(CCVERBOSE) 401e49577aSRod EvansCPPFLAGS += -I$(CRYPTODIR) -I$(UTSDIR) -D_POSIX_PTHREAD_SEMANTICS 411e49577aSRod EvansBIGNUM_FLAGS += -DMMX_MANAGE -DHWCAP -DPSR_MUL -DNO_BIG_ONE -DNO_BIG_TWO 421e49577aSRod Evans 437014882cSRichard LoweCERRWARN += -_gcc=-Wno-unused-variable 447014882cSRichard Lowe 451e49577aSRod Evans.KEEP_STATE: 461e49577aSRod Evans 471e49577aSRod Evansall install: $(SYMCAP) 481e49577aSRod Evans 491e49577aSRod Evansinclude ../../Makefile.targ 501e49577aSRod Evans 511e49577aSRod Evanspics/bignum_i386.o: $(BIGNUM_DIR)/i386/bignum_i386.c 521e49577aSRod Evans $(COMPILE.c) $(BIGNUM_FLAGS) -o $@ \ 531e49577aSRod Evans $(BIGNUM_DIR)/i386/bignum_i386.c 541e49577aSRod Evans $(POST_PROCESS_O) 551e49577aSRod Evans 56*5d9d9091SRichard Lowepics/bignum_i386_asm.o: $(BIGNUM_DIR)/i386/bignum_i386_asm.S 57*5d9d9091SRichard Lowe $(COMPILE.s) -o $@ $(BIGNUM_DIR)/i386/bignum_i386_asm.S 583eca6103SJohn Levon $(POST_PROCESS_S_O) 59