Makefile revision e272e4c8df90e762ecb6a6564503bb2cb1e2027d
392N/A#
392N/A# CDDL HEADER START
392N/A#
785N/A# The contents of this file are subject to the terms of the
392N/A# Common Development and Distribution License (the "License").
392N/A# You may not use this file except in compliance with the License.
392N/A#
392N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
392N/A# or http://www.opensolaris.org/os/licensing.
392N/A# See the License for the specific language governing permissions
392N/A# and limitations under the License.
392N/A#
392N/A# When distributing Covered Code, include this CDDL HEADER in each
392N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
392N/A# If applicable, add the following below this CDDL HEADER, with the
392N/A# fields enclosed by brackets "[]" replaced with your own identifying
392N/A# information: Portions Copyright [yyyy] [name of copyright owner]
392N/A#
392N/A# CDDL HEADER END
392N/A#
392N/A#
392N/A# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
392N/A# Use is subject to license terms.
392N/A#
392N/A# uts/sparc/usb_as/Makefile
392N/A#
392N/A# This makefile drives the production of the usb_as driver
392N/A# kernel module. Intel architecture dependent
392N/A#
392N/A
392N/A
392N/A#
392N/A# Path to the base of the uts directory tree (usually /usr/src/uts).
392N/A#
392N/AUTSBASE = ../..
392N/A
392N/A#
392N/A# Define the module and object file sets.
392N/A#
392N/AMODULE = usb_as
392N/AOBJECTS = $(USB_AS_OBJS:%=$(OBJS_DIR)/%)
392N/ALINTS = $(USB_AS_OBJS:%.o=$(LINTS_DIR)/%.ln)
392N/AROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
392N/AWARLOCK_OUT = $(USB_AS_OBJS:%.o=%.ll)
392N/AWARLOCK_OK = $(MODULE).ok
392N/AWLCMD_DIR = $(UTSBASE)/common/io/warlock
392N/A
392N/A#
633N/A# Include common rules.
633N/A#
392N/Ainclude $(UTSBASE)/intel/Makefile.intel
392N/A
392N/A#
392N/A# Define targets
392N/A#
392N/AALL_TARGET = $(BINARY)
392N/ALINT_TARGET = $(MODULE).lint
392N/AINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
392N/A
392N/A#
392N/A# Override defaults to build a unique, local modstubs.o.
392N/A#
392N/AMODSTUBS_DIR = $(OBJS_DIR)
392N/ACLEANFILES += $(MODSTUBS_O)
392N/A
392N/ALDFLAGS += -dy -Nmisc/usba -Ndrv/usb_ac
392N/A
392N/A#
392N/A# For now, disable these lint checks; maintainers should endeavor
785N/A# to investigate and remove these for maximum lint coverage.
392N/A# Please do not carry these forward to new Makefiles.
392N/A#
392N/ALINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
392N/A
392N/A#
392N/A# Default build targets.
392N/A#
392N/A.KEEP_STATE:
392N/A
392N/Adef: $(DEF_DEPS)
392N/A
392N/Aall: $(ALL_DEPS)
392N/A
392N/Aclean: $(CLEAN_DEPS)
392N/A $(RM) $(WARLOCK_OUT) $(WARLOCK_OK)
392N/A
392N/Aclobber: $(CLOBBER_DEPS)
392N/A $(RM) $(WARLOCK_OUT) $(WARLOCK_OK)
392N/A
392N/Alint: $(LINT_DEPS)
392N/A
392N/Amodlintlib: $(MODLINTLIB_DEPS)
392N/A
392N/Aclean.lint: $(CLEAN_LINT_DEPS)
392N/A
392N/Ainstall: $(INSTALL_DEPS)
392N/A
392N/A#
392N/A# Include common targets.
392N/A#
392N/Ainclude $(UTSBASE)/intel/Makefile.targ
392N/A
633N/A#
392N/A# Defines for local commands.
392N/A#
633N/AWARLOCK = warlock
392N/AWLCC = wlcc
392N/ATOUCH = touch
392N/ATEST = test
392N/A
633N/A#
392N/A# lock_lint rules
392N/A#
392N/AUSB_AS_FILES = $(MODULE).ll
392N/AUSBA_FILES = $(USBA_WITHOUT_WUSB_OBJS:%.o=../usba/%.ll)
392N/AUHCI_FILES = $(UHCI_OBJS:%.o=../uhci/%.ll)
392N/AOHCI_FILES = $(OHCI_OBJS:%.o=../ohci/%.ll)
392N/AEHCI_FILES = $(EHCI_OBJS:%.o=../ehci/%.ll)
392N/A
392N/A# Warlock targets
392N/A#
392N/Awarlock: $(WARLOCK_OK)
392N/A
392N/A$(WARLOCK_OK): $(WARLOCK_OUT) warlock_ddi.files \
392N/A warlock_standalone warlock_usba.files warlock_with_usba
392N/A $(TOUCH) $(WARLOCK_OK)
392N/A
392N/A
392N/Awarlock_with_usba: $(WLCMD_DIR)/usb_as_with_usba.wlcmd $(WARLOCK_OUT) \
392N/A warlock_ddi.files warlock_ohci.files warlock_usba.files \
392N/A warlock_ehci.files warlock_uhci.files
392N/A $(WARLOCK) -c $(WLCMD_DIR)/usb_as_with_usba.wlcmd \
392N/A $(USBA_FILES) $(OHCI_FILES) $(EHCI_FILES) $(UHCI_FILES) \
392N/A $(WARLOCK_OUT) -l ../warlock/ddi_dki_impl.ll
392N/A
392N/Awarlock_standalone: $(WARLOCK_OUT) warlock_ddi.files $(WLCMD_DIR)/usb_as.wlcmd
392N/A $(WARLOCK) -c $(WLCMD_DIR)/usb_as.wlcmd $(WARLOCK_OUT) \
392N/A -l ../warlock/ddi_dki_impl.ll
392N/A
392N/A%.ll: $(UTSBASE)/common/io/usb/clients/audio/usb_as/%.c
392N/A $(WLCC) $(CPPFLAGS) -DDEBUG -o $@ $<
392N/A
392N/Awarlock_usba.files:
392N/A @cd ../usba;pwd; $(MAKE) warlock
392N/A
392N/Awarlock_ohci.files:
392N/A @cd ../ohci;pwd; $(MAKE) warlock
392N/A
392N/Awarlock_uhci.files:
392N/A @cd ../uhci;pwd; $(MAKE) warlock
392N/A
392N/Awarlock_ehci.files:
392N/A @cd ../ehci;pwd; $(MAKE) warlock
392N/A
392N/Awarlock_ddi.files:
392N/A @cd ../warlock; pwd; $(MAKE) warlock
392N/A