Makefile revision bb25c06cca41ca78e5fb87fbb8e81d55beb18c95
1cf118a656f5fd210787908b845362077fc507f8Evan Hunt#
1cf118a656f5fd210787908b845362077fc507f8Evan Hunt# CDDL HEADER START
1cf118a656f5fd210787908b845362077fc507f8Evan Hunt#
1cf118a656f5fd210787908b845362077fc507f8Evan Hunt# The contents of this file are subject to the terms of the
1cf118a656f5fd210787908b845362077fc507f8Evan Hunt# Common Development and Distribution License (the "License").
1cf118a656f5fd210787908b845362077fc507f8Evan Hunt# You may not use this file except in compliance with the License.
1cf118a656f5fd210787908b845362077fc507f8Evan Hunt#
1cf118a656f5fd210787908b845362077fc507f8Evan Hunt# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
1cf118a656f5fd210787908b845362077fc507f8Evan Hunt# or http://www.opensolaris.org/os/licensing.
1cf118a656f5fd210787908b845362077fc507f8Evan Hunt# See the License for the specific language governing permissions
1cf118a656f5fd210787908b845362077fc507f8Evan Hunt# and limitations under the License.
1cf118a656f5fd210787908b845362077fc507f8Evan Hunt#
1cf118a656f5fd210787908b845362077fc507f8Evan Hunt# When distributing Covered Code, include this CDDL HEADER in each
1cf118a656f5fd210787908b845362077fc507f8Evan Hunt# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1cf118a656f5fd210787908b845362077fc507f8Evan Hunt# If applicable, add the following below this CDDL HEADER, with the
1cf118a656f5fd210787908b845362077fc507f8Evan Hunt# fields enclosed by brackets "[]" replaced with your own identifying
1cf118a656f5fd210787908b845362077fc507f8Evan Hunt# information: Portions Copyright [yyyy] [name of copyright owner]
1cf118a656f5fd210787908b845362077fc507f8Evan Hunt#
1cf118a656f5fd210787908b845362077fc507f8Evan Hunt# CDDL HEADER END
1cf118a656f5fd210787908b845362077fc507f8Evan Hunt#
1cf118a656f5fd210787908b845362077fc507f8Evan Hunt#
1cf118a656f5fd210787908b845362077fc507f8Evan Hunt# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
1cf118a656f5fd210787908b845362077fc507f8Evan Hunt# Use is subject to license terms.
1cf118a656f5fd210787908b845362077fc507f8Evan Hunt#
1cf118a656f5fd210787908b845362077fc507f8Evan Hunt# uts/sparc/usb_as/Makefile
1cf118a656f5fd210787908b845362077fc507f8Evan Hunt#
1cf118a656f5fd210787908b845362077fc507f8Evan Hunt# This makefile drives the production of the usb_as driver
1cf118a656f5fd210787908b845362077fc507f8Evan Hunt# kernel module. Intel architecture dependent
1cf118a656f5fd210787908b845362077fc507f8Evan Hunt#
1cf118a656f5fd210787908b845362077fc507f8Evan Hunt
1cf118a656f5fd210787908b845362077fc507f8Evan Hunt#ident "%Z%%M% %I% %E% SMI"
1cf118a656f5fd210787908b845362077fc507f8Evan Hunt
1cf118a656f5fd210787908b845362077fc507f8Evan Hunt#
1cf118a656f5fd210787908b845362077fc507f8Evan Hunt# Path to the base of the uts directory tree (usually /usr/src/uts).
1cf118a656f5fd210787908b845362077fc507f8Evan Hunt#
1cf118a656f5fd210787908b845362077fc507f8Evan HuntUTSBASE = ../..
1cf118a656f5fd210787908b845362077fc507f8Evan Hunt
1cf118a656f5fd210787908b845362077fc507f8Evan Hunt#
1cf118a656f5fd210787908b845362077fc507f8Evan Hunt# Define the module and object file sets.
1cf118a656f5fd210787908b845362077fc507f8Evan Hunt#
1cf118a656f5fd210787908b845362077fc507f8Evan HuntMODULE = usb_as
1cf118a656f5fd210787908b845362077fc507f8Evan HuntOBJECTS = $(USB_AS_OBJS:%=$(OBJS_DIR)/%)
1cf118a656f5fd210787908b845362077fc507f8Evan HuntLINTS = $(USB_AS_OBJS:%.o=$(LINTS_DIR)/%.ln)
1cf118a656f5fd210787908b845362077fc507f8Evan HuntROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
1cf118a656f5fd210787908b845362077fc507f8Evan Hunt
1cf118a656f5fd210787908b845362077fc507f8Evan Hunt#
1cf118a656f5fd210787908b845362077fc507f8Evan Hunt# Include common rules.
1cf118a656f5fd210787908b845362077fc507f8Evan Hunt#
1cf118a656f5fd210787908b845362077fc507f8Evan Huntinclude $(UTSBASE)/intel/Makefile.intel
1cf118a656f5fd210787908b845362077fc507f8Evan Hunt
1cf118a656f5fd210787908b845362077fc507f8Evan Hunt#
1cf118a656f5fd210787908b845362077fc507f8Evan Hunt# Define targets
1cf118a656f5fd210787908b845362077fc507f8Evan Hunt#
1cf118a656f5fd210787908b845362077fc507f8Evan HuntALL_TARGET = $(BINARY)
1cf118a656f5fd210787908b845362077fc507f8Evan HuntLINT_TARGET = $(MODULE).lint
1cf118a656f5fd210787908b845362077fc507f8Evan HuntINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
#
# Override defaults to build a unique, local modstubs.o.
#
MODSTUBS_DIR = $(OBJS_DIR)
CLEANFILES += $(MODSTUBS_O)
#
# do not remove depends on amsrc2. If removed, amsrc2 gets unloaded when
# usb_ac_dacf gets unloaded
#
LDFLAGS += -dy -Nmisc/usba -Nmisc/audiosup -Nmisc/mixer -Nmisc/amsrc2
#
# For now, disable these lint checks; maintainers should endeavor
# to investigate and remove these for maximum lint coverage.
# Please do not carry these forward to new Makefiles.
#
LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW
#
# Default build targets.
#
.KEEP_STATE:
def: $(DEF_DEPS)
all: $(ALL_DEPS)
clean: $(CLEAN_DEPS)
clobber: $(CLOBBER_DEPS)
lint: $(LINT_DEPS)
modlintlib: $(MODLINTLIB_DEPS)
clean.lint: $(CLEAN_LINT_DEPS)
install: $(INSTALL_DEPS)
#
# Include common targets.
#
include $(UTSBASE)/intel/Makefile.targ