1b60f2a0bSfr41279# 2b60f2a0bSfr41279# CDDL HEADER START 3b60f2a0bSfr41279# 4b60f2a0bSfr41279# The contents of this file are subject to the terms of the 5b60f2a0bSfr41279# Common Development and Distribution License (the "License"). 6b60f2a0bSfr41279# You may not use this file except in compliance with the License. 7b60f2a0bSfr41279# 8b60f2a0bSfr41279# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9b60f2a0bSfr41279# or http://www.opensolaris.org/os/licensing. 10b60f2a0bSfr41279# See the License for the specific language governing permissions 11b60f2a0bSfr41279# and limitations under the License. 12b60f2a0bSfr41279# 13b60f2a0bSfr41279# When distributing Covered Code, include this CDDL HEADER in each 14b60f2a0bSfr41279# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15b60f2a0bSfr41279# If applicable, add the following below this CDDL HEADER, with the 16b60f2a0bSfr41279# fields enclosed by brackets "[]" replaced with your own identifying 17b60f2a0bSfr41279# information: Portions Copyright [yyyy] [name of copyright owner] 18b60f2a0bSfr41279# 19b60f2a0bSfr41279# CDDL HEADER END 20b60f2a0bSfr41279# 2132e0ab73SMisaki Miyashita# Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved. 22b60f2a0bSfr41279# 23b60f2a0bSfr41279# This makefile drives the production of the misc/bignum module. 24b60f2a0bSfr41279# 25b60f2a0bSfr41279# sun4u implementation architecture dependent 26b60f2a0bSfr41279# 27b60f2a0bSfr41279 28b60f2a0bSfr41279# 29b60f2a0bSfr41279# Path to the base of the uts directory tree (usually /usr/src/uts). 30b60f2a0bSfr41279# 31b60f2a0bSfr41279UTSBASE = ../.. 3232e0ab73SMisaki MiyashitaCRYPTODIR = $(COMMONBASE)/crypto 33b60f2a0bSfr41279COM1_DIR = $(COMMONBASE)/bignum 34b60f2a0bSfr41279 35b60f2a0bSfr41279# 36b60f2a0bSfr41279# Define the module and object file sets. 37b60f2a0bSfr41279# 38b60f2a0bSfr41279MODULE = bignum 39b60f2a0bSfr41279OBJECTS = $(BIGNUM_OBJS:%=$(OBJS_DIR)/%) 40b60f2a0bSfr41279LINTS = $(BIGNUM_OBJS:%.o=$(LINTS_DIR)/%.ln) 41b60f2a0bSfr41279ROOTMODULE = $(ROOT_PSM_MISC_DIR)/$(MODULE) 42b60f2a0bSfr41279 43b60f2a0bSfr41279# 44b60f2a0bSfr41279# Include common rules. 45b60f2a0bSfr41279# 46b60f2a0bSfr41279include $(UTSBASE)/sun4u/Makefile.sun4u 47b60f2a0bSfr41279 48b60f2a0bSfr41279# 49b60f2a0bSfr41279# Define targets 50b60f2a0bSfr41279# 51b60f2a0bSfr41279ALL_TARGET = $(BINARY) 52b60f2a0bSfr41279LINT_TARGET = $(MODULE).lint 53b60f2a0bSfr41279INSTALL_TARGET = $(BINARY) $(ROOTMODULE) 54b60f2a0bSfr41279 55b60f2a0bSfr41279# 56b60f2a0bSfr41279# Linkage dependencies 57b60f2a0bSfr41279# 5832e0ab73SMisaki MiyashitaLDFLAGS += -dy -Nmisc/kcf 59b60f2a0bSfr41279 60b60f2a0bSfr41279# 61b60f2a0bSfr41279# lint pass one enforcement 62b60f2a0bSfr41279# 6332e0ab73SMisaki MiyashitaCFLAGS += $(CCVERBOSE) -I$(CRYPTODIR) -I$(COM1_DIR) 64b60f2a0bSfr41279CFLAGS += -DUMUL64 -DUSE_FLOATING_POINT 6532e0ab73SMisaki MiyashitaLINTFLAGS += -I$(CRYPTODIR) -I$(COM1_DIR) 66*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-unused-function 67b60f2a0bSfr41279 68b60f2a0bSfr41279# 69b60f2a0bSfr41279# Default build targets. 70b60f2a0bSfr41279# 71b60f2a0bSfr41279.KEEP_STATE: 72b60f2a0bSfr41279 73b60f2a0bSfr41279def: $(DEF_DEPS) 74b60f2a0bSfr41279 75b60f2a0bSfr41279all: $(ALL_DEPS) 76b60f2a0bSfr41279 77b60f2a0bSfr41279clean: $(CLEAN_DEPS) 78b60f2a0bSfr41279 79b60f2a0bSfr41279clobber: $(CLOBBER_DEPS) 80b60f2a0bSfr41279 81b60f2a0bSfr41279lint: $(LINT_DEPS) 82b60f2a0bSfr41279 83b60f2a0bSfr41279modlintlib: $(MODLINTLIB_DEPS) 84b60f2a0bSfr41279 85b60f2a0bSfr41279clean.lint: $(CLEAN_LINT_DEPS) 86b60f2a0bSfr41279 87b60f2a0bSfr41279install: $(INSTALL_DEPS) 88b60f2a0bSfr41279 89b60f2a0bSfr41279# 90b60f2a0bSfr41279# Include common targets. 91b60f2a0bSfr41279# 92b60f2a0bSfr41279include $(UTSBASE)/sparc/Makefile.targ 93