Makefile revision 88447a05f537aabe9a1bc3d5313f22581ec992a7
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# CDDL HEADER START
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#
3e14f97f673e8a630f076077de35afdd43dc1587Roger A. Faulkner# The contents of this file are subject to the terms of the
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# Common Development and Distribution License (the "License").
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# You may not use this file except in compliance with the License.
7c2fbfb345896881c631598ee3852ce9ce33fb07April Chin#
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# or http://www.opensolaris.org/os/licensing.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# See the License for the specific language governing permissions
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# and limitations under the License.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# When distributing Covered Code, include this CDDL HEADER in each
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# If applicable, add the following below this CDDL HEADER, with the
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# fields enclosed by brackets "[]" replaced with your own identifying
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# information: Portions Copyright [yyyy] [name of copyright owner]
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# CDDL HEADER END
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# Use is subject to license terms.
3e14f97f673e8a630f076077de35afdd43dc1587Roger A. Faulkner#
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# uts/sparc/usb_ac/Makefile
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# This makefile drives the production of the usb_ac driver
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# kernel module. sparc architecture dependent
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# Path to the base of the uts directory tree (usually /usr/src/uts).
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinUTSBASE = ../..
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# Define the module and object file sets.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinMODULE = usb_ac
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinOBJECTS = $(USB_AC_OBJS:%=$(OBJS_DIR)/%)
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinLINTS = $(USB_AC_OBJS:%.o=$(LINTS_DIR)/%.ln)
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinCONF_SRCDIR = $(UTSBASE)/common/io/usb/clients/audio/usb_ac
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinWARLOCK_OUT = $(USB_AC_OBJS:%.o=%.ll)
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinWARLOCK_OK = $(MODULE).ok
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinWLCMD_DIR = $(UTSBASE)/common/io/warlock
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# Include common rules.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chininclude $(UTSBASE)/sparc/Makefile.sparc
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# lint pass one enforcement
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinCFLAGS += $(CCVERBOSE)
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinLDFLAGS += -dy -Nmisc/usba -Ndrv/audio
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# Define targets
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinALL_TARGET = $(BINARY) $(SRC_CONFILE)
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinLINT_TARGET = $(MODULE).lint
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# For now, disable these lint checks; maintainers should endeavor
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# to investigate and remove these for maximum lint coverage.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# Please do not carry these forward to new Makefiles.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinLINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin.KEEP_STATE:
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinall: $(ALL_DEPS)
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chindef: $(DEF_DEPS)
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinclean: $(CLEAN_DEPS)
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin $(RM) $(WARLOCK_OUT) $(WARLOCK_OK)
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinclobber: $(CLOBBER_DEPS)
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin $(RM) $(WARLOCK_OUT) $(WARLOCK_OK)
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinlint: $(LINT_DEPS)
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinmodlintlib: $(MODLINTLIB_DEPS)
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinclean.lint: $(CLEAN_LINT_DEPS)
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chininstall: $(INSTALL_DEPS)
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# Include common targets.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chininclude $(UTSBASE)/sparc/Makefile.targ
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# Defines for local commands.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinWARLOCK = warlock
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinWLCC = wlcc
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinTOUCH = touch
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinTEST = test
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# lock_lint rules
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinUSBA_FILES = $(USBA_OBJS:%.o=../usba/%.ll)
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinUHCI_FILES = $(UHCI_OBJS:%.o=../uhci/%.ll)
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinOHCI_FILES = $(OHCI_OBJS:%.o=../ohci/%.ll)
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinEHCI_FILES = $(EHCI_OBJS:%.o=../ehci/%.ll)
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# Warlock targets
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinwarlock: $(WARLOCK_OK)
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin$(WARLOCK_OK): $(WARLOCK_OUT) warlock_ddi.files \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin warlock_audiosup.files warlock_mixer.files warlock_amsrc2.files \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin warlock_standalone warlock_with_usba warlock_with_sada
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin $(TOUCH) $(WARLOCK_OK)
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinwarlock_with_sada: $(WLCMD_DIR)/usb_ac_with_sada.wlcmd \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin $(WARLOCK_OUT) \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin warlock_audiosup.files warlock_amsrc2.files warlock_mixer.files
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin $(WARLOCK) -c $(WLCMD_DIR)/usb_ac_with_sada.wlcmd $(WARLOCK_OUT) \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin -l ../warlock/ddi_dki_impl.ll
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinwarlock_with_usba: $(WLCMD_DIR)/usb_ac_with_usba.wlcmd $(WARLOCK_OUT) \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin warlock_ddi.files warlock_usba.files warlock_ohci.files \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin warlock_ehci.files warlock_uhci.files
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin $(WARLOCK) -c $(WLCMD_DIR)/usb_ac_with_usba.wlcmd \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin $(USBA_FILES) $(OHCI_FILES) $(EHCI_FILES) $(UHCI_FILES) \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin $(WARLOCK_OUT) -l ../warlock/ddi_dki_impl.ll
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinwarlock_standalone: $(WARLOCK_OUT) warlock_ddi.files $(WLCMD_DIR)/usb_ac.wlcmd
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin $(WARLOCK) -c $(WLCMD_DIR)/usb_ac.wlcmd $(WARLOCK_OUT) \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin -l ../warlock/ddi_dki_impl.ll
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin%.ll: $(UTSBASE)/common/io/usb/clients/audio/usb_ac/%.c
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin $(WLCC) $(CPPFLAGS) -DDEBUG -o $@ $<
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinwarlock_usba.files:
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin @cd ../usba;pwd; $(MAKE) warlock
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinwarlock_ohci.files:
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin @cd ../ohci;pwd; $(MAKE) warlock
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinwarlock_uhci.files:
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin @cd ../uhci;pwd; $(MAKE) warlock
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinwarlock_ehci.files:
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin @cd ../ehci;pwd; $(MAKE) warlock
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinwarlock_ddi.files:
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin @cd ../warlock; pwd; $(MAKE) warlock
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinwarlock_audiosup.files:
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin @cd ../audiosup; pwd; $(MAKE) warlock
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinwarlock_amsrc2.files:
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin @cd ../amsrc2; pwd; $(MAKE) warlock
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinwarlock_mixer.files:
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin @cd ../mixer; pwd; $(MAKE) warlock
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin