Makefile revision 4ebb14b236958cfe1ef4ff3b7a50216d9e51f997
5329N/A#
5329N/A# CDDL HEADER START
5329N/A#
5329N/A# The contents of this file are subject to the terms of the
5329N/A# Common Development and Distribution License (the "License").
5329N/A# You may not use this file except in compliance with the License.
5329N/A#
5329N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
5329N/A# or http://www.opensolaris.org/os/licensing.
5329N/A# See the License for the specific language governing permissions
5329N/A# and limitations under the License.
5329N/A#
5329N/A# When distributing Covered Code, include this CDDL HEADER in each
5329N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
5329N/A# If applicable, add the following below this CDDL HEADER, with the
5329N/A# fields enclosed by brackets "[]" replaced with your own identifying
5329N/A# information: Portions Copyright [yyyy] [name of copyright owner]
5329N/A#
5329N/A# CDDL HEADER END
5329N/A#
5329N/A#
5329N/A# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
5426N/A# Use is subject to license terms.
5329N/A#
5713N/A# uts/sparc/usb_as/Makefile
5713N/A#
5713N/A# This makefile drives the production of the usb_audio driver
5329N/A# kernel module. sparc architecture dependent
5329N/A#
5329N/A
5329N/A#ident "%Z%%M% %I% %E% SMI"
5329N/A
5329N/A#
5329N/A# Path to the base of the uts directory tree (usually /usr/src/uts).
5329N/A#
5426N/AUTSBASE = ../..
5329N/A
5329N/A#
5329N/A# Define the module and object file sets.
5329N/A#
5329N/AMODULE = usb_as
5329N/AOBJECTS = $(USB_AS_OBJS:%=$(OBJS_DIR)/%)
5329N/ALINTS = $(USB_AS_OBJS:%.o=$(LINTS_DIR)/%.ln)
5329N/AROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
5329N/AWARLOCK_OUT = $(USB_AS_OBJS:%.o=%.ll)
5329N/AWARLOCK_OK = $(MODULE).ok
5329N/AWLCMD_DIR = $(UTSBASE)/common/io/warlock
5329N/A
5329N/A#
5329N/A# Include common rules.
5329N/A#
5329N/Ainclude $(UTSBASE)/sparc/Makefile.sparc
5713N/A
5329N/A#
5329N/A# lint pass one enforcement
5329N/A#
5329N/ACFLAGS += $(CCVERBOSE)
5329N/A
5329N/A#
5329N/A# do not remove depends on amsrc2. If removed, amsrc2 gets unloaded when
5329N/A# usb_ac_dacf gets unloaded
5329N/ALDFLAGS += -dy -Nmisc/usba -Nmisc/audiosup -Nmisc/mixer -Nmisc/amsrc2
5329N/A
5329N/A#
5329N/A# Define targets
5329N/A#
5329N/AALL_TARGET = $(BINARY)
5329N/ALINT_TARGET = $(MODULE).lint
5329N/AINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
5329N/A
5329N/A#
5329N/A# For now, disable these lint checks; maintainers should endeavor
5329N/A# to investigate and remove these for maximum lint coverage.
5329N/A# Please do not carry these forward to new Makefiles.
5329N/A#
5329N/ALINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
5329N/ALINTTAGS += -erroff=E_PTRDIFF_OVERFLOW
5329N/A
5329N/A.KEEP_STATE:
5329N/A
5779N/Aall: $(ALL_DEPS)
5329N/A
5779N/Adef: $(DEF_DEPS)
5779N/A
5779N/Aclean: $(CLEAN_DEPS)
5779N/A $(RM) $(WARLOCK_OUT) $(WARLOCK_OK)
5779N/A
5779N/Aclobber: $(CLOBBER_DEPS)
5329N/A $(RM) $(WARLOCK_OUT) $(WARLOCK_OK)
5329N/A
5779N/Alint: $(LINT_DEPS)
5779N/A
5779N/Amodlintlib: $(MODLINTLIB_DEPS)
5329N/A
5779N/Aclean.lint: $(CLEAN_LINT_DEPS)
5779N/A
5779N/Ainstall: $(INSTALL_DEPS)
5779N/A
5779N/A#
5779N/A# Include common targets.
5779N/A#
5779N/Ainclude $(UTSBASE)/sparc/Makefile.targ
5779N/A
5779N/A#
5779N/A# Defines for local commands.
5779N/A#
5329N/AWARLOCK = warlock
5329N/AWLCC = wlcc
5329N/ATOUCH = touch
5329N/ASCCS = sccs
5426N/ATEST = test
5426N/A
5426N/A#
5426N/A# lock_lint rules
5426N/A#
5329N/AUSBA_FILES = $(USBA_OBJS:%.o=../usba/%.ll)
5329N/AUHCI_FILES = $(UHCI_OBJS:%.o=../uhci/%.ll)
5329N/AOHCI_FILES = $(OHCI_OBJS:%.o=../ohci/%.ll)
5426N/AEHCI_FILES = $(EHCI_OBJS:%.o=../ehci/%.ll)
5426N/AMIXER_FILES = $(MIXER_OBJS:%.o=$(UTSBASE)/sparc/mixer/%.ll)
5329N/AAUDIO_SUP_FILES = $(AUDIO_SUP_OBJS:%.o=$(UTSBASE)/sparc/audiosup/%.ll)
5329N/AAMSRC2_FILES = $(AMSRC2_OBJS:%.o=$(UTSBASE)/sparc/amsrc2/%.ll)
5329N/A
5329N/A
5329N/A#
5329N/A# Warlock targets
5329N/A#
5329N/A%.wlcmd:
5329N/A cd $(WLCMD_DIR); $(TEST) -f $@ || $(SCCS) get $@
5713N/A
5329N/Awarlock: $(WARLOCK_OK)
5329N/A
5329N/A$(WARLOCK_OK): $(WARLOCK_OUT) warlock_ddi.files \
5329N/A warlock_audiosup.files warlock_mixer.files warlock_amsrc2.files \
5329N/A warlock_standalone warlock_with_usba warlock_with_sada
5329N/A $(TOUCH) $(WARLOCK_OK)
5329N/A
5329N/Awarlock_with_sada: usb_as_with_sada.wlcmd \
5329N/A $(WARLOCK_OUT) \
5713N/A warlock_audiosup.files warlock_amsrc2.files warlock_mixer.files
5713N/A $(WARLOCK) -c $(WLCMD_DIR)/usb_as_with_sada.wlcmd $(WARLOCK_OUT) \
5713N/A $(MIXER_FILES) $(AUDIO_SUP_FILES) $(AMSRC2_FILES) \
5713N/A -l ../warlock/ddi_dki_impl.ll
5329N/A
5329N/Awarlock_with_usba: usb_as_with_usba.wlcmd $(WARLOCK_OUT) \
5329N/A warlock_ddi.files warlock_ohci.files warlock_usba.files \
5329N/A warlock_ehci.files warlock_uhci.files
5329N/A $(WARLOCK) -c $(WLCMD_DIR)/usb_as_with_usba.wlcmd \
5329N/A $(USBA_FILES) $(OHCI_FILES) $(EHCI_FILES) $(UHCI_FILES) \
5329N/A $(WARLOCK_OUT) -l ../warlock/ddi_dki_impl.ll
5329N/A
5329N/Awarlock_standalone: $(WARLOCK_OUT) warlock_ddi.files usb_as.wlcmd
5329N/A $(WARLOCK) -c $(WLCMD_DIR)/usb_as.wlcmd $(WARLOCK_OUT) \
5329N/A -l ../warlock/ddi_dki_impl.ll
5329N/A
5329N/A%.ll: $(UTSBASE)/common/io/usb/clients/audio/usb_as/%.c
5329N/A $(WLCC) $(CPPFLAGS) -DDEBUG -o $@ $<
5329N/A
5329N/A
5329N/Awarlock_usba.files:
5329N/A @cd ../usba;pwd; $(MAKE) warlock
5329N/A
5329N/Awarlock_ohci.files:
5329N/A @cd ../ohci;pwd; $(MAKE) warlock
5329N/A
5329N/Awarlock_uhci.files:
5329N/A @cd ../uhci;pwd; $(MAKE) warlock
5329N/A
5426N/Awarlock_ehci.files:
5426N/A @cd ../ehci;pwd; $(MAKE) warlock
5426N/A
5426N/Awarlock_ddi.files:
5426N/A @cd ../warlock; pwd; $(MAKE) warlock
5426N/A
5426N/Awarlock_audiosup.files:
5426N/A @cd ../audiosup; pwd; $(MAKE) warlock
5329N/A
5329N/Awarlock_amsrc2.files:
5329N/A @cd ../amsrc2; pwd; $(MAKE) warlock
5329N/A
5329N/Awarlock_mixer.files:
5329N/A @cd ../mixer; pwd; $(MAKE) warlock
5329N/A