Makefile revision bb25c06cca41ca78e5fb87fbb8e81d55beb18c95
bc6f4c1c4c1b739fd06d2de05b77b9d08c4d8a5aTinderbox User# CDDL HEADER START
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# The contents of this file are subject to the terms of the
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# Common Development and Distribution License (the "License").
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# You may not use this file except in compliance with the License.
2eeb74d1cf5355dd98f6d507a10086e16bb08c4bTinderbox User# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
83a28ca274521e15086fc39febde507bcc4e145eMark Andrews# See the License for the specific language governing permissions
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# and limitations under the License.
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# When distributing Covered Code, include this CDDL HEADER in each
a631b30b1ddd8b2ea780371d0d99ba1c05bc7e42Francis Dupont# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# If applicable, add the following below this CDDL HEADER, with the
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# fields enclosed by brackets "[]" replaced with your own identifying
a631b30b1ddd8b2ea780371d0d99ba1c05bc7e42Francis Dupont# information: Portions Copyright [yyyy] [name of copyright owner]
a631b30b1ddd8b2ea780371d0d99ba1c05bc7e42Francis Dupont# CDDL HEADER END
a631b30b1ddd8b2ea780371d0d99ba1c05bc7e42Francis Dupont# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
a631b30b1ddd8b2ea780371d0d99ba1c05bc7e42Francis Dupont# Use is subject to license terms.
a631b30b1ddd8b2ea780371d0d99ba1c05bc7e42Francis Dupont#ident "%Z%%M% %I% %E% SMI"
a631b30b1ddd8b2ea780371d0d99ba1c05bc7e42Francis Dupont# This makefile drives the production of the Keyspan USB Serial
bf0266f286c9350f6579d03cc74429433d8e6381Tinderbox User# Adapter driver.
19c7b1a0293498a3e36692c59646ed6e15ffc8d0Tinderbox User# Path to the base of the uts directory tree (usually /usr/src/uts).
a631b30b1ddd8b2ea780371d0d99ba1c05bc7e42Francis Dupont# Define the module and object file sets.
a631b30b1ddd8b2ea780371d0d99ba1c05bc7e42Francis DupontLINTS = $(USBSER_KEYSPAN_OBJS:%.o=$(LINTS_DIR)/%.ln)
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# Include common rules.
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# lint pass one enforcement
a631b30b1ddd8b2ea780371d0d99ba1c05bc7e42Francis DupontLDFLAGS += -dy -Nmisc/usba -Nmisc/usbser -Nmisc/usbs49_fw
a631b30b1ddd8b2ea780371d0d99ba1c05bc7e42Francis Dupont# Define targets
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# For now, disable these lint checks; maintainers should endeavor
30eec077db2bdcb6f2a0dc388a3cdde2ede75ec1Mark Andrews# to investigate and remove these for maximum lint coverage.
a631b30b1ddd8b2ea780371d0d99ba1c05bc7e42Francis Dupont# Please do not carry these forward to new Makefiles.
a631b30b1ddd8b2ea780371d0d99ba1c05bc7e42Francis Dupont# Include common targets.
ba751492fcc4f161a18b983d4f018a1a52938cb9Evan Hunt# Defines for local commands.
f89a9bcf1c02b9b350b8d29e47b48fdc0d334d2aFrancis DupontWARLOCK_OUT = usbser_keyspan.ll keyspan_dsd.ll \
a631b30b1ddd8b2ea780371d0d99ba1c05bc7e42Francis DupontUSBSER_FILES = $(USBSER_OBJS:%.o=../usbser/%.ll)
a631b30b1ddd8b2ea780371d0d99ba1c05bc7e42Francis Dupont%.ll: $(UTSBASE)/common/io/usb/clients/usbser/usbser_keyspan/%.c
ba751492fcc4f161a18b983d4f018a1a52938cb9Evan Huntwarlock_with_usbser: $(WARLOCK_OUT) usbser_files warlock_ddi.files
f89a9bcf1c02b9b350b8d29e47b48fdc0d334d2aFrancis Dupont $(USBSER_FILES) -l ../warlock/ddi_dki_impl.ll
ba751492fcc4f161a18b983d4f018a1a52938cb9Evan Huntwarlock_with_usba: $(WARLOCK_CMD) $(WARLOCK_OUT) usbser_files \
f89a9bcf1c02b9b350b8d29e47b48fdc0d334d2aFrancis Dupont usba_files ohci_files uhci_files ehci_files warlock_ddi.files
f89a9bcf1c02b9b350b8d29e47b48fdc0d334d2aFrancis Dupont $(WARLOCK) -c usbser_keyspan_with_usba.wlcmd \