Makefile revision 03a6687dc6597686cef37c77a1c5cd070217a1d8
ac4e70ff8955669341f435bc0a734a17c01af124Mark Andrews# CDDL HEADER START
6fe48fb46e53ffc37542853a1edb74cb481b7d94Automatic Updater#
229ea4644b3a7d9c7fdaa43888e7f55ba01e2ee3Automatic Updater# The contents of this file are subject to the terms of the
7a42357217528037bdfedcb17eeebfe96ae4266aAutomatic Updater# Common Development and Distribution License (the "License").
1167fc7904c5f0a472f8df207ac46dd52c7f1ec8Automatic Updater# You may not use this file except in compliance with the License.
0c39b3ed9409ecb277d5e32fa763a4e4d6598df8Automatic Updater#
46da3117812814a29432a8d9a9ccf8acdbfdadceAutomatic Updater# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
6fe48fb46e53ffc37542853a1edb74cb481b7d94Automatic Updater# or http://www.opensolaris.org/os/licensing.
0519188c8e1ae76978fc4e0f799620cd36eba07aAutomatic Updater# See the License for the specific language governing permissions
79b273c187a4aa1016a62181983dfdd0521681aeMark Andrews# and limitations under the License.
90ff38a0d8deaf5f9c2aa5916d99b2e572d28738Automatic Updater#
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# When distributing Covered Code, include this CDDL HEADER in each
ac4e70ff8955669341f435bc0a734a17c01af124Mark Andrews# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
6c6a121295b30772cbf3dd75a51fb9d883051a0eAutomatic Updater# If applicable, add the following below this CDDL HEADER, with the
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# fields enclosed by brackets "[]" replaced with your own identifying
9cd5eb6fe0f26d65724b99216cb31dcdd12e4afdAutomatic Updater# information: Portions Copyright [yyyy] [name of copyright owner]
bbde8dc56605130058a1540609264fa109da3b63Automatic Updater#
bbde8dc56605130058a1540609264fa109da3b63Automatic Updater# CDDL HEADER END
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews#
e130ab53e992670e2a2ecf043976ac09f21358d1Automatic Updater#
3cc98b8ecedcbc8465f1cf2740b966b315662430Automatic Updater# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# Use is subject to license terms.
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews#
bbde8dc56605130058a1540609264fa109da3b63Automatic Updater# uts/intel/nskern/Makefile
bbde8dc56605130058a1540609264fa109da3b63Automatic Updater#
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# This makefile drives the production of the nskern kernel module
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater#
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark Andrews# intel implementation architecture dependent
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater#
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater#
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater# Path to the base of the uts directory tree (usually /usr/src/uts).
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson#
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater#
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic UpdaterUTSBASE = ../..
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan HuntARCHDIR:sh = cd ..; basename `pwd`
e130ab53e992670e2a2ecf043976ac09f21358d1Automatic Updater
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater#
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan Hunt# Define the module and object file sets.
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater#
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic UpdaterMODULE = nskern
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic UpdaterOBJECTS = $(NSKERN_OBJS:%=$(OBJS_DIR)/%)
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan HuntLINTS = $(NSKERN_OBJS:%.o=$(LINTS_DIR)/%.ln)
e130ab53e992670e2a2ecf043976ac09f21358d1Automatic UpdaterROOTMODULE = $(USR_DRV_DIR)/$(MODULE)
2d2dc37599979c83495510f8af8d1756753aa2c5Automatic UpdaterINC_PATH += -I$(UTSBASE)/common/avs -I./$(OBJS_DIR)
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan HuntINC_PATH += -I$(ROOT)/usr/include
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic UpdaterCONF_SRCDIR = $(UTSBASE)/common/avs/ns/solaris
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater#
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater# Include common rules.
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater#
cdfc81e048bd34c1d628380247bda6b80a89e20eAutomatic Updaterinclude ../Makefile.$(ARCHDIR)
cdfc81e048bd34c1d628380247bda6b80a89e20eAutomatic Updaterinclude $(UTSBASE)/common/avs/Makefile.com
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater#
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater# Define targets
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater#
eabc9c3c07cd956d3c436bd7614cb162dabdda76Mark AndrewsALL_TARGET = $(BINARY) $(SRC_CONFILE)
eabc9c3c07cd956d3c436bd7614cb162dabdda76Mark AndrewsLINT_TARGET = $(MODULE).lint
eabc9c3c07cd956d3c436bd7614cb162dabdda76Mark AndrewsINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonAS_INC_PATH += -I$(DSF_DIR)/$(OBJS_DIR)
9cd5eb6fe0f26d65724b99216cb31dcdd12e4afdAutomatic Updater
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsASSYM_H = $(DSF_DIR)/$(OBJS_DIR)/assym.h
6fe48fb46e53ffc37542853a1edb74cb481b7d94Automatic Updater
8e9f3b69914ee02a80b87c97b1f8093edb3e9ae0Automatic Updater#
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# lint pass one enforcement
930f6069e5aa157cf6987cdafd412f5757a5a558Automatic Updater#
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsCFLAGS += -v
930f6069e5aa157cf6987cdafd412f5757a5a558Automatic Updater
80faf1588895fd26490f82f95a7a1b771df1c324Automatic Updater.KEEP_STATE:
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews
6fe48fb46e53ffc37542853a1edb74cb481b7d94Automatic Updater$(OBJS_DIR)/nsc_asm.o: nsc_asm.s
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews
930f6069e5aa157cf6987cdafd412f5757a5a558Automatic Updater$(BINARY): $(ASSYM_H)
693c4232dfdffaff672197d4b9fea944c64cf80aAutomatic Updater
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrewsdef: $(DEF_DEPS)
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafssonall: $(ALL_DEPS)
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updaterclean: $(CLEAN_DEPS)
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark Andrews
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updaterclobber: $(CLOBBER_DEPS)
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updaterlint: $(LINT_DEPS)
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafssonmodlintlib: $(MODLINTLIB_DEPS)
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater
dd65eb1efb40b1c47d57963192bfc54873b219beAutomatic Updaterclean.lint: $(CLEAN_LINT_DEPS)
dd65eb1efb40b1c47d57963192bfc54873b219beAutomatic Updater
78f3ed4bc2fcd3d270bfd599804f3b27a1db4d91Mark Andrews
11af78f7dc35741bdab68dbab11b03daab005b28Automatic Updaterinstall: $(INSTALL_DEPS)
11af78f7dc35741bdab68dbab11b03daab005b28Automatic Updater
78f3ed4bc2fcd3d270bfd599804f3b27a1db4d91Mark Andrews#
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# Include common targets.
e130ab53e992670e2a2ecf043976ac09f21358d1Automatic Updater#
8ccd7da886e93cd490fcb6f4c4e98a6514f35820Automatic Updaterinclude ../Makefile.targ
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont