Makefile revision 4ebb14b236958cfe1ef4ff3b7a50216d9e51f997
6fe48fb46e53ffc37542853a1edb74cb481b7d94Automatic Updater# CDDL HEADER START
7a42357217528037bdfedcb17eeebfe96ae4266aAutomatic Updater# The contents of this file are subject to the terms of the
1167fc7904c5f0a472f8df207ac46dd52c7f1ec8Automatic Updater# Common Development and Distribution License (the "License").
0c39b3ed9409ecb277d5e32fa763a4e4d6598df8Automatic Updater# You may not use this file except in compliance with the License.
6fe48fb46e53ffc37542853a1edb74cb481b7d94Automatic Updater# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
fe84edc17e0d582cf7b4270f8df9d4742a107b1cAutomatic Updater# or http://www.opensolaris.org/os/licensing.
79b273c187a4aa1016a62181983dfdd0521681aeMark Andrews# See the License for the specific language governing permissions
90ff38a0d8deaf5f9c2aa5916d99b2e572d28738Automatic Updater# and limitations under the License.
ac4e70ff8955669341f435bc0a734a17c01af124Mark Andrews# When distributing Covered Code, include this CDDL HEADER in each
6c6a121295b30772cbf3dd75a51fb9d883051a0eAutomatic Updater# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# If applicable, add the following below this CDDL HEADER, with the
9cd5eb6fe0f26d65724b99216cb31dcdd12e4afdAutomatic Updater# fields enclosed by brackets "[]" replaced with your own identifying
bbde8dc56605130058a1540609264fa109da3b63Automatic Updater# information: Portions Copyright [yyyy] [name of copyright owner]
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# CDDL HEADER END
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# Use is subject to license terms.
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater# This makefile drives the production of the usb_audio driver
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark Andrews# kernel module. sparc architecture dependent
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater#ident "%Z%%M% %I% %E% SMI"
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater# Path to the base of the uts directory tree (usually /usr/src/uts).
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater# Define the module and object file sets.
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic UpdaterLINTS = $(USB_AS_OBJS:%.o=$(LINTS_DIR)/%.ln)
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater# Include common rules.
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater# lint pass one enforcement
eabc9c3c07cd956d3c436bd7614cb162dabdda76Mark Andrews# do not remove depends on amsrc2. If removed, amsrc2 gets unloaded when
eabc9c3c07cd956d3c436bd7614cb162dabdda76Mark Andrews# usb_ac_dacf gets unloaded
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonLDFLAGS += -dy -Nmisc/usba -Nmisc/audiosup -Nmisc/mixer -Nmisc/amsrc2
6fe48fb46e53ffc37542853a1edb74cb481b7d94Automatic Updater# Define targets
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# For now, disable these lint checks; maintainers should endeavor
6fe48fb46e53ffc37542853a1edb74cb481b7d94Automatic Updater# to investigate and remove these for maximum lint coverage.
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# Please do not carry these forward to new Makefiles.
e130ab53e992670e2a2ecf043976ac09f21358d1Automatic Updater# Include common targets.
24bf1e02f03577db0feb50b80238c4150c96d05dAutomatic Updater# Defines for local commands.
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# lock_lint rules
fe80a4909bf62b602feaf246866e9d29f7654194Automatic UpdaterMIXER_FILES = $(MIXER_OBJS:%.o=$(UTSBASE)/sparc/mixer/%.ll)
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic UpdaterAUDIO_SUP_FILES = $(AUDIO_SUP_OBJS:%.o=$(UTSBASE)/sparc/audiosup/%.ll)
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic UpdaterAMSRC2_FILES = $(AMSRC2_OBJS:%.o=$(UTSBASE)/sparc/amsrc2/%.ll)
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson# Warlock targets
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson cd $(WLCMD_DIR); $(TEST) -f $@ || $(SCCS) get $@
133e6d43fa82e80d3798be4de00f4540f485ec6cAutomatic Updater$(WARLOCK_OK): $(WARLOCK_OUT) warlock_ddi.files \
133e6d43fa82e80d3798be4de00f4540f485ec6cAutomatic Updater warlock_audiosup.files warlock_mixer.files warlock_amsrc2.files \
133e6d43fa82e80d3798be4de00f4540f485ec6cAutomatic Updater warlock_standalone warlock_with_usba warlock_with_sada
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updaterwarlock_with_sada: usb_as_with_sada.wlcmd \
8711e5c73ca872d59810760af0332194cbdd619bAutomatic Updater warlock_audiosup.files warlock_amsrc2.files warlock_mixer.files
229ea4644b3a7d9c7fdaa43888e7f55ba01e2ee3Automatic Updater $(WARLOCK) -c $(WLCMD_DIR)/usb_as_with_sada.wlcmd $(WARLOCK_OUT) \
0ce87e5749aabb8eef1e0a37e4bd6e6ffa1d7196Automatic Updater $(MIXER_FILES) $(AUDIO_SUP_FILES) $(AMSRC2_FILES) \
f132a836c4e386b1af045dd8fe7106ae61b90bffAutomatic Updaterwarlock_with_usba: usb_as_with_usba.wlcmd $(WARLOCK_OUT) \
8f2c45a35dd8c40bcc9caba8f7d40ce64fc27bcdAutomatic Updater warlock_ddi.files warlock_ohci.files warlock_usba.files \
8f2c45a35dd8c40bcc9caba8f7d40ce64fc27bcdAutomatic Updater $(WARLOCK) -c $(WLCMD_DIR)/usb_as_with_usba.wlcmd \
e130ab53e992670e2a2ecf043976ac09f21358d1Automatic Updater $(USBA_FILES) $(OHCI_FILES) $(EHCI_FILES) $(UHCI_FILES) \
d145b64cacc8d9cda51f9924ec70cd4661c3e2cfAutomatic Updater $(WARLOCK_OUT) -l ../warlock/ddi_dki_impl.ll
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updaterwarlock_standalone: $(WARLOCK_OUT) warlock_ddi.files usb_as.wlcmd
8f2c45a35dd8c40bcc9caba8f7d40ce64fc27bcdAutomatic Updater $(WARLOCK) -c $(WLCMD_DIR)/usb_as.wlcmd $(WARLOCK_OUT) \