Makefile revision 489b7c4ab76ae8df137fbfcc2214f7baa52883a0
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# CDDL HEADER START
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# The contents of this file are subject to the terms of the
5347c0fcb04eaea19d9f39795646239f487c6207Tinderbox User# Common Development and Distribution License (the "License").
5347c0fcb04eaea19d9f39795646239f487c6207Tinderbox User# You may not use this file except in compliance with the License.
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# See the License for the specific language governing permissions
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# and limitations under the License.
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# When distributing Covered Code, include this CDDL HEADER in each
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# If applicable, add the following below this CDDL HEADER, with the
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# fields enclosed by brackets "[]" replaced with your own identifying
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User# information: Portions Copyright [yyyy] [name of copyright owner]
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User# CDDL HEADER END
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User# Use is subject to license terms.
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User# This makefile drives the production of the usbvc driver kernel module.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Path to the base of the uts directory tree (usually /usr/src/uts).
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# Define the module and object file sets.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Include common rules.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Define targets
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Override defaults to build a unique, local modstubs.o.
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User# Disable this because it is necessary for this driver
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User# and it is surely safe
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User# Default build targets.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Include common targets.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Defines for local commands.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# lock_lint rules
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserUSBA_FILES = $(USBA_WITHOUT_WUSB_OBJS:%.o=../usba/%.ll)
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User$(WARLOCK_OK): $(WARLOCK_OUT) $(WLCMD_DIR)/usbvc.wlcmd warlock_ddi.files
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein $(WARLOCK) -c $(WLCMD_DIR)/usbvc.wlcmd $(WARLOCK_OUT) \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein%.ll: $(UTSBASE)/common/io/usb/clients/video/usbvc/%.c \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein $(UTSBASE)/common/sys/usb/clients/video/usbvc/usbvc_var.h
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox Userwarlock_with_usba: $(WLCMD_DIR)/usbvc_with_usba.wlcmd $(WARLOCK_OUT) \
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User usba_files ohci_files ehci_files uhci_files warlock_ddi.files
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein $(WARLOCK) -c $(WLCMD_DIR)/usbvc_with_usba.wlcmd \