Makefile revision e2c88f0c2610f16de7b639746b40dea5f3e2256e
41a839133aad7c96a0d55d927dc3475d0cbe9c22vboxsync#
2f0d866e126dd288169fed591c259c1c6b4016e5vboxsync# CDDL HEADER START
41a839133aad7c96a0d55d927dc3475d0cbe9c22vboxsync#
41a839133aad7c96a0d55d927dc3475d0cbe9c22vboxsync# The contents of this file are subject to the terms of the
41a839133aad7c96a0d55d927dc3475d0cbe9c22vboxsync# Common Development and Distribution License (the "License").
41a839133aad7c96a0d55d927dc3475d0cbe9c22vboxsync# You may not use this file except in compliance with the License.
41a839133aad7c96a0d55d927dc3475d0cbe9c22vboxsync#
f5fc6d91e150cd61b1758c89b31d915270134385vboxsync# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
41a839133aad7c96a0d55d927dc3475d0cbe9c22vboxsync# or http://www.opensolaris.org/os/licensing.
41a839133aad7c96a0d55d927dc3475d0cbe9c22vboxsync# See the License for the specific language governing permissions
41a839133aad7c96a0d55d927dc3475d0cbe9c22vboxsync# and limitations under the License.
41a839133aad7c96a0d55d927dc3475d0cbe9c22vboxsync#
41a839133aad7c96a0d55d927dc3475d0cbe9c22vboxsync# When distributing Covered Code, include this CDDL HEADER in each
41a839133aad7c96a0d55d927dc3475d0cbe9c22vboxsync# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
41a839133aad7c96a0d55d927dc3475d0cbe9c22vboxsync# If applicable, add the following below this CDDL HEADER, with the
41a839133aad7c96a0d55d927dc3475d0cbe9c22vboxsync# fields enclosed by brackets "[]" replaced with your own identifying
41a839133aad7c96a0d55d927dc3475d0cbe9c22vboxsync# information: Portions Copyright [yyyy] [name of copyright owner]
41a839133aad7c96a0d55d927dc3475d0cbe9c22vboxsync#
41a839133aad7c96a0d55d927dc3475d0cbe9c22vboxsync# CDDL HEADER END
41a839133aad7c96a0d55d927dc3475d0cbe9c22vboxsync#
41a839133aad7c96a0d55d927dc3475d0cbe9c22vboxsync#
41a839133aad7c96a0d55d927dc3475d0cbe9c22vboxsync# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
c1b76913eb226361b0f57efd4dc45072db194218vboxsync# Use is subject to license terms.
2f0d866e126dd288169fed591c259c1c6b4016e5vboxsync#
41a839133aad7c96a0d55d927dc3475d0cbe9c22vboxsync# Copyright 2014 Garrett D'Amore <garrett@damore.org>
41a839133aad7c96a0d55d927dc3475d0cbe9c22vboxsync#
41a839133aad7c96a0d55d927dc3475d0cbe9c22vboxsync# uts/sparc/usb_as/Makefile
41a839133aad7c96a0d55d927dc3475d0cbe9c22vboxsync#
41a839133aad7c96a0d55d927dc3475d0cbe9c22vboxsync# This makefile drives the production of the usb_audio driver
41a839133aad7c96a0d55d927dc3475d0cbe9c22vboxsync# kernel module. sparc architecture dependent
8777a8016804f532bdbbc80bed1385c51194d8aavboxsync#
41a839133aad7c96a0d55d927dc3475d0cbe9c22vboxsync
41a839133aad7c96a0d55d927dc3475d0cbe9c22vboxsync
41a839133aad7c96a0d55d927dc3475d0cbe9c22vboxsync#
4e2986d53886d4433b152278380fda80aeee2f80vboxsync# Path to the base of the uts directory tree (usually /usr/src/uts).
41a839133aad7c96a0d55d927dc3475d0cbe9c22vboxsync#
41a839133aad7c96a0d55d927dc3475d0cbe9c22vboxsyncUTSBASE = ../..
715e49c31b15c23c17a9ce3be42a75e7c48d4b78vboxsync
41a839133aad7c96a0d55d927dc3475d0cbe9c22vboxsync#
41a839133aad7c96a0d55d927dc3475d0cbe9c22vboxsync# Define the module and object file sets.
41a839133aad7c96a0d55d927dc3475d0cbe9c22vboxsync#
41a839133aad7c96a0d55d927dc3475d0cbe9c22vboxsyncMODULE = usb_as
41a839133aad7c96a0d55d927dc3475d0cbe9c22vboxsyncOBJECTS = $(USB_AS_OBJS:%=$(OBJS_DIR)/%)
41a839133aad7c96a0d55d927dc3475d0cbe9c22vboxsyncLINTS = $(USB_AS_OBJS:%.o=$(LINTS_DIR)/%.ln)
41a839133aad7c96a0d55d927dc3475d0cbe9c22vboxsyncROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
41a839133aad7c96a0d55d927dc3475d0cbe9c22vboxsyncWARLOCK_OUT = $(USB_AS_OBJS:%.o=%.ll)
41a839133aad7c96a0d55d927dc3475d0cbe9c22vboxsyncWARLOCK_OK = $(MODULE).ok
41a839133aad7c96a0d55d927dc3475d0cbe9c22vboxsyncWLCMD_DIR = $(UTSBASE)/common/io/warlock
41a839133aad7c96a0d55d927dc3475d0cbe9c22vboxsync
41a839133aad7c96a0d55d927dc3475d0cbe9c22vboxsync#
41a839133aad7c96a0d55d927dc3475d0cbe9c22vboxsync# Include common rules.
41a839133aad7c96a0d55d927dc3475d0cbe9c22vboxsync#
41a839133aad7c96a0d55d927dc3475d0cbe9c22vboxsyncinclude $(UTSBASE)/sparc/Makefile.sparc
41a839133aad7c96a0d55d927dc3475d0cbe9c22vboxsync
41a839133aad7c96a0d55d927dc3475d0cbe9c22vboxsync#
41a839133aad7c96a0d55d927dc3475d0cbe9c22vboxsync# lint pass one enforcement
41a839133aad7c96a0d55d927dc3475d0cbe9c22vboxsync#
41a839133aad7c96a0d55d927dc3475d0cbe9c22vboxsyncCFLAGS += $(CCVERBOSE)
41a839133aad7c96a0d55d927dc3475d0cbe9c22vboxsync
41a839133aad7c96a0d55d927dc3475d0cbe9c22vboxsync#
2d97f8baccdd684bc0a8a15eb86bbe9ff2b85374vboxsyncLDFLAGS += -dy -Nmisc/usba -Ndrv/usb_ac
41a839133aad7c96a0d55d927dc3475d0cbe9c22vboxsync
41a839133aad7c96a0d55d927dc3475d0cbe9c22vboxsync#
41a839133aad7c96a0d55d927dc3475d0cbe9c22vboxsync# Define targets
41a839133aad7c96a0d55d927dc3475d0cbe9c22vboxsync#
41a839133aad7c96a0d55d927dc3475d0cbe9c22vboxsyncALL_TARGET = $(BINARY)
41a839133aad7c96a0d55d927dc3475d0cbe9c22vboxsyncLINT_TARGET = $(MODULE).lint
41a839133aad7c96a0d55d927dc3475d0cbe9c22vboxsyncINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
41a839133aad7c96a0d55d927dc3475d0cbe9c22vboxsync
41a839133aad7c96a0d55d927dc3475d0cbe9c22vboxsyncCERRWARN += -_gcc=-Wno-unused-label
41a839133aad7c96a0d55d927dc3475d0cbe9c22vboxsync
41a839133aad7c96a0d55d927dc3475d0cbe9c22vboxsync#
41a839133aad7c96a0d55d927dc3475d0cbe9c22vboxsync# For now, disable these lint checks; maintainers should endeavor
715e49c31b15c23c17a9ce3be42a75e7c48d4b78vboxsync# to investigate and remove these for maximum lint coverage.
783c5efe04be621d9edbe07f2a41ea9a9a35cdcevboxsync# Please do not carry these forward to new Makefiles.
41a839133aad7c96a0d55d927dc3475d0cbe9c22vboxsync#
41a839133aad7c96a0d55d927dc3475d0cbe9c22vboxsyncLINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
41a839133aad7c96a0d55d927dc3475d0cbe9c22vboxsync
41a839133aad7c96a0d55d927dc3475d0cbe9c22vboxsync.KEEP_STATE:
41a839133aad7c96a0d55d927dc3475d0cbe9c22vboxsync
41a839133aad7c96a0d55d927dc3475d0cbe9c22vboxsyncall: $(ALL_DEPS)
41a839133aad7c96a0d55d927dc3475d0cbe9c22vboxsync
41a839133aad7c96a0d55d927dc3475d0cbe9c22vboxsyncdef: $(DEF_DEPS)
41a839133aad7c96a0d55d927dc3475d0cbe9c22vboxsync
41a839133aad7c96a0d55d927dc3475d0cbe9c22vboxsyncclean: $(CLEAN_DEPS)
41a839133aad7c96a0d55d927dc3475d0cbe9c22vboxsync $(RM) $(WARLOCK_OUT) $(WARLOCK_OK)
41a839133aad7c96a0d55d927dc3475d0cbe9c22vboxsync
41a839133aad7c96a0d55d927dc3475d0cbe9c22vboxsyncclobber: $(CLOBBER_DEPS)
41a839133aad7c96a0d55d927dc3475d0cbe9c22vboxsync $(RM) $(WARLOCK_OUT) $(WARLOCK_OK)
41a839133aad7c96a0d55d927dc3475d0cbe9c22vboxsync
41a839133aad7c96a0d55d927dc3475d0cbe9c22vboxsynclint: $(LINT_DEPS)
41a839133aad7c96a0d55d927dc3475d0cbe9c22vboxsync
41a839133aad7c96a0d55d927dc3475d0cbe9c22vboxsyncmodlintlib: $(MODLINTLIB_DEPS)
41a839133aad7c96a0d55d927dc3475d0cbe9c22vboxsync
41a839133aad7c96a0d55d927dc3475d0cbe9c22vboxsyncclean.lint: $(CLEAN_LINT_DEPS)
41a839133aad7c96a0d55d927dc3475d0cbe9c22vboxsync
41a839133aad7c96a0d55d927dc3475d0cbe9c22vboxsyncinstall: $(INSTALL_DEPS)
41a839133aad7c96a0d55d927dc3475d0cbe9c22vboxsync
41a839133aad7c96a0d55d927dc3475d0cbe9c22vboxsync#
41a839133aad7c96a0d55d927dc3475d0cbe9c22vboxsync# Include common targets.
41a839133aad7c96a0d55d927dc3475d0cbe9c22vboxsync#
41a839133aad7c96a0d55d927dc3475d0cbe9c22vboxsyncinclude $(UTSBASE)/sparc/Makefile.targ
41a839133aad7c96a0d55d927dc3475d0cbe9c22vboxsync
41a839133aad7c96a0d55d927dc3475d0cbe9c22vboxsync#
41a839133aad7c96a0d55d927dc3475d0cbe9c22vboxsync# Defines for local commands.
41a839133aad7c96a0d55d927dc3475d0cbe9c22vboxsync#
41a839133aad7c96a0d55d927dc3475d0cbe9c22vboxsyncWARLOCK = warlock
41a839133aad7c96a0d55d927dc3475d0cbe9c22vboxsyncWLCC = wlcc
41a839133aad7c96a0d55d927dc3475d0cbe9c22vboxsyncTOUCH = touch
41a839133aad7c96a0d55d927dc3475d0cbe9c22vboxsyncTEST = test
41a839133aad7c96a0d55d927dc3475d0cbe9c22vboxsync
32bf313cd8c0de52ef27b486f15945c55c94b038vboxsync#
210db75d2af02f67370c4a1be6570484d29eb394vboxsync# lock_lint rules
e66c95fa9950a4d9c567db63a4a495bf086cc4bfvboxsync#
41a839133aad7c96a0d55d927dc3475d0cbe9c22vboxsyncUSBA_FILES = $(USBA_OBJS:%.o=../usba/%.ll)
41a839133aad7c96a0d55d927dc3475d0cbe9c22vboxsyncUHCI_FILES = $(UHCI_OBJS:%.o=../uhci/%.ll)
41a839133aad7c96a0d55d927dc3475d0cbe9c22vboxsyncOHCI_FILES = $(OHCI_OBJS:%.o=../ohci/%.ll)
41a839133aad7c96a0d55d927dc3475d0cbe9c22vboxsyncEHCI_FILES = $(EHCI_OBJS:%.o=../ehci/%.ll)
41a839133aad7c96a0d55d927dc3475d0cbe9c22vboxsync
41a839133aad7c96a0d55d927dc3475d0cbe9c22vboxsync
41a839133aad7c96a0d55d927dc3475d0cbe9c22vboxsync#
41a839133aad7c96a0d55d927dc3475d0cbe9c22vboxsync# Warlock targets
41a839133aad7c96a0d55d927dc3475d0cbe9c22vboxsync#
41a839133aad7c96a0d55d927dc3475d0cbe9c22vboxsyncwarlock: $(WARLOCK_OK)
41a839133aad7c96a0d55d927dc3475d0cbe9c22vboxsync
41a839133aad7c96a0d55d927dc3475d0cbe9c22vboxsync$(WARLOCK_OK): $(WARLOCK_OUT) warlock_ddi.files \
41a839133aad7c96a0d55d927dc3475d0cbe9c22vboxsync warlock_standalone warlock_usba.files warlock_with_usba
41a839133aad7c96a0d55d927dc3475d0cbe9c22vboxsync $(TOUCH) $(WARLOCK_OK)
41a839133aad7c96a0d55d927dc3475d0cbe9c22vboxsync
41a839133aad7c96a0d55d927dc3475d0cbe9c22vboxsync
41a839133aad7c96a0d55d927dc3475d0cbe9c22vboxsyncwarlock_with_usba: $(WLCMD_DIR)/usb_as_with_usba.wlcmd $(WARLOCK_OUT) \
41a839133aad7c96a0d55d927dc3475d0cbe9c22vboxsync warlock_ddi.files warlock_ohci.files warlock_usba.files \
41a839133aad7c96a0d55d927dc3475d0cbe9c22vboxsync warlock_ehci.files warlock_uhci.files
d4e47db9ac03c394fdff9508b2bd919cd4db1943vboxsync $(WARLOCK) -c $(WLCMD_DIR)/usb_as_with_usba.wlcmd \
41a839133aad7c96a0d55d927dc3475d0cbe9c22vboxsync $(USBA_FILES) $(OHCI_FILES) $(EHCI_FILES) $(UHCI_FILES) \
41a839133aad7c96a0d55d927dc3475d0cbe9c22vboxsync $(WARLOCK_OUT) -l ../warlock/ddi_dki_impl.ll
41a839133aad7c96a0d55d927dc3475d0cbe9c22vboxsync
41a839133aad7c96a0d55d927dc3475d0cbe9c22vboxsyncwarlock_standalone: $(WARLOCK_OUT) warlock_ddi.files $(WLCMD_DIR)/usb_as.wlcmd
41a839133aad7c96a0d55d927dc3475d0cbe9c22vboxsync $(WARLOCK) -c $(WLCMD_DIR)/usb_as.wlcmd $(WARLOCK_OUT) \
41a839133aad7c96a0d55d927dc3475d0cbe9c22vboxsync -l ../warlock/ddi_dki_impl.ll
41a839133aad7c96a0d55d927dc3475d0cbe9c22vboxsync
41a839133aad7c96a0d55d927dc3475d0cbe9c22vboxsync%.ll: $(UTSBASE)/common/io/usb/clients/audio/usb_as/%.c
caa5882cb44c59f9b72347f4d901200b1f62fe61vboxsync $(WLCC) $(CPPFLAGS) -DDEBUG -o $@ $<
41a839133aad7c96a0d55d927dc3475d0cbe9c22vboxsync
41a839133aad7c96a0d55d927dc3475d0cbe9c22vboxsync
41a839133aad7c96a0d55d927dc3475d0cbe9c22vboxsyncwarlock_usba.files:
41a839133aad7c96a0d55d927dc3475d0cbe9c22vboxsync @cd ../usba;pwd; $(MAKE) warlock
41a839133aad7c96a0d55d927dc3475d0cbe9c22vboxsync
41a839133aad7c96a0d55d927dc3475d0cbe9c22vboxsyncwarlock_ohci.files:
41a839133aad7c96a0d55d927dc3475d0cbe9c22vboxsync @cd ../ohci;pwd; $(MAKE) warlock
41a839133aad7c96a0d55d927dc3475d0cbe9c22vboxsync
41a839133aad7c96a0d55d927dc3475d0cbe9c22vboxsyncwarlock_uhci.files:
41a839133aad7c96a0d55d927dc3475d0cbe9c22vboxsync @cd ../uhci;pwd; $(MAKE) warlock
9837b5326a44772e824a15f2d5d937ddfd627d54vboxsync
9837b5326a44772e824a15f2d5d937ddfd627d54vboxsyncwarlock_ehci.files:
9837b5326a44772e824a15f2d5d937ddfd627d54vboxsync @cd ../ehci;pwd; $(MAKE) warlock
9837b5326a44772e824a15f2d5d937ddfd627d54vboxsync
41a839133aad7c96a0d55d927dc3475d0cbe9c22vboxsyncwarlock_ddi.files:
ab455939477d81b7bb500586f88029d3a3c0b34cvboxsync @cd ../warlock; pwd; $(MAKE) warlock
41a839133aad7c96a0d55d927dc3475d0cbe9c22vboxsync