Makefile revision 03a6687dc6597686cef37c77a1c5cd070217a1d8
842ae4bd224140319ae7feec1872b93dfd491143fielding# CDDL HEADER START
842ae4bd224140319ae7feec1872b93dfd491143fielding#
842ae4bd224140319ae7feec1872b93dfd491143fielding# The contents of this file are subject to the terms of the
842ae4bd224140319ae7feec1872b93dfd491143fielding# Common Development and Distribution License (the "License").
842ae4bd224140319ae7feec1872b93dfd491143fielding# You may not use this file except in compliance with the License.
842ae4bd224140319ae7feec1872b93dfd491143fielding#
cc003103e52ff9d5fe9bed567ef9438613ab4fbfrse# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
ce9621257ef9e54c1bbe5ad8a5f445a1f211c2dcnd# or http://www.opensolaris.org/os/licensing.
d86ef5503dcbc38e87c0e03cd3e1f16458cb6323rse# See the License for the specific language governing permissions
ce9621257ef9e54c1bbe5ad8a5f445a1f211c2dcnd# and limitations under the License.
ce9621257ef9e54c1bbe5ad8a5f445a1f211c2dcnd#
ce9621257ef9e54c1bbe5ad8a5f445a1f211c2dcnd# When distributing Covered Code, include this CDDL HEADER in each
ce9621257ef9e54c1bbe5ad8a5f445a1f211c2dcnd# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
ce9621257ef9e54c1bbe5ad8a5f445a1f211c2dcnd# If applicable, add the following below this CDDL HEADER, with the
ce9621257ef9e54c1bbe5ad8a5f445a1f211c2dcnd# fields enclosed by brackets "[]" replaced with your own identifying
ce9621257ef9e54c1bbe5ad8a5f445a1f211c2dcnd# information: Portions Copyright [yyyy] [name of copyright owner]
ce9621257ef9e54c1bbe5ad8a5f445a1f211c2dcnd#
ce9621257ef9e54c1bbe5ad8a5f445a1f211c2dcnd# CDDL HEADER END
ce9621257ef9e54c1bbe5ad8a5f445a1f211c2dcnd#
ce9621257ef9e54c1bbe5ad8a5f445a1f211c2dcnd#
ce9621257ef9e54c1bbe5ad8a5f445a1f211c2dcnd# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
ce9621257ef9e54c1bbe5ad8a5f445a1f211c2dcnd# Use is subject to license terms.
ce9621257ef9e54c1bbe5ad8a5f445a1f211c2dcnd#
ce9621257ef9e54c1bbe5ad8a5f445a1f211c2dcnd# uts/intel/nskern/Makefile
cc003103e52ff9d5fe9bed567ef9438613ab4fbfrse#
cc003103e52ff9d5fe9bed567ef9438613ab4fbfrse# This makefile drives the production of the nskern kernel module
cc003103e52ff9d5fe9bed567ef9438613ab4fbfrse#
cc003103e52ff9d5fe9bed567ef9438613ab4fbfrse# intel implementation architecture dependent
70535d6421eb979ac79d8f49d31cd94d75dd8b2fjorton#
5716f9c6daa92dde5f2f9d11ed63f7c9549c223atrawick
5716f9c6daa92dde5f2f9d11ed63f7c9549c223atrawick#
9fb3d1792a78003c60a8f0fdbef30a372b39452esf# Path to the base of the uts directory tree (usually /usr/src/uts).
cc003103e52ff9d5fe9bed567ef9438613ab4fbfrse#
5716f9c6daa92dde5f2f9d11ed63f7c9549c223atrawick#
5716f9c6daa92dde5f2f9d11ed63f7c9549c223atrawickUTSBASE = ../..
5716f9c6daa92dde5f2f9d11ed63f7c9549c223atrawick
5716f9c6daa92dde5f2f9d11ed63f7c9549c223atrawickARCHDIR:sh = cd ..; basename `pwd`
cc003103e52ff9d5fe9bed567ef9438613ab4fbfrse
cc003103e52ff9d5fe9bed567ef9438613ab4fbfrse#
cc003103e52ff9d5fe9bed567ef9438613ab4fbfrse# Define the module and object file sets.
cc003103e52ff9d5fe9bed567ef9438613ab4fbfrse#
cc003103e52ff9d5fe9bed567ef9438613ab4fbfrseMODULE = nskern
cc003103e52ff9d5fe9bed567ef9438613ab4fbfrseOBJECTS = $(NSKERN_OBJS:%=$(OBJS_DIR)/%)
ac0c8366f49659958162b4bfb3d625a77343eda3kbrandLINTS = $(NSKERN_OBJS:%.o=$(LINTS_DIR)/%.ln)
ff4d61f3436ff044e30e05bcf478211e035f7f41sfROOTMODULE = $(USR_DRV_DIR)/$(MODULE)
ff4d61f3436ff044e30e05bcf478211e035f7f41sfINC_PATH += -I$(UTSBASE)/common/avs -I./$(OBJS_DIR)
ff4d61f3436ff044e30e05bcf478211e035f7f41sfINC_PATH += -I$(ROOT)/usr/include
ff4d61f3436ff044e30e05bcf478211e035f7f41sfCONF_SRCDIR = $(UTSBASE)/common/avs/ns/solaris
d7fa37536ec4277aa196a5e1a1a0b548dde3dd3edougm
5fd3ff5ac904371e665d1b0d7df9e2ba8912a12fjorton#
5fd3ff5ac904371e665d1b0d7df9e2ba8912a12fjorton# Include common rules.
5fd3ff5ac904371e665d1b0d7df9e2ba8912a12fjorton#
5fd3ff5ac904371e665d1b0d7df9e2ba8912a12fjortoninclude ../Makefile.$(ARCHDIR)
5fd3ff5ac904371e665d1b0d7df9e2ba8912a12fjortoninclude $(UTSBASE)/common/avs/Makefile.com
5fd3ff5ac904371e665d1b0d7df9e2ba8912a12fjorton
b2474be31e2710d15cb6fc61b9431796d802470bjorton#
5fd3ff5ac904371e665d1b0d7df9e2ba8912a12fjorton# Define targets
b2474be31e2710d15cb6fc61b9431796d802470bjorton#
5fd3ff5ac904371e665d1b0d7df9e2ba8912a12fjortonALL_TARGET = $(BINARY) $(SRC_CONFILE)
5fd3ff5ac904371e665d1b0d7df9e2ba8912a12fjortonLINT_TARGET = $(MODULE).lint
b2474be31e2710d15cb6fc61b9431796d802470bjortonINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
b2474be31e2710d15cb6fc61b9431796d802470bjortonAS_INC_PATH += -I$(DSF_DIR)/$(OBJS_DIR)
b2474be31e2710d15cb6fc61b9431796d802470bjorton
b2474be31e2710d15cb6fc61b9431796d802470bjortonASSYM_H = $(DSF_DIR)/$(OBJS_DIR)/assym.h
5fd3ff5ac904371e665d1b0d7df9e2ba8912a12fjorton
5fd3ff5ac904371e665d1b0d7df9e2ba8912a12fjorton#
5fd3ff5ac904371e665d1b0d7df9e2ba8912a12fjorton# lint pass one enforcement
5fd3ff5ac904371e665d1b0d7df9e2ba8912a12fjorton#
5fd3ff5ac904371e665d1b0d7df9e2ba8912a12fjortonCFLAGS += -v
bab061947bd4a25717eb5adad9e095ab85c28ddajorton
bab061947bd4a25717eb5adad9e095ab85c28ddajorton.KEEP_STATE:
bab061947bd4a25717eb5adad9e095ab85c28ddajorton
bab061947bd4a25717eb5adad9e095ab85c28ddajorton$(OBJS_DIR)/nsc_asm.o: nsc_asm.s
bab061947bd4a25717eb5adad9e095ab85c28ddajorton
bab061947bd4a25717eb5adad9e095ab85c28ddajorton$(BINARY): $(ASSYM_H)
bab061947bd4a25717eb5adad9e095ab85c28ddajorton
bab061947bd4a25717eb5adad9e095ab85c28ddajortondef: $(DEF_DEPS)
bab061947bd4a25717eb5adad9e095ab85c28ddajorton
bab061947bd4a25717eb5adad9e095ab85c28ddajortonall: $(ALL_DEPS)
bab061947bd4a25717eb5adad9e095ab85c28ddajorton
bab061947bd4a25717eb5adad9e095ab85c28ddajortonclean: $(CLEAN_DEPS)
bab061947bd4a25717eb5adad9e095ab85c28ddajorton
5fd3ff5ac904371e665d1b0d7df9e2ba8912a12fjortonclobber: $(CLOBBER_DEPS)
5fd3ff5ac904371e665d1b0d7df9e2ba8912a12fjorton
5fd3ff5ac904371e665d1b0d7df9e2ba8912a12fjortonlint: $(LINT_DEPS)
bab061947bd4a25717eb5adad9e095ab85c28ddajorton
bab061947bd4a25717eb5adad9e095ab85c28ddajortonmodlintlib: $(MODLINTLIB_DEPS)
bab061947bd4a25717eb5adad9e095ab85c28ddajorton
bab061947bd4a25717eb5adad9e095ab85c28ddajortonclean.lint: $(CLEAN_LINT_DEPS)
5fd3ff5ac904371e665d1b0d7df9e2ba8912a12fjorton
5fd3ff5ac904371e665d1b0d7df9e2ba8912a12fjorton
5fd3ff5ac904371e665d1b0d7df9e2ba8912a12fjortoninstall: $(INSTALL_DEPS)
5fd3ff5ac904371e665d1b0d7df9e2ba8912a12fjorton
bab061947bd4a25717eb5adad9e095ab85c28ddajorton#
bab061947bd4a25717eb5adad9e095ab85c28ddajorton# Include common targets.
b2474be31e2710d15cb6fc61b9431796d802470bjorton#
b2474be31e2710d15cb6fc61b9431796d802470bjortoninclude ../Makefile.targ
b2474be31e2710d15cb6fc61b9431796d802470bjorton