Makefile revision bf56214c0556fa6864189c826d39dbe156bb22a0
59602f2a7c4e4809941583bed3e94cd26e628f1aTinderbox User# CDDL HEADER START
5affecff6e148a8e124d03f5dbac0da11e30dcc5Tinderbox User# The contents of this file are subject to the terms of the
19558a04decde0e7261d489d92d04ad88104217bTinderbox User# Common Development and Distribution License (the "License").
827f8cccb5280f4da66c46186e792d1cb9d73503Mark Andrews# You may not use this file except in compliance with the License.
969eaf7df8ac651946f76b6631ff5db568c11ef6Tinderbox User# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
f4ee48be3994797a8332b86c101db4d7b54799ceTinderbox User# See the License for the specific language governing permissions
a2c370ca12bb0360ff7e969474ead3f788c65fffTinderbox User# and limitations under the License.
e5a6871cd0635ecdb2bf792316a2d8c53206f4b2Tinderbox User# When distributing Covered Code, include this CDDL HEADER in each
950d203b64f512b85fcc093ee1e9e3e531a1aea3Tinderbox User# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
b886b04d8d2b085cbf3e1bf4442dee87f43ba5e4Tinderbox User# If applicable, add the following below this CDDL HEADER, with the
03ebc228ee3725738b067b6bd7082a9a731822a1Tinderbox User# fields enclosed by brackets "[]" replaced with your own identifying
3759f10fc543747668b1ca4b4671f35b0dea8445Francis Dupont# information: Portions Copyright [yyyy] [name of copyright owner]
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# CDDL HEADER END
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
3759f10fc543747668b1ca4b4671f35b0dea8445Francis Dupont# Use is subject to license terms.
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews#ident "%Z%%M% %I% %E% SMI"
e813f036c8251b6d9d2a72fa84f80c2c9d2795afMark Andrews# This makefile drives the production of the Keyspan USB Serial
30370d905e9be3be7d9b947fd432bacecbb13bb9Evan Hunt# Adapter driver.
9ecb5d33470ebfb3719a1b8d56bcefdf4b27f7b2Tinderbox User# Path to the base of the uts directory tree (usually /usr/src/uts).
9ecb5d33470ebfb3719a1b8d56bcefdf4b27f7b2Tinderbox User# Define the module and object file sets.
e813f036c8251b6d9d2a72fa84f80c2c9d2795afMark AndrewsOBJECTS = $(USBSER_KEYSPAN_OBJS:%=$(OBJS_DIR)/%)
30370d905e9be3be7d9b947fd432bacecbb13bb9Evan HuntLINTS = $(USBSER_KEYSPAN_OBJS:%.o=$(LINTS_DIR)/%.ln)
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan Hunt# Include common rules.
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan HuntLDFLAGS += -dy -Nmisc/usba -Nmisc/usbser -Nmisc/usbs49_fw
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan Hunt# Define targets
e813f036c8251b6d9d2a72fa84f80c2c9d2795afMark Andrews# For now, disable these lint checks; maintainers should endeavor
30370d905e9be3be7d9b947fd432bacecbb13bb9Evan Hunt# to investigate and remove these for maximum lint coverage.
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews# Please do not carry these forward to new Makefiles.
7cc0a5d21ef046bfd630c4769943d896a7d7472cTinderbox User# Include common targets.
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# Defines for local commands.
91216cff91b34c9ff6e846dc23f248219cafe660Andreas GustafssonUSBSER_FILES = $(USBSER_OBJS:%.o=../usbser/%.ll)
30370d905e9be3be7d9b947fd432bacecbb13bb9Evan Hunt$(WARLOCK_OK): warlock_with_usba warlock_with_usbser
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson%.ll: $(UTSBASE)/common/io/usb/clients/usbser/usbser_keyspan/%.c
30370d905e9be3be7d9b947fd432bacecbb13bb9Evan Huntwarlock_with_usbser: $(WARLOCK_OUT) usbser_files warlock_ddi.files \
9ecb5d33470ebfb3719a1b8d56bcefdf4b27f7b2Tinderbox User $(WARLOCK) -c $(WARLOCK_CMD) $(WARLOCK_OUT) \
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson $(USBSER_FILES) -l ../warlock/ddi_dki_impl.ll
e813f036c8251b6d9d2a72fa84f80c2c9d2795afMark Andrewswarlock_with_usba: $(WARLOCK_OUT) usbser_files \
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews usba_files ohci_files uhci_files ehci_files warlock_ddi.files
28a5dd720187fddb16055a0f64b63a7b66f29f64Mark Andrews $(WARLOCK) -c $(WLCMD_DIR)/usbser_keyspan_with_usba.wlcmd \