Makefile revision 4ebb14b236958cfe1ef4ff3b7a50216d9e51f997
ac4e70ff8955669341f435bc0a734a17c01af124Mark Andrews#
229ea4644b3a7d9c7fdaa43888e7f55ba01e2ee3Automatic Updater# CDDL HEADER START
229ea4644b3a7d9c7fdaa43888e7f55ba01e2ee3Automatic Updater#
1167fc7904c5f0a472f8df207ac46dd52c7f1ec8Automatic Updater# The contents of this file are subject to the terms of the
0c39b3ed9409ecb277d5e32fa763a4e4d6598df8Automatic Updater# Common Development and Distribution License (the "License").
46da3117812814a29432a8d9a9ccf8acdbfdadceAutomatic Updater# You may not use this file except in compliance with the License.
2bb3422dc683c013db7042f5736240de6b86f182Automatic Updater#
cd0aa2d941d1438fabb5337f1f38c49478edf71dAutomatic Updater# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
90ff38a0d8deaf5f9c2aa5916d99b2e572d28738Automatic Updater# or http://www.opensolaris.org/os/licensing.
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# See the License for the specific language governing permissions
ac4e70ff8955669341f435bc0a734a17c01af124Mark Andrews# and limitations under the License.
6c6a121295b30772cbf3dd75a51fb9d883051a0eAutomatic Updater#
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# When distributing Covered Code, include this CDDL HEADER in each
9cd5eb6fe0f26d65724b99216cb31dcdd12e4afdAutomatic Updater# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
e171a4137c6ba348957e61b7c4c3541493c0da02Automatic Updater# If applicable, add the following below this CDDL HEADER, with the
e171a4137c6ba348957e61b7c4c3541493c0da02Automatic Updater# fields enclosed by brackets "[]" replaced with your own identifying
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# information: Portions Copyright [yyyy] [name of copyright owner]
58be84825d7f5de30e50eb7206b37227ecd8055bAutomatic Updater#
3cc98b8ecedcbc8465f1cf2740b966b315662430Automatic Updater# CDDL HEADER END
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews#
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews#
e171a4137c6ba348957e61b7c4c3541493c0da02Automatic Updater# uts/sparc/scsi/Makefile
831f79c4310a7d38fc3475ccfff531b2b2535641Automatic Updater#
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater# Use is subject to license terms.
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark Andrews#
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater#ident "%Z%%M% %I% %E% SMI"
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson#
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater# This makefile drives the production of the scsi kernel module.
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater#
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson# sparc architecture dependent
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater#
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater#
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan Hunt# Path to the base of the uts directory tree (usually /usr/src/uts).
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater#
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic UpdaterUTSBASE = ../..
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan Hunt
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater#
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater# Define the module and object file sets.
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater#
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan HuntMODULE = scsi
2d2dc37599979c83495510f8af8d1756753aa2c5Automatic UpdaterOBJECTS = $(SCSI_OBJS:%=$(OBJS_DIR)/%)
2d2dc37599979c83495510f8af8d1756753aa2c5Automatic UpdaterLINTS = $(SCSI_OBJS:%.o=$(LINTS_DIR)/%.ln)
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan HuntROOTMODULE = $(ROOT_MISC_DIR)/$(MODULE)
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic UpdaterWARLOCK_OUT = $(SCSI_OBJS:%.o=%.ll)
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic UpdaterWARLOCK_OK = $(MODULE).ok
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater#
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater# Include common rules.
cdfc81e048bd34c1d628380247bda6b80a89e20eAutomatic Updater#
cdfc81e048bd34c1d628380247bda6b80a89e20eAutomatic Updaterinclude $(UTSBASE)/sparc/Makefile.sparc
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater#
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater# Define targets
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater#
eabc9c3c07cd956d3c436bd7614cb162dabdda76Mark AndrewsALL_TARGET = $(BINARY)
eabc9c3c07cd956d3c436bd7614cb162dabdda76Mark AndrewsLINT_TARGET = $(MODULE).lint
eabc9c3c07cd956d3c436bd7614cb162dabdda76Mark AndrewsINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington
9cd5eb6fe0f26d65724b99216cb31dcdd12e4afdAutomatic Updater#
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# lint pass one enforcement
129090f0f6f91753b4a085ab635e28549fd018adAutomatic Updater#
129090f0f6f91753b4a085ab635e28549fd018adAutomatic UpdaterCFLAGS += $(CCVERBOSE)
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews
d7a77415c13bb2fc2d1acb857486d97e4466e3b8Automatic Updater#
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# For now, disable these lint checks; maintainers should endeavor
e311702a890f6a33181b0211ff38b571f398a97aAutomatic Updater# to investigate and remove these for maximum lint coverage.
80faf1588895fd26490f82f95a7a1b771df1c324Automatic Updater# Please do not carry these forward to new Makefiles.
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews#
1a06700908f5a1d9f4a8d51285a0fd971e2f9117Automatic UpdaterLINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsLINTTAGS += -erroff=E_PTRDIFF_OVERFLOW
44e3b272904bfd85556771d30cf1bc6fa539dd03Automatic UpdaterLINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
693c4232dfdffaff672197d4b9fea944c64cf80aAutomatic Updater
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews#
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater# Default build targets.
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson#
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater.KEEP_STATE:
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark Andrewsdef: $(DEF_DEPS)
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafssonall: $(ALL_DEPS)
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updaterclean: $(CLEAN_DEPS)
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson $(RM) $(WARLOCK_OUT) $(WARLOCK_OK)
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater
dd65eb1efb40b1c47d57963192bfc54873b219beAutomatic Updaterclobber: $(CLOBBER_DEPS)
dd65eb1efb40b1c47d57963192bfc54873b219beAutomatic Updater $(RM) $(WARLOCK_OUT) $(WARLOCK_OK)
78f3ed4bc2fcd3d270bfd599804f3b27a1db4d91Mark Andrews
b1265b5a06df36d490d4bdf54284fb133a1f5a84Automatic Updaterlint: $(LINT_DEPS)
95cfad51a3f71246d263af79a7861a6821f7a0beAutomatic Updater
78f3ed4bc2fcd3d270bfd599804f3b27a1db4d91Mark Andrewsmodlintlib: $(MODLINTLIB_DEPS)
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont
0c39b3ed9409ecb277d5e32fa763a4e4d6598df8Automatic Updaterclean.lint: $(CLEAN_LINT_DEPS)
8ccd7da886e93cd490fcb6f4c4e98a6514f35820Automatic Updater
2a31bd531072824ef252c18303859d6af7451b00Francis Dupontinstall: $(INSTALL_DEPS)
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews
f9119ad8f6114b2255e7545bf5cd187f4db0a89bAutomatic Updater#
e23256e740b238bddb4ba41ffac5f81a01c92245Automatic Updater# Include common targets.
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews#
78f3ed4bc2fcd3d270bfd599804f3b27a1db4d91Mark Andrewsinclude $(UTSBASE)/sparc/Makefile.targ
08e3b6797706a13054bad749dea04e94b514b8e7Automatic Updater
dd65eb1efb40b1c47d57963192bfc54873b219beAutomatic Updater#
78f3ed4bc2fcd3d270bfd599804f3b27a1db4d91Mark Andrews# Defines for local commands.
78f3ed4bc2fcd3d270bfd599804f3b27a1db4d91Mark Andrews#
b29e5c56eb74a6de1a84c29879afc90ffc6b1436Automatic UpdaterWLCC = wlcc
418cc932318b1d67f88a36904d88d8a5a0a2ba09Automatic UpdaterTOUCH = touch
78f3ed4bc2fcd3d270bfd599804f3b27a1db4d91Mark Andrews
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews#
0977f3f39ef6728516be7976452b9122c8f5607aAutomatic Updater# Warlock targets
ae7e54b14c946e0984c191554db9abb4893f9349Automatic Updater#
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrewswarlock: $(WARLOCK_OK)
0c39b3ed9409ecb277d5e32fa763a4e4d6598df8Automatic Updater
0c39b3ed9409ecb277d5e32fa763a4e4d6598df8Automatic Updater$(WARLOCK_OK): $(WARLOCK_OUT)
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater $(TOUCH) $@
cdfc81e048bd34c1d628380247bda6b80a89e20eAutomatic Updater
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater%.ll: $(UTSBASE)/common/io/scsi/impl/%.c
fe80a4909bf62b602feaf246866e9d29f7654194Automatic Updater $(WLCC) $(CPPFLAGS) -DDEBUG -o $@ $<
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater%.ll: $(UTSBASE)/common/io/scsi/conf/%.c
fe80a4909bf62b602feaf246866e9d29f7654194Automatic Updater $(WLCC) $(CPPFLAGS) -DDEBUG -o $@ $<
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater