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# 21b60f2a0bSfr41279# 22*32e0ab73SMisaki Miyashita# Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved. 23b60f2a0bSfr41279# 24b60f2a0bSfr41279# 25b60f2a0bSfr41279# This makefile drives the production of the misx/bignum module. 26b60f2a0bSfr41279# 27b60f2a0bSfr41279# sparc implementation architecture dependent 28b60f2a0bSfr41279# 29b60f2a0bSfr41279 30b60f2a0bSfr41279# 31b60f2a0bSfr41279# Path to the base of the uts directory tree (usually /usr/src/uts). 32b60f2a0bSfr41279# 33b60f2a0bSfr41279UTSBASE = ../.. 34*32e0ab73SMisaki MiyashitaCRYPTODIR = $(COMMONBASE)/crypto 35b60f2a0bSfr41279COM1_DIR = $(COMMONBASE)/bignum 36b60f2a0bSfr41279 37b60f2a0bSfr41279# 38b60f2a0bSfr41279# Define the module and object file sets. 39b60f2a0bSfr41279# 40b60f2a0bSfr41279MODULE = bignum 41b60f2a0bSfr41279OBJECTS = $(BIGNUM_OBJS:%=$(OBJS_DIR)/%) 42b60f2a0bSfr41279LINTS = $(BIGNUM_OBJS:%.o=$(LINTS_DIR)/%.ln) 43b60f2a0bSfr41279ROOTMODULE = $(ROOT_MISC_DIR)/$(MODULE) 44b60f2a0bSfr41279 45b60f2a0bSfr41279# 46b60f2a0bSfr41279# Include common rules. 47b60f2a0bSfr41279# 48b60f2a0bSfr41279include $(UTSBASE)/sparc/Makefile.sparc 49b60f2a0bSfr41279 50b60f2a0bSfr41279# 51b60f2a0bSfr41279# Define targets 52b60f2a0bSfr41279# 53b60f2a0bSfr41279ALL_TARGET = $(BINARY) 54b60f2a0bSfr41279LINT_TARGET = $(MODULE).lint 55b60f2a0bSfr41279INSTALL_TARGET = $(BINARY) $(ROOTMODULE) 56b60f2a0bSfr41279 57b60f2a0bSfr41279# 58b60f2a0bSfr41279# Linkage dependencies 59b60f2a0bSfr41279# 60*32e0ab73SMisaki MiyashitaLDFLAGS += -dy -Nmisc/kcf 61b60f2a0bSfr41279 62b60f2a0bSfr41279# 63b60f2a0bSfr41279# lint pass one enforcement 64b60f2a0bSfr41279# 65*32e0ab73SMisaki MiyashitaCFLAGS += $(CCVERBOSE) -I$(CRYPTODIR) -I$(COM1_DIR) 66b60f2a0bSfr41279CFLAGS += -DUMUL64 67*32e0ab73SMisaki MiyashitaLINTFLAGS += -I$(CRYPTODIR) -I$(COM1_DIR) 68b60f2a0bSfr41279 69b60f2a0bSfr41279 70b60f2a0bSfr41279# 71b60f2a0bSfr41279# Default build targets. 72b60f2a0bSfr41279# 73b60f2a0bSfr41279.KEEP_STATE: 74b60f2a0bSfr41279 75b60f2a0bSfr41279def: $(DEF_DEPS) 76b60f2a0bSfr41279 77b60f2a0bSfr41279all: $(ALL_DEPS) 78b60f2a0bSfr41279 79b60f2a0bSfr41279clean: $(CLEAN_DEPS) 80b60f2a0bSfr41279 81b60f2a0bSfr41279clobber: $(CLOBBER_DEPS) 82b60f2a0bSfr41279 83b60f2a0bSfr41279lint: $(LINT_DEPS) 84b60f2a0bSfr41279 85b60f2a0bSfr41279modlintlib: $(MODLINTLIB_DEPS) 86b60f2a0bSfr41279 87b60f2a0bSfr41279clean.lint: $(CLEAN_LINT_DEPS) 88b60f2a0bSfr41279 89b60f2a0bSfr41279install: $(INSTALL_DEPS) 90b60f2a0bSfr41279 91b60f2a0bSfr41279# 92b60f2a0bSfr41279# Include common targets. 93b60f2a0bSfr41279# 94b60f2a0bSfr41279include $(UTSBASE)/sparc/Makefile.targ 95