Makefile revision bb25c06cca41ca78e5fb87fbb8e81d55beb18c95
45312f52ff3a3d4c137447be4c7556500c2f8bf2Timo Sirainen#
d48a2f3288eba53dd10d9d8029ec583d78a977e0Timo Sirainen# CDDL HEADER START
d48a2f3288eba53dd10d9d8029ec583d78a977e0Timo Sirainen#
16f816d3f3c32ae3351834253f52ddd0212bcbf3Timo Sirainen# The contents of this file are subject to the terms of the
d48a2f3288eba53dd10d9d8029ec583d78a977e0Timo Sirainen# Common Development and Distribution License (the "License").
d48a2f3288eba53dd10d9d8029ec583d78a977e0Timo Sirainen# You may not use this file except in compliance with the License.
d48a2f3288eba53dd10d9d8029ec583d78a977e0Timo Sirainen#
d48a2f3288eba53dd10d9d8029ec583d78a977e0Timo Sirainen# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
85144b5f0bc763de14c7d87291a90ef74ac241a2Timo Sirainen# or http://www.opensolaris.org/os/licensing.
d48a2f3288eba53dd10d9d8029ec583d78a977e0Timo Sirainen# See the License for the specific language governing permissions
d48a2f3288eba53dd10d9d8029ec583d78a977e0Timo Sirainen# and limitations under the License.
d48a2f3288eba53dd10d9d8029ec583d78a977e0Timo Sirainen#
137c1851d63c6575ebab35d261380423c4cf2b47Timo Sirainen# When distributing Covered Code, include this CDDL HEADER in each
137c1851d63c6575ebab35d261380423c4cf2b47Timo Sirainen# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
137c1851d63c6575ebab35d261380423c4cf2b47Timo Sirainen# If applicable, add the following below this CDDL HEADER, with the
137c1851d63c6575ebab35d261380423c4cf2b47Timo Sirainen# fields enclosed by brackets "[]" replaced with your own identifying
2a6af811ea3de3cf9e2f15e446674dd21b0705f3Timo Sirainen# information: Portions Copyright [yyyy] [name of copyright owner]
85144b5f0bc763de14c7d87291a90ef74ac241a2Timo Sirainen#
2a6af811ea3de3cf9e2f15e446674dd21b0705f3Timo Sirainen# CDDL HEADER END
2a6af811ea3de3cf9e2f15e446674dd21b0705f3Timo Sirainen#
137c1851d63c6575ebab35d261380423c4cf2b47Timo Sirainen#
137c1851d63c6575ebab35d261380423c4cf2b47Timo Sirainen# uts/intel/usbms/Makefile
137c1851d63c6575ebab35d261380423c4cf2b47Timo Sirainen# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
137c1851d63c6575ebab35d261380423c4cf2b47Timo Sirainen# Use is subject to license terms.
137c1851d63c6575ebab35d261380423c4cf2b47Timo Sirainen#
d48a2f3288eba53dd10d9d8029ec583d78a977e0Timo Sirainen#ident "%Z%%M% %I% %E% SMI"
d48a2f3288eba53dd10d9d8029ec583d78a977e0Timo Sirainen#
d48a2f3288eba53dd10d9d8029ec583d78a977e0Timo Sirainen# This makefile drives the production of the usbms driver kernel module.
85144b5f0bc763de14c7d87291a90ef74ac241a2Timo Sirainen#
d48a2f3288eba53dd10d9d8029ec583d78a977e0Timo Sirainen
d48a2f3288eba53dd10d9d8029ec583d78a977e0Timo Sirainen#
137c1851d63c6575ebab35d261380423c4cf2b47Timo Sirainen# Path to the base of the uts directory tree (usually /usr/src/uts).
137c1851d63c6575ebab35d261380423c4cf2b47Timo Sirainen#
d48a2f3288eba53dd10d9d8029ec583d78a977e0Timo SirainenUTSBASE = ../..
137c1851d63c6575ebab35d261380423c4cf2b47Timo Sirainen
137c1851d63c6575ebab35d261380423c4cf2b47Timo Sirainen#
d48a2f3288eba53dd10d9d8029ec583d78a977e0Timo Sirainen# Define the module and object file sets.
d48a2f3288eba53dd10d9d8029ec583d78a977e0Timo Sirainen#
d48a2f3288eba53dd10d9d8029ec583d78a977e0Timo SirainenMODULE = usbms
d48a2f3288eba53dd10d9d8029ec583d78a977e0Timo SirainenOBJECTS = $(USBMS_OBJS:%=$(OBJS_DIR)/%)
d48a2f3288eba53dd10d9d8029ec583d78a977e0Timo SirainenLINTS = $(USBMS_OBJS:%.o=$(LINTS_DIR)/%.ln)
db87d16551d1081ada01f787ea21aa3ed1402c31Timo SirainenROOTMODULE = $(ROOT_STRMOD_DIR)/$(MODULE)
d48a2f3288eba53dd10d9d8029ec583d78a977e0Timo Sirainen
85144b5f0bc763de14c7d87291a90ef74ac241a2Timo Sirainen#
85144b5f0bc763de14c7d87291a90ef74ac241a2Timo Sirainen# Include common rules.
d48a2f3288eba53dd10d9d8029ec583d78a977e0Timo Sirainen#
85144b5f0bc763de14c7d87291a90ef74ac241a2Timo Siraineninclude $(UTSBASE)/intel/Makefile.intel
85144b5f0bc763de14c7d87291a90ef74ac241a2Timo Sirainen
85144b5f0bc763de14c7d87291a90ef74ac241a2Timo Sirainen#
85144b5f0bc763de14c7d87291a90ef74ac241a2Timo Sirainen# Define targets
85144b5f0bc763de14c7d87291a90ef74ac241a2Timo Sirainen#
d67c6dc68cdb90b53434a25ead1590650e4d84e7Timo SirainenALL_TARGET = $(BINARY)
85144b5f0bc763de14c7d87291a90ef74ac241a2Timo SirainenLINT_TARGET = $(MODULE).lint
85144b5f0bc763de14c7d87291a90ef74ac241a2Timo SirainenINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
85144b5f0bc763de14c7d87291a90ef74ac241a2Timo Sirainen
85144b5f0bc763de14c7d87291a90ef74ac241a2Timo Sirainen#
85144b5f0bc763de14c7d87291a90ef74ac241a2Timo Sirainen# Override defaults to build a unique, local modstubs.o.
85144b5f0bc763de14c7d87291a90ef74ac241a2Timo Sirainen#
137c1851d63c6575ebab35d261380423c4cf2b47Timo SirainenMODSTUBS_DIR = $(OBJS_DIR)
2a6af811ea3de3cf9e2f15e446674dd21b0705f3Timo SirainenCLEANFILES += $(MODSTUBS_O)
137c1851d63c6575ebab35d261380423c4cf2b47Timo Sirainen
137c1851d63c6575ebab35d261380423c4cf2b47Timo Sirainen#
2a6af811ea3de3cf9e2f15e446674dd21b0705f3Timo Sirainen# depends on misc/usba
85144b5f0bc763de14c7d87291a90ef74ac241a2Timo Sirainen#
137c1851d63c6575ebab35d261380423c4cf2b47Timo SirainenLDFLAGS += -dy -Nmisc/usba -Nmisc/hidparser
137c1851d63c6575ebab35d261380423c4cf2b47Timo Sirainen
137c1851d63c6575ebab35d261380423c4cf2b47Timo Sirainen#
85144b5f0bc763de14c7d87291a90ef74ac241a2Timo Sirainen# For now, disable these lint checks; maintainers should endeavor
137c1851d63c6575ebab35d261380423c4cf2b47Timo Sirainen# to investigate and remove these for maximum lint coverage.
0d0451206a91e9f96e522075dce28a89adc2325dTimo Sirainen# Please do not carry these forward to new Makefiles.
137c1851d63c6575ebab35d261380423c4cf2b47Timo Sirainen#
137c1851d63c6575ebab35d261380423c4cf2b47Timo SirainenLINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
137c1851d63c6575ebab35d261380423c4cf2b47Timo SirainenLINTTAGS += -erroff=E_PTRDIFF_OVERFLOW
0d0451206a91e9f96e522075dce28a89adc2325dTimo SirainenLINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
137c1851d63c6575ebab35d261380423c4cf2b47Timo Sirainen
137c1851d63c6575ebab35d261380423c4cf2b47Timo Sirainen#
137c1851d63c6575ebab35d261380423c4cf2b47Timo Sirainen# Default build targets.
41e09cca158ab614961e03deac60f12a58235cd3Timo Sirainen#
41e09cca158ab614961e03deac60f12a58235cd3Timo Sirainen.KEEP_STATE:
137c1851d63c6575ebab35d261380423c4cf2b47Timo Sirainen
4b231ca0bbe3b536acbd350101e183441ce0247aTimo Sirainendef: $(DEF_DEPS)
0d0451206a91e9f96e522075dce28a89adc2325dTimo Sirainen
137c1851d63c6575ebab35d261380423c4cf2b47Timo Sirainenall: $(ALL_DEPS)
137c1851d63c6575ebab35d261380423c4cf2b47Timo Sirainen
137c1851d63c6575ebab35d261380423c4cf2b47Timo Sirainenclean: $(CLEAN_DEPS)
0d0451206a91e9f96e522075dce28a89adc2325dTimo Sirainen
0d0451206a91e9f96e522075dce28a89adc2325dTimo Sirainenclobber: $(CLOBBER_DEPS)
0d0451206a91e9f96e522075dce28a89adc2325dTimo Sirainen
137c1851d63c6575ebab35d261380423c4cf2b47Timo Sirainenlint: $(LINT_DEPS)
25c22e54d1071d120641e9eecd0023e7373e65ffTimo Sirainen
25c22e54d1071d120641e9eecd0023e7373e65ffTimo Sirainenmodlintlib: $(MODLINTLIB_DEPS)
0d0451206a91e9f96e522075dce28a89adc2325dTimo Sirainen
d48a2f3288eba53dd10d9d8029ec583d78a977e0Timo Sirainenclean.lint: $(CLEAN_LINT_DEPS)
d48a2f3288eba53dd10d9d8029ec583d78a977e0Timo Sirainen
d48a2f3288eba53dd10d9d8029ec583d78a977e0Timo Siraineninstall: $(INSTALL_DEPS)
80fc743146da5130de34174cdaad2576f103723fTimo Sirainen
137c1851d63c6575ebab35d261380423c4cf2b47Timo Sirainen#
137c1851d63c6575ebab35d261380423c4cf2b47Timo Sirainen# Include common targets.
137c1851d63c6575ebab35d261380423c4cf2b47Timo Sirainen#
137c1851d63c6575ebab35d261380423c4cf2b47Timo Siraineninclude $(UTSBASE)/intel/Makefile.targ
6f90ce01176bd920609d9d12e6419b9ba27c1359Timo Sirainen
6f90ce01176bd920609d9d12e6419b9ba27c1359Timo Sirainen