Makefile revision bb25c06cca41ca78e5fb87fbb8e81d55beb18c95
b1d234eb75e2804e09d89178a76df39c321db51bBrian Wellington#
b1d234eb75e2804e09d89178a76df39c321db51bBrian Wellington# CDDL HEADER START
40f53fa8d9c6a4fc38c0014495e7a42b08f52481David Lawrence#
b1d234eb75e2804e09d89178a76df39c321db51bBrian Wellington# The contents of this file are subject to the terms of the
b1d234eb75e2804e09d89178a76df39c321db51bBrian Wellington# Common Development and Distribution License (the "License").
b1d234eb75e2804e09d89178a76df39c321db51bBrian Wellington# You may not use this file except in compliance with the License.
40f53fa8d9c6a4fc38c0014495e7a42b08f52481David Lawrence#
15a44745412679c30a6d022733925af70a38b715David Lawrence# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
15a44745412679c30a6d022733925af70a38b715David Lawrence# or http://www.opensolaris.org/os/licensing.
15a44745412679c30a6d022733925af70a38b715David Lawrence# See the License for the specific language governing permissions
15a44745412679c30a6d022733925af70a38b715David Lawrence# and limitations under the License.
15a44745412679c30a6d022733925af70a38b715David Lawrence#
15a44745412679c30a6d022733925af70a38b715David Lawrence# When distributing Covered Code, include this CDDL HEADER in each
15a44745412679c30a6d022733925af70a38b715David Lawrence# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15a44745412679c30a6d022733925af70a38b715David Lawrence# If applicable, add the following below this CDDL HEADER, with the
b1d234eb75e2804e09d89178a76df39c321db51bBrian Wellington# fields enclosed by brackets "[]" replaced with your own identifying
b1d234eb75e2804e09d89178a76df39c321db51bBrian Wellington# information: Portions Copyright [yyyy] [name of copyright owner]
565d0dc22f45e8d81bf6d78073c3753d2820d7c3Brian Wellington#
9c3531d72aeaad6c5f01efe6a1c82023e1379e4dDavid Lawrence# CDDL HEADER END
b1d234eb75e2804e09d89178a76df39c321db51bBrian Wellington#
7efc8c3f692fc3226c00ce8bdc1b90eb06562352David Lawrence#
b1d234eb75e2804e09d89178a76df39c321db51bBrian Wellington# uts/intel/usbkbm/Makefile
c9c1d174134104a9699945875e0922726af63456Brian Wellington# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
565d0dc22f45e8d81bf6d78073c3753d2820d7c3Brian Wellington# Use is subject to license terms.
c9c1d174134104a9699945875e0922726af63456Brian Wellington#
7efc8c3f692fc3226c00ce8bdc1b90eb06562352David Lawrence#ident "%Z%%M% %I% %E% SMI"
c9c1d174134104a9699945875e0922726af63456Brian Wellington#
b1d234eb75e2804e09d89178a76df39c321db51bBrian Wellington# This makefile drives the production of the usbkbm driver kernel module.
7efc8c3f692fc3226c00ce8bdc1b90eb06562352David Lawrence#
7efc8c3f692fc3226c00ce8bdc1b90eb06562352David Lawrence
7efc8c3f692fc3226c00ce8bdc1b90eb06562352David Lawrence#
7efc8c3f692fc3226c00ce8bdc1b90eb06562352David Lawrence# Path to the base of the uts directory tree (usually /usr/src/uts).
7efc8c3f692fc3226c00ce8bdc1b90eb06562352David Lawrence#
7efc8c3f692fc3226c00ce8bdc1b90eb06562352David LawrenceUTSBASE = ../..
7efc8c3f692fc3226c00ce8bdc1b90eb06562352David Lawrence
7efc8c3f692fc3226c00ce8bdc1b90eb06562352David Lawrence#
7efc8c3f692fc3226c00ce8bdc1b90eb06562352David Lawrence# Define the module and object file sets.
7efc8c3f692fc3226c00ce8bdc1b90eb06562352David Lawrence#
7efc8c3f692fc3226c00ce8bdc1b90eb06562352David LawrenceMODULE = usbkbm
7efc8c3f692fc3226c00ce8bdc1b90eb06562352David LawrenceOBJECTS = $(USBKBM_OBJS:%=$(OBJS_DIR)/%)
7efc8c3f692fc3226c00ce8bdc1b90eb06562352David LawrenceLINTS = $(USBKBM_OBJS:%.o=$(LINTS_DIR)/%.ln)
7efc8c3f692fc3226c00ce8bdc1b90eb06562352David LawrenceROOTMODULE = $(ROOT_STRMOD_DIR)/$(MODULE)
7efc8c3f692fc3226c00ce8bdc1b90eb06562352David Lawrence
565d0dc22f45e8d81bf6d78073c3753d2820d7c3Brian Wellington#
565d0dc22f45e8d81bf6d78073c3753d2820d7c3Brian Wellington# Include common rules.
565d0dc22f45e8d81bf6d78073c3753d2820d7c3Brian Wellington#
7efc8c3f692fc3226c00ce8bdc1b90eb06562352David Lawrenceinclude $(UTSBASE)/intel/Makefile.intel
7efc8c3f692fc3226c00ce8bdc1b90eb06562352David Lawrence
7efc8c3f692fc3226c00ce8bdc1b90eb06562352David Lawrence#
79d91e915023ffa5fac1bb2f91f19210bb18407cBrian Wellington# Define targets
3d3e7bce59e3552a821373862a9bf6fc961a347aBrian Wellington#
79d91e915023ffa5fac1bb2f91f19210bb18407cBrian WellingtonALL_TARGET = $(BINARY)
79d91e915023ffa5fac1bb2f91f19210bb18407cBrian WellingtonLINT_TARGET = $(MODULE).lint
79d91e915023ffa5fac1bb2f91f19210bb18407cBrian WellingtonINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
79d91e915023ffa5fac1bb2f91f19210bb18407cBrian Wellington
7efc8c3f692fc3226c00ce8bdc1b90eb06562352David Lawrence#
# Override defaults to build a unique, local modstubs.o.
#
MODSTUBS_DIR = $(OBJS_DIR)
CLEANFILES += $(MODSTUBS_O)
#
# depends on misc/usba
#
LDFLAGS += -dy -Nmisc/usba -Nmisc/kbtrans -Nmisc/hidparser
#
# For now, disable these lint checks; maintainers should endeavor
# to investigate and remove these for maximum lint coverage.
# Please do not carry these forward to new Makefiles.
#
LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW
LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
#
# Default build targets.
#
.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 $(UTSBASE)/intel/Makefile.targ