Makefile revision 4ebb14b236958cfe1ef4ff3b7a50216d9e51f997
88447a05f537aabe9a1bc3d5313f22581ec992a7Garrett D'Amore# CDDL HEADER START
88447a05f537aabe9a1bc3d5313f22581ec992a7Garrett D'Amore# The contents of this file are subject to the terms of the
88447a05f537aabe9a1bc3d5313f22581ec992a7Garrett D'Amore# Common Development and Distribution License (the "License").
88447a05f537aabe9a1bc3d5313f22581ec992a7Garrett D'Amore# You may not use this file except in compliance with the License.
88447a05f537aabe9a1bc3d5313f22581ec992a7Garrett D'Amore# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
88447a05f537aabe9a1bc3d5313f22581ec992a7Garrett D'Amore# or http://www.opensolaris.org/os/licensing.
88447a05f537aabe9a1bc3d5313f22581ec992a7Garrett D'Amore# See the License for the specific language governing permissions
88447a05f537aabe9a1bc3d5313f22581ec992a7Garrett D'Amore# and limitations under the License.
88447a05f537aabe9a1bc3d5313f22581ec992a7Garrett D'Amore# When distributing Covered Code, include this CDDL HEADER in each
88447a05f537aabe9a1bc3d5313f22581ec992a7Garrett D'Amore# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
88447a05f537aabe9a1bc3d5313f22581ec992a7Garrett D'Amore# If applicable, add the following below this CDDL HEADER, with the
88447a05f537aabe9a1bc3d5313f22581ec992a7Garrett D'Amore# fields enclosed by brackets "[]" replaced with your own identifying
88447a05f537aabe9a1bc3d5313f22581ec992a7Garrett D'Amore# information: Portions Copyright [yyyy] [name of copyright owner]
88447a05f537aabe9a1bc3d5313f22581ec992a7Garrett D'Amore# CDDL HEADER END
a33ad26ef1f3b7a3fcf2fad564e6bd3798fdcbaeZhao Edgar Liu - Sun Microsystems# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
88447a05f537aabe9a1bc3d5313f22581ec992a7Garrett D'Amore# Use is subject to license terms.
88447a05f537aabe9a1bc3d5313f22581ec992a7Garrett D'Amore#ident "%Z%%M% %I% %E% SMI"
88447a05f537aabe9a1bc3d5313f22581ec992a7Garrett D'Amore# This makefile drives the production of the hid kernel driver.
88447a05f537aabe9a1bc3d5313f22581ec992a7Garrett D'Amore# sparc architecture dependent
88447a05f537aabe9a1bc3d5313f22581ec992a7Garrett D'Amore# Path to the base of the uts directory tree (usually /usr/src/uts).
88447a05f537aabe9a1bc3d5313f22581ec992a7Garrett D'Amore# Define the module and object file sets.
88447a05f537aabe9a1bc3d5313f22581ec992a7Garrett D'Amore# Include common rules.
88447a05f537aabe9a1bc3d5313f22581ec992a7Garrett D'Amore# lint pass one enforcement
88447a05f537aabe9a1bc3d5313f22581ec992a7Garrett D'AmoreLDFLAGS += -dy -Nmisc/usba -Nmisc/hidparser -Ndacf/consconfig_dacf
88447a05f537aabe9a1bc3d5313f22581ec992a7Garrett D'Amore# Define targets
88447a05f537aabe9a1bc3d5313f22581ec992a7Garrett D'Amore# For now, disable these lint checks; maintainers should endeavor
88447a05f537aabe9a1bc3d5313f22581ec992a7Garrett D'Amore# to investigate and remove these for maximum lint coverage.
88447a05f537aabe9a1bc3d5313f22581ec992a7Garrett D'Amore# Please do not carry these forward to new Makefiles.
88447a05f537aabe9a1bc3d5313f22581ec992a7Garrett D'AmoreLINTTAGS += -erroff=E_SUPPRESSION_DIRECTIVE_UNUSED
88447a05f537aabe9a1bc3d5313f22581ec992a7Garrett D'Amore# Include common targets.
88447a05f537aabe9a1bc3d5313f22581ec992a7Garrett D'Amore# Defines for local commands.
88447a05f537aabe9a1bc3d5313f22581ec992a7Garrett D'Amore# lock_lint rules
a33ad26ef1f3b7a3fcf2fad564e6bd3798fdcbaeZhao Edgar Liu - Sun Microsystems cd $(WLCMD_DIR); $(TEST) -f $@ || $(SCCS) get $@
88447a05f537aabe9a1bc3d5313f22581ec992a7Garrett D'Amore$(WARLOCK_OK): $(WARLOCK_OUT) hid.wlcmd warlock_ddi.files
88447a05f537aabe9a1bc3d5313f22581ec992a7Garrett D'Amore $(WARLOCK) -c $(WLCMD_DIR)/hid.wlcmd $(WARLOCK_OUT) \
a33ad26ef1f3b7a3fcf2fad564e6bd3798fdcbaeZhao Edgar Liu - Sun Microsystems -l ../warlock/ddi_dki_impl.ll
88447a05f537aabe9a1bc3d5313f22581ec992a7Garrett D'Amore%.ll: $(UTSBASE)/common/io/usb/clients/hid/%.c \
88447a05f537aabe9a1bc3d5313f22581ec992a7Garrett D'Amore $(UTSBASE)/common/sys/usb/clients/hid/hidvar.h
a33ad26ef1f3b7a3fcf2fad564e6bd3798fdcbaeZhao Edgar Liu - Sun Microsystems $(WLCC) $(CPPFLAGS) -DDEBUG -o $@ $<
88447a05f537aabe9a1bc3d5313f22581ec992a7Garrett D'Amorewarlock_with_usba: hid_with_usba.wlcmd $(WARLOCK_OUT) usba_files \
88447a05f537aabe9a1bc3d5313f22581ec992a7Garrett D'Amore ohci_files ehci_files uhci_files warlock_ddi.files