Makefile revision 32e0ab73531b6e6e8957e9ecdbbd42603865f2d0
992413f4053d9470046876b234fe094062b730b7Garrett D'Amore#
992413f4053d9470046876b234fe094062b730b7Garrett D'Amore# CDDL HEADER START
992413f4053d9470046876b234fe094062b730b7Garrett D'Amore#
992413f4053d9470046876b234fe094062b730b7Garrett D'Amore# The contents of this file are subject to the terms of the
992413f4053d9470046876b234fe094062b730b7Garrett D'Amore# Common Development and Distribution License (the "License").
992413f4053d9470046876b234fe094062b730b7Garrett D'Amore# You may not use this file except in compliance with the License.
992413f4053d9470046876b234fe094062b730b7Garrett D'Amore#
992413f4053d9470046876b234fe094062b730b7Garrett D'Amore# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
992413f4053d9470046876b234fe094062b730b7Garrett D'Amore# or http://www.opensolaris.org/os/licensing.
992413f4053d9470046876b234fe094062b730b7Garrett D'Amore# See the License for the specific language governing permissions
992413f4053d9470046876b234fe094062b730b7Garrett D'Amore# and limitations under the License.
992413f4053d9470046876b234fe094062b730b7Garrett D'Amore#
992413f4053d9470046876b234fe094062b730b7Garrett D'Amore# When distributing Covered Code, include this CDDL HEADER in each
992413f4053d9470046876b234fe094062b730b7Garrett D'Amore# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
992413f4053d9470046876b234fe094062b730b7Garrett D'Amore# If applicable, add the following below this CDDL HEADER, with the
992413f4053d9470046876b234fe094062b730b7Garrett D'Amore# fields enclosed by brackets "[]" replaced with your own identifying
992413f4053d9470046876b234fe094062b730b7Garrett D'Amore# information: Portions Copyright [yyyy] [name of copyright owner]
992413f4053d9470046876b234fe094062b730b7Garrett D'Amore#
992413f4053d9470046876b234fe094062b730b7Garrett D'Amore# CDDL HEADER END
992413f4053d9470046876b234fe094062b730b7Garrett D'Amore#
992413f4053d9470046876b234fe094062b730b7Garrett D'Amore#
992413f4053d9470046876b234fe094062b730b7Garrett D'Amore# Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved.
992413f4053d9470046876b234fe094062b730b7Garrett D'Amore#
992413f4053d9470046876b234fe094062b730b7Garrett D'Amore#
992413f4053d9470046876b234fe094062b730b7Garrett D'Amore# This makefile drives the production of the misx/bignum module.
992413f4053d9470046876b234fe094062b730b7Garrett D'Amore#
992413f4053d9470046876b234fe094062b730b7Garrett D'Amore# sparc implementation architecture dependent
992413f4053d9470046876b234fe094062b730b7Garrett D'Amore#
992413f4053d9470046876b234fe094062b730b7Garrett D'Amore
992413f4053d9470046876b234fe094062b730b7Garrett D'Amore#
992413f4053d9470046876b234fe094062b730b7Garrett D'Amore# Path to the base of the uts directory tree (usually /usr/src/uts).
992413f4053d9470046876b234fe094062b730b7Garrett D'Amore#
992413f4053d9470046876b234fe094062b730b7Garrett D'AmoreUTSBASE = ../..
992413f4053d9470046876b234fe094062b730b7Garrett D'AmoreCRYPTODIR = $(COMMONBASE)/crypto
992413f4053d9470046876b234fe094062b730b7Garrett D'AmoreCOM1_DIR = $(COMMONBASE)/bignum
992413f4053d9470046876b234fe094062b730b7Garrett D'Amore
992413f4053d9470046876b234fe094062b730b7Garrett D'Amore#
992413f4053d9470046876b234fe094062b730b7Garrett D'Amore# Define the module and object file sets.
992413f4053d9470046876b234fe094062b730b7Garrett D'Amore#
992413f4053d9470046876b234fe094062b730b7Garrett D'AmoreMODULE = bignum
992413f4053d9470046876b234fe094062b730b7Garrett D'AmoreOBJECTS = $(BIGNUM_OBJS:%=$(OBJS_DIR)/%)
992413f4053d9470046876b234fe094062b730b7Garrett D'AmoreLINTS = $(BIGNUM_OBJS:%.o=$(LINTS_DIR)/%.ln)
992413f4053d9470046876b234fe094062b730b7Garrett D'AmoreROOTMODULE = $(ROOT_MISC_DIR)/$(MODULE)
992413f4053d9470046876b234fe094062b730b7Garrett D'Amore
992413f4053d9470046876b234fe094062b730b7Garrett D'Amore#
992413f4053d9470046876b234fe094062b730b7Garrett D'Amore# Include common rules.
992413f4053d9470046876b234fe094062b730b7Garrett D'Amore#
992413f4053d9470046876b234fe094062b730b7Garrett D'Amoreinclude $(UTSBASE)/sparc/Makefile.sparc
992413f4053d9470046876b234fe094062b730b7Garrett D'Amore
992413f4053d9470046876b234fe094062b730b7Garrett D'Amore#
992413f4053d9470046876b234fe094062b730b7Garrett D'Amore# FIPS-140 Self Integrity Test
992413f4053d9470046876b234fe094062b730b7Garrett D'Amore#
992413f4053d9470046876b234fe094062b730b7Garrett D'AmorePOST_PROCESS += ; $(FIPS140_CHECK)
992413f4053d9470046876b234fe094062b730b7Garrett D'Amore
992413f4053d9470046876b234fe094062b730b7Garrett D'Amore
992413f4053d9470046876b234fe094062b730b7Garrett D'Amore#
992413f4053d9470046876b234fe094062b730b7Garrett D'Amore# Define targets
992413f4053d9470046876b234fe094062b730b7Garrett D'Amore#
992413f4053d9470046876b234fe094062b730b7Garrett D'AmoreALL_TARGET = $(BINARY)
992413f4053d9470046876b234fe094062b730b7Garrett D'AmoreLINT_TARGET = $(MODULE).lint
992413f4053d9470046876b234fe094062b730b7Garrett D'AmoreINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
992413f4053d9470046876b234fe094062b730b7Garrett D'Amore
7014882c6a3672fd0e5d60200af8643ae53c5928Richard Lowe#
7014882c6a3672fd0e5d60200af8643ae53c5928Richard Lowe# Linkage dependencies
992413f4053d9470046876b234fe094062b730b7Garrett D'Amore#
992413f4053d9470046876b234fe094062b730b7Garrett D'AmoreLDFLAGS += -dy -Nmisc/kcf
992413f4053d9470046876b234fe094062b730b7Garrett D'Amore
992413f4053d9470046876b234fe094062b730b7Garrett D'Amore#
992413f4053d9470046876b234fe094062b730b7Garrett D'Amore# lint pass one enforcement
992413f4053d9470046876b234fe094062b730b7Garrett D'Amore#
992413f4053d9470046876b234fe094062b730b7Garrett D'AmoreCFLAGS += $(CCVERBOSE) -I$(CRYPTODIR) -I$(COM1_DIR)
992413f4053d9470046876b234fe094062b730b7Garrett D'AmoreCFLAGS += -DUMUL64
992413f4053d9470046876b234fe094062b730b7Garrett D'AmoreLINTFLAGS += -I$(CRYPTODIR) -I$(COM1_DIR)
992413f4053d9470046876b234fe094062b730b7Garrett D'Amore
992413f4053d9470046876b234fe094062b730b7Garrett D'Amore
992413f4053d9470046876b234fe094062b730b7Garrett D'Amore#
992413f4053d9470046876b234fe094062b730b7Garrett D'Amore# Default build targets.
992413f4053d9470046876b234fe094062b730b7Garrett D'Amore#
992413f4053d9470046876b234fe094062b730b7Garrett D'Amore.KEEP_STATE:
992413f4053d9470046876b234fe094062b730b7Garrett D'Amore
992413f4053d9470046876b234fe094062b730b7Garrett D'Amoredef: $(DEF_DEPS)
992413f4053d9470046876b234fe094062b730b7Garrett D'Amore
992413f4053d9470046876b234fe094062b730b7Garrett D'Amoreall: $(ALL_DEPS)
992413f4053d9470046876b234fe094062b730b7Garrett D'Amore
992413f4053d9470046876b234fe094062b730b7Garrett D'Amoreclean: $(CLEAN_DEPS)
992413f4053d9470046876b234fe094062b730b7Garrett D'Amore
992413f4053d9470046876b234fe094062b730b7Garrett D'Amoreclobber: $(CLOBBER_DEPS)
992413f4053d9470046876b234fe094062b730b7Garrett D'Amore
992413f4053d9470046876b234fe094062b730b7Garrett D'Amorelint: $(LINT_DEPS)
992413f4053d9470046876b234fe094062b730b7Garrett D'Amore
992413f4053d9470046876b234fe094062b730b7Garrett D'Amoremodlintlib: $(MODLINTLIB_DEPS)
992413f4053d9470046876b234fe094062b730b7Garrett D'Amore
992413f4053d9470046876b234fe094062b730b7Garrett D'Amoreclean.lint: $(CLEAN_LINT_DEPS)
992413f4053d9470046876b234fe094062b730b7Garrett D'Amore
992413f4053d9470046876b234fe094062b730b7Garrett D'Amoreinstall: $(INSTALL_DEPS)
992413f4053d9470046876b234fe094062b730b7Garrett D'Amore
7f11fd00fc23e2af7ae21cc8837a2b86380dcfa7Richard Lowe#
992413f4053d9470046876b234fe094062b730b7Garrett D'Amore# Include common targets.
992413f4053d9470046876b234fe094062b730b7Garrett D'Amore#
992413f4053d9470046876b234fe094062b730b7Garrett D'Amoreinclude $(UTSBASE)/sparc/Makefile.targ
992413f4053d9470046876b234fe094062b730b7Garrett D'Amore