Makefile revision bf56214c0556fa6864189c826d39dbe156bb22a0
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# CDDL HEADER START
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# The contents of this file are subject to the terms of the
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington# Common Development and Distribution License (the "License").
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington# You may not use this file except in compliance with the License.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9016767f4e15191b7c763b8a4ad36a57dc2705a2Mark Andrews# See the License for the specific language governing permissions
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# and limitations under the License.
9016767f4e15191b7c763b8a4ad36a57dc2705a2Mark Andrews# When distributing Covered Code, include this CDDL HEADER in each
9016767f4e15191b7c763b8a4ad36a57dc2705a2Mark Andrews# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
9016767f4e15191b7c763b8a4ad36a57dc2705a2Mark Andrews# If applicable, add the following below this CDDL HEADER, with the
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington# fields enclosed by brackets "[]" replaced with your own identifying
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# information: Portions Copyright [yyyy] [name of copyright owner]
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# CDDL HEADER END
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Use is subject to license terms.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# This makefile drives the production of the usb_as driver
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# kernel module. Intel architecture dependent
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein#ident "%Z%%M% %I% %E% SMI"
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Path to the base of the uts directory tree (usually /usr/src/uts).
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# 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.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# do not remove depends on amsrc2. If removed, amsrc2 gets unloaded when
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# usb_ac_dacf gets unloaded
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinLDFLAGS += -dy -Nmisc/usba -Nmisc/audiosup -Nmisc/mixer -Nmisc/amsrc2
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# For now, disable these lint checks; maintainers should endeavor
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# to investigate and remove these for maximum lint coverage.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Please do not carry these forward to new Makefiles.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Default build targets.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Include common targets.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Defines for local commands.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# lock_lint rules
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinMIXER_FILES = $(MIXER_OBJS:%.o=$(UTSBASE)/intel/mixer/%.ll)
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinAUDIO_SUP_FILES = $(AUDIO_SUP_OBJS:%.o=$(UTSBASE)/intel/audiosup/%.ll)
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinAMSRC2_FILES = $(AMSRC2_OBJS:%.o=$(UTSBASE)/intel/amsrc2/%.ll)
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Warlock targets
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein$(WARLOCK_OK): $(WARLOCK_OUT) warlock_ddi.files \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein warlock_audiosup.files warlock_mixer.files warlock_amsrc2.files \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein warlock_standalone warlock_with_usba warlock_with_sada
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austeinwarlock_with_sada: $(WLCMD_DIR)/usb_as_with_sada.wlcmd \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein warlock_audiosup.files warlock_amsrc2.files warlock_mixer.files
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein $(WARLOCK) -c $(WLCMD_DIR)/usb_as_with_sada.wlcmd $(WARLOCK_OUT) \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein $(MIXER_FILES) $(AUDIO_SUP_FILES) $(AMSRC2_FILES) \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austeinwarlock_with_usba: $(WLCMD_DIR)/usb_as_with_usba.wlcmd $(WARLOCK_OUT) \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein warlock_ddi.files warlock_ohci.files warlock_usba.files \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein $(WARLOCK) -c $(WLCMD_DIR)/usb_as_with_usba.wlcmd \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein $(USBA_FILES) $(OHCI_FILES) $(EHCI_FILES) $(UHCI_FILES) \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austeinwarlock_standalone: $(WARLOCK_OUT) warlock_ddi.files $(WLCMD_DIR)/usb_as.wlcmd
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein $(WARLOCK) -c $(WLCMD_DIR)/usb_as.wlcmd $(WARLOCK_OUT) \