9b2267b5ba9d0640512a41e139a4a36caa43730dBob Halley#
7d98a1783f222964bcde7d56dab77b822706204dBob Halley# CDDL HEADER START
9b2267b5ba9d0640512a41e139a4a36caa43730dBob Halley#
9b2267b5ba9d0640512a41e139a4a36caa43730dBob Halley# The contents of this file are subject to the terms of the
9b2267b5ba9d0640512a41e139a4a36caa43730dBob Halley# Common Development and Distribution License (the "License").
9b2267b5ba9d0640512a41e139a4a36caa43730dBob Halley# You may not use this file except in compliance with the License.
9b2267b5ba9d0640512a41e139a4a36caa43730dBob Halley#
9b2267b5ba9d0640512a41e139a4a36caa43730dBob Halley# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9b2267b5ba9d0640512a41e139a4a36caa43730dBob Halley# or http://www.opensolaris.org/os/licensing.
9b2267b5ba9d0640512a41e139a4a36caa43730dBob Halley# See the License for the specific language governing permissions
9b2267b5ba9d0640512a41e139a4a36caa43730dBob Halley# and limitations under the License.
9b2267b5ba9d0640512a41e139a4a36caa43730dBob Halley#
9b2267b5ba9d0640512a41e139a4a36caa43730dBob Halley# When distributing Covered Code, include this CDDL HEADER in each
9b2267b5ba9d0640512a41e139a4a36caa43730dBob Halley# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
9b2267b5ba9d0640512a41e139a4a36caa43730dBob Halley# If applicable, add the following below this CDDL HEADER, with the
9b2267b5ba9d0640512a41e139a4a36caa43730dBob Halley# fields enclosed by brackets "[]" replaced with your own identifying
9b2267b5ba9d0640512a41e139a4a36caa43730dBob Halley# information: Portions Copyright [yyyy] [name of copyright owner]
202991557a4b7e8d3df7725d84f0fcae90dbaee6David Lawrence#
9c3531d72aeaad6c5f01efe6a1c82023e1379e4dDavid Lawrence# CDDL HEADER END
9b2267b5ba9d0640512a41e139a4a36caa43730dBob Halley#
9b2267b5ba9d0640512a41e139a4a36caa43730dBob Halley# uts/sun4v/n2rng/Makefile
9b2267b5ba9d0640512a41e139a4a36caa43730dBob Halley#
9b2267b5ba9d0640512a41e139a4a36caa43730dBob Halley# Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
9b2267b5ba9d0640512a41e139a4a36caa43730dBob Halley#
2dfd6bca9aa6d9279b4278d6fa18ea5f63ba0ec9Bob Halley#
9b2267b5ba9d0640512a41e139a4a36caa43730dBob Halley#
9b2267b5ba9d0640512a41e139a4a36caa43730dBob Halley# This makefile drives the production of the n2rng driver kernel module.
2dfd6bca9aa6d9279b4278d6fa18ea5f63ba0ec9Bob Halley#
2aa67e804d85f4d88153368ce65ce4df7b5390e6Bob Halley# sun4v implementation architecture dependent
2aa67e804d85f4d88153368ce65ce4df7b5390e6Bob Halley#
2dfd6bca9aa6d9279b4278d6fa18ea5f63ba0ec9Bob Halley
2dfd6bca9aa6d9279b4278d6fa18ea5f63ba0ec9Bob Halley#
2dfd6bca9aa6d9279b4278d6fa18ea5f63ba0ec9Bob Halley# Path to the base of the uts directory tree (usually /usr/src/uts).
2dfd6bca9aa6d9279b4278d6fa18ea5f63ba0ec9Bob Halley#
202991557a4b7e8d3df7725d84f0fcae90dbaee6David LawrenceUTSBASE = ../..
2dfd6bca9aa6d9279b4278d6fa18ea5f63ba0ec9Bob HalleyCOM_DIR = $(COMMONBASE)/crypto
134ba0e08a0ae9a564a8d8628fc633377d3fc239Bob Halley
202991557a4b7e8d3df7725d84f0fcae90dbaee6David Lawrence#
202991557a4b7e8d3df7725d84f0fcae90dbaee6David Lawrence# Define the module and object file sets.
202991557a4b7e8d3df7725d84f0fcae90dbaee6David Lawrence#
202991557a4b7e8d3df7725d84f0fcae90dbaee6David LawrenceMODULE = n2rng
134ba0e08a0ae9a564a8d8628fc633377d3fc239Bob HalleyOBJECTS = $(N2RNG_OBJS:%=$(OBJS_DIR)/%)
9ee5efde7df57cbe70fb9b32c9d898e8ef7eca1eBob HalleyLINTS = $(N2RNG_OBJS:%.o=$(LINTS_DIR)/%.ln)
9ee5efde7df57cbe70fb9b32c9d898e8ef7eca1eBob HalleyROOTMODULE = $(ROOT_PSM_DRV_DIR)/$(MODULE)
9ee5efde7df57cbe70fb9b32c9d898e8ef7eca1eBob HalleyCONF_SRCDIR = $(UTSBASE)/sun4v/io/n2rng
9ee5efde7df57cbe70fb9b32c9d898e8ef7eca1eBob Halley
9ee5efde7df57cbe70fb9b32c9d898e8ef7eca1eBob Halley#
9ee5efde7df57cbe70fb9b32c9d898e8ef7eca1eBob Halley# Include common rules.
9b2267b5ba9d0640512a41e139a4a36caa43730dBob Halley#
include $(UTSBASE)/sun4v/Makefile.sun4v
#
# Override defaults to build a unique, local modstubs.o.
#
MODSTUBS_DIR = $(OBJS_DIR)
CLEANFILES += $(MODSTUBS_O)
#
# Define targets
#
ALL_TARGET = $(BINARY)
LINT_TARGET = $(MODULE).lint
INSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
#
# lint pass one enforcement
#
CFLAGS += $(CCVERBOSE) -DN2 -I$(COM_DIR)
LINTFLAGS += -DN2 -I$(COM_DIR)
CERRWARN += -_gcc=-Wno-uninitialized
#
# module dependencies
#
LDFLAGS += -dy -Nmisc/kcf
#
# Default build targets.
#
.KEEP_STATE:
def: $(DEF_DEPS)
all: $(ALL_DEPS)
clean: $(CLEAN_DEPS)
clobber: $(CLOBBER_DEPS)
lint: $(LINT_DEPS)
modlintlib: $(MODLINTLIB_DEPS)
clean.lint: $(CLEAN_LINT_DEPS)
install: $(INSTALL_DEPS)
#
# Include common targets.
#
include $(UTSBASE)/sun4v/Makefile.targ