Makefile revision d29f5a711240f866521445b1656d114da090335e
0284e57b9b9dfaf2517a2cc3282ecf766b8ad075Automatic Updater# CDDL HEADER START
4a14ce5ba00ab7bc55c99ffdcf59c7a4ab902721Automatic Updater# The contents of this file are subject to the terms of the
689023771c563d8660e45d439a207e06e96de28fMark Andrews# Common Development and Distribution License (the "License").
689023771c563d8660e45d439a207e06e96de28fMark Andrews# You may not use this file except in compliance with the License.
689023771c563d8660e45d439a207e06e96de28fMark Andrews# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# See the License for the specific language governing permissions
689023771c563d8660e45d439a207e06e96de28fMark Andrews# and limitations under the License.
689023771c563d8660e45d439a207e06e96de28fMark Andrews# When distributing Covered Code, include this CDDL HEADER in each
689023771c563d8660e45d439a207e06e96de28fMark Andrews# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
689023771c563d8660e45d439a207e06e96de28fMark Andrews# If applicable, add the following below this CDDL HEADER, with the
517ae3de96aaf870049c52f1224e38a85fe7f21aAutomatic Updater# fields enclosed by brackets "[]" replaced with your own identifying
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# information: Portions Copyright [yyyy] [name of copyright owner]
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# CDDL HEADER END
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Use is subject to license terms.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# This makefile drives the production of the usb_ac driver
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# kernel module. sparc architecture dependent
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 AusteinCONF_SRCDIR = $(UTSBASE)/common/io/usb/clients/audio/usb_ac
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinWARLOCK_OUT = $(USB_AC_OBJS:%.o=%.ll) usb_ac_dacf.ll
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Include common rules.
0284e57b9b9dfaf2517a2cc3282ecf766b8ad075Automatic Updater# lint pass one enforcement
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinLDFLAGS += -dy -Nmisc/usba -Nmisc/audiosup -Nmisc/mixer
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Define targets
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# For now, disable these lint checks; maintainers should endeavor
0284e57b9b9dfaf2517a2cc3282ecf766b8ad075Automatic Updater# to investigate and remove these for maximum lint coverage.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Please do not carry these forward to new Makefiles.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Include common targets.
0284e57b9b9dfaf2517a2cc3282ecf766b8ad075Automatic Updater# Defines for local commands.
0284e57b9b9dfaf2517a2cc3282ecf766b8ad075Automatic Updater# lock_lint rules
d060d8669f5558690e7faf4a1c12fe5c02a7c60dAutomatic UpdaterMIXER_FILES = $(MIXER_OBJS:%.o=$(UTSBASE)/sparc/mixer/%.ll)
d060d8669f5558690e7faf4a1c12fe5c02a7c60dAutomatic UpdaterAUDIO_SUP_FILES = $(AUDIO_SUP_OBJS:%.o=$(UTSBASE)/sparc/audiosup/%.ll)
0284e57b9b9dfaf2517a2cc3282ecf766b8ad075Automatic UpdaterAMSRC2_FILES = $(AMSRC2_OBJS:%.o=$(UTSBASE)/sparc/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_ac_with_sada.wlcmd \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein warlock_audiosup.files warlock_amsrc2.files warlock_mixer.files
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein $(WARLOCK) -c $(WLCMD_DIR)/usb_ac_with_sada.wlcmd $(WARLOCK_OUT) \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein $(MIXER_FILES) $(AUDIO_SUP_FILES) $(AMSRC2_FILES) \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austeinwarlock_with_usba: $(WLCMD_DIR)/usb_ac_with_usba.wlcmd $(WARLOCK_OUT) \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein warlock_ddi.files warlock_usba.files warlock_ohci.files \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein $(WARLOCK) -c $(WLCMD_DIR)/usb_ac_with_usba.wlcmd \
4f6469885c3d66367e3f8fb94e1f3c66115990b0Mark Andrews $(USBA_FILES) $(OHCI_FILES) $(EHCI_FILES) $(UHCI_FILES) \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austeinwarlock_standalone: $(WARLOCK_OUT) warlock_ddi.files $(WLCMD_DIR)/usb_ac.wlcmd
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein $(WARLOCK) -c $(WLCMD_DIR)/usb_ac.wlcmd $(WARLOCK_OUT) \