Makefile revision 4ebb14b236958cfe1ef4ff3b7a50216d9e51f997
6fe48fb46e53ffc37542853a1edb74cb481b7d94Automatic Updater# CDDL HEADER START
f536382c59dd492a14667b753816d920f9981f1cTinderbox User# The contents of this file are subject to the terms of the
ab496cc3df1648e9ad992a87c35c2c0870fdc69dTinderbox User# Common Development and Distribution License (the "License").
7c1468ed500356839a4a222517364e6ce18cb1a2Tinderbox User# You may not use this file except in compliance with the License.
a7c412f37cc73d0332887a746e81220cbf09dd00Mark Andrews# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
dedefc0bdbb4e6e39eeb98aa2fc6883efec2ddb0Mark Andrews# See the License for the specific language governing permissions
8de3f14f1c300c3e1ed99084cc03485b42c92bf1Tinderbox User# and limitations under the License.
b886b04d8d2b085cbf3e1bf4442dee87f43ba5e4Tinderbox User# When distributing Covered Code, include this CDDL HEADER in each
dedefc0bdbb4e6e39eeb98aa2fc6883efec2ddb0Mark Andrews# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
e676a596869d8a80a644c99a848afb53d1c5975eMark Andrews# If applicable, add the following below this CDDL HEADER, with the
e676a596869d8a80a644c99a848afb53d1c5975eMark Andrews# fields enclosed by brackets "[]" replaced with your own identifying
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# information: Portions Copyright [yyyy] [name of copyright owner]
a7c412f37cc73d0332887a746e81220cbf09dd00Mark Andrews# CDDL HEADER END
e676a596869d8a80a644c99a848afb53d1c5975eMark Andrews# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
e676a596869d8a80a644c99a848afb53d1c5975eMark Andrews# Use is subject to license terms.
9ecb5d33470ebfb3719a1b8d56bcefdf4b27f7b2Tinderbox User# This makefile drives the production of the usb_ac driver
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews# kernel module. Intel architecture dependent
9ecb5d33470ebfb3719a1b8d56bcefdf4b27f7b2Tinderbox User#ident "%Z%%M% %I% %E% SMI"
9ecb5d33470ebfb3719a1b8d56bcefdf4b27f7b2Tinderbox User# Path to the base of the uts directory tree (usually /usr/src/uts).
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews# Define the module and object file sets.
dc238a06bffa79de141ee7655765e2df91498a8aTinderbox UserCONF_SRCDIR = $(UTSBASE)/common/io/usb/clients/audio/usb_ac
0e573cdd111e060e5f6c18249b5ccacbe8abe278Tinderbox UserWARLOCK_OUT = $(USB_AC_OBJS:%.o=%.ll) usb_ac_dacf.ll
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan Hunt# Include common rules.
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater# Define targets
cdfc81e048bd34c1d628380247bda6b80a89e20eAutomatic UpdaterINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews# Override defaults to build a unique, local modstubs.o.
0eb371ca0dab50ae3462e98794a6126198c52f4bMark AndrewsLDFLAGS += -dy -Nmisc/usba -Nmisc/audiosup -Nmisc/mixer
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews# For now, disable these lint checks; maintainers should endeavor
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews# to investigate and remove these for maximum lint coverage.
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews# Please do not carry these forward to new Makefiles.
2ae159b376dac23870d8005563c585acf85a4b5aEvan Hunt# Default build targets.
9ecb5d33470ebfb3719a1b8d56bcefdf4b27f7b2Tinderbox User# Include common targets.
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark Andrews# Defines for local commands.
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews# lock_lint rules
91216cff91b34c9ff6e846dc23f248219cafe660Andreas GustafssonUSBA_FILES = $(USBA_OBJS:%.o=../usba/%.ll)
28a5dd720187fddb16055a0f64b63a7b66f29f64Mark AndrewsAUDIO_SUP_FILES = $(AUDIO_SUP_OBJS:%.o=../audiosup/%.ll)
dedefc0bdbb4e6e39eeb98aa2fc6883efec2ddb0Mark AndrewsAMSRC2_FILES = $(AMSRC2_OBJS:%.o=$(UTSBASE)/intel/amsrc2/%.ll)
78f3ed4bc2fcd3d270bfd599804f3b27a1db4d91Mark Andrews# Warlock targets
37d8e0a4455876fe1e4cca511076cc2c5ab9eedeTinderbox User cd $(WLCMD_DIR); $(TEST) -f $@ || $(SCCS) get $@
dedefc0bdbb4e6e39eeb98aa2fc6883efec2ddb0Mark Andrews$(WARLOCK_OK): $(WARLOCK_OUT) warlock_ddi.files \
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews warlock_standalone warlock_with_usba warlock_with_sada
dedefc0bdbb4e6e39eeb98aa2fc6883efec2ddb0Mark Andrews warlock_audiosup.files warlock_mixer.files warlock_amsrc2.files
dedefc0bdbb4e6e39eeb98aa2fc6883efec2ddb0Mark Andrews $(WARLOCK) -c $(WLCMD_DIR)/usb_ac_with_sada.wlcmd $(WARLOCK_OUT) \
78f3ed4bc2fcd3d270bfd599804f3b27a1db4d91Mark Andrews $(MIXER_FILES) $(AUDIO_SUP_FILES) $(AMSRC2_FILES) \
78f3ed4bc2fcd3d270bfd599804f3b27a1db4d91Mark Andrewswarlock_with_usba: usb_ac_with_usba.wlcmd $(WARLOCK_OUT) \
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews warlock_ddi.files warlock_usba.files warlock_ohci.files \
dedefc0bdbb4e6e39eeb98aa2fc6883efec2ddb0Mark Andrews $(WARLOCK) -c $(WLCMD_DIR)/usb_ac_with_usba.wlcmd \
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews $(USBA_FILES) $(OHCI_FILES) $(EHCI_FILES) $(UHCI_FILES) \
dedefc0bdbb4e6e39eeb98aa2fc6883efec2ddb0Mark Andrewswarlock_standalone: $(WARLOCK_OUT) warlock_ddi.files usb_ac.wlcmd
01a5c5503482fb3ba52088bf0178a7213273bf96Mark Andrews $(WARLOCK) -c $(WLCMD_DIR)/usb_ac.wlcmd $(WARLOCK_OUT) \