Makefile revision fcf3ce441efd61da9bb2884968af01cb7c1452cc
fc71e94957d0c2959a609450a2f303640d681858Sascha Wilde# CDDL HEADER START
fc71e94957d0c2959a609450a2f303640d681858Sascha Wilde#
fc71e94957d0c2959a609450a2f303640d681858Sascha Wilde# The contents of this file are subject to the terms of the
fc464e5b2b2ab4d415a5d5b90ce4475d34620a75Timo Sirainen# Common Development and Distribution License (the "License").
fc464e5b2b2ab4d415a5d5b90ce4475d34620a75Timo Sirainen# You may not use this file except in compliance with the License.
c5a6a6565be93224fc26522eda855b0990f256e8Timo Sirainen#
c5a6a6565be93224fc26522eda855b0990f256e8Timo Sirainen# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
c5a6a6565be93224fc26522eda855b0990f256e8Timo Sirainen# or http://www.opensolaris.org/os/licensing.
c5a6a6565be93224fc26522eda855b0990f256e8Timo Sirainen# See the License for the specific language governing permissions
c5a6a6565be93224fc26522eda855b0990f256e8Timo Sirainen# and limitations under the License.
c5a6a6565be93224fc26522eda855b0990f256e8Timo Sirainen#
c5a6a6565be93224fc26522eda855b0990f256e8Timo Sirainen# When distributing Covered Code, include this CDDL HEADER in each
fc464e5b2b2ab4d415a5d5b90ce4475d34620a75Timo Sirainen# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
fc464e5b2b2ab4d415a5d5b90ce4475d34620a75Timo Sirainen# If applicable, add the following below this CDDL HEADER, with the
fc464e5b2b2ab4d415a5d5b90ce4475d34620a75Timo Sirainen# fields enclosed by brackets "[]" replaced with your own identifying
fc464e5b2b2ab4d415a5d5b90ce4475d34620a75Timo Sirainen# information: Portions Copyright [yyyy] [name of copyright owner]
fc464e5b2b2ab4d415a5d5b90ce4475d34620a75Timo Sirainen#
fc464e5b2b2ab4d415a5d5b90ce4475d34620a75Timo Sirainen# CDDL HEADER END
fc71e94957d0c2959a609450a2f303640d681858Sascha Wilde#
fc71e94957d0c2959a609450a2f303640d681858Sascha Wilde#
fc71e94957d0c2959a609450a2f303640d681858Sascha Wilde# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
9f10cc61ec303351b43e54155c86699ef53cb8beTimo Sirainen# Use is subject to license terms.
aba994a4e79a020b4748e0ceffc194e5a18e1d1aTimo Sirainen#
fc71e94957d0c2959a609450a2f303640d681858Sascha Wilde# uts/intel/nsctl/Makefile
fc71e94957d0c2959a609450a2f303640d681858Sascha Wilde#
64bfe7b4a42512971db154937905dfa2bdb9cf2cTimo Sirainen# This makefile drives the production of the nsctl kernel module
c5a6a6565be93224fc26522eda855b0990f256e8Timo Sirainen#
64bfe7b4a42512971db154937905dfa2bdb9cf2cTimo Sirainen# intel implementation architecture dependent
fc71e94957d0c2959a609450a2f303640d681858Sascha Wilde#
3b22894b8805b186c73d8b754001e8d7e944be85Timo Sirainen
3b22894b8805b186c73d8b754001e8d7e944be85Timo Sirainen#
3b22894b8805b186c73d8b754001e8d7e944be85Timo Sirainen# Path to the base of the uts directory tree (usually /usr/src/uts).
64bfe7b4a42512971db154937905dfa2bdb9cf2cTimo Sirainen#
fc464e5b2b2ab4d415a5d5b90ce4475d34620a75Timo Sirainen#
9f10cc61ec303351b43e54155c86699ef53cb8beTimo SirainenUTSBASE = ../..
9f10cc61ec303351b43e54155c86699ef53cb8beTimo Sirainen
fc464e5b2b2ab4d415a5d5b90ce4475d34620a75Timo SirainenARCHDIR:sh = cd ..; basename `pwd`
fc464e5b2b2ab4d415a5d5b90ce4475d34620a75Timo Sirainen
fc464e5b2b2ab4d415a5d5b90ce4475d34620a75Timo Sirainen#
fc464e5b2b2ab4d415a5d5b90ce4475d34620a75Timo Sirainen# Define the module and object file sets.
a43145989f87ec68754e21234e7b6d892c4a4421Timo Sirainen#
a43145989f87ec68754e21234e7b6d892c4a4421Timo SirainenMODULE = nsctl
a43145989f87ec68754e21234e7b6d892c4a4421Timo SirainenOBJECTS = $(NSCTL_OBJS:%=$(OBJS_DIR)/%)
a43145989f87ec68754e21234e7b6d892c4a4421Timo SirainenLINTS = $(NSCTL_OBJS:%.o=$(LINTS_DIR)/%.ln)
fc71e94957d0c2959a609450a2f303640d681858Sascha WildeROOTMODULE = $(USR_DRV_DIR)/$(MODULE)
9f10cc61ec303351b43e54155c86699ef53cb8beTimo SirainenINC_PATH += -I$(UTSBASE)/common/avs
9f10cc61ec303351b43e54155c86699ef53cb8beTimo SirainenINC_PATH += -I$(ROOT)/usr/include
9f10cc61ec303351b43e54155c86699ef53cb8beTimo SirainenCONF_SRCDIR = $(UTSBASE)/common/avs/ns/nsctl
9f10cc61ec303351b43e54155c86699ef53cb8beTimo Sirainen
665e9d14c005b65d95eae0baaa471c51e5caca73Timo Sirainen#
665e9d14c005b65d95eae0baaa471c51e5caca73Timo Sirainen# Include common rules.
665e9d14c005b65d95eae0baaa471c51e5caca73Timo Sirainen#
4b1359bde7d32667197548652a4b4f540062e2acTimo Siraineninclude ../Makefile.$(ARCHDIR)
665e9d14c005b65d95eae0baaa471c51e5caca73Timo Siraineninclude $(UTSBASE)/common/avs/Makefile.com
665e9d14c005b65d95eae0baaa471c51e5caca73Timo Sirainen
665e9d14c005b65d95eae0baaa471c51e5caca73Timo Sirainen#
4b1359bde7d32667197548652a4b4f540062e2acTimo Sirainen# Define targets
69d60dcff2614c4bfc8ad59e8fdc09e39c9dd0dcTimo Sirainen#
4b1359bde7d32667197548652a4b4f540062e2acTimo SirainenALL_TARGET = $(BINARY) $(SRC_CONFILE)
4b1359bde7d32667197548652a4b4f540062e2acTimo SirainenLINT_TARGET = $(MODULE).lint
4b1359bde7d32667197548652a4b4f540062e2acTimo SirainenINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
fc71e94957d0c2959a609450a2f303640d681858Sascha Wilde
#
# lint pass one enforcement
#
CFLAGS += -v
LDFLAGS += -dy -N"drv/nskern" -N"drv/ncall" -N"misc/spuni"
LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
.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 ../Makefile.targ