Makefile revision 7014882c6a3672fd0e5d60200af8643ae53c5928
2a8d8660e9ee5d40bb28af716ae217cb834738e6Dav Glass#
2a8d8660e9ee5d40bb28af716ae217cb834738e6Dav Glass# CDDL HEADER START
2a8d8660e9ee5d40bb28af716ae217cb834738e6Dav Glass#
2a8d8660e9ee5d40bb28af716ae217cb834738e6Dav Glass# The contents of this file are subject to the terms of the
2a8d8660e9ee5d40bb28af716ae217cb834738e6Dav Glass# Common Development and Distribution License (the "License").
2a8d8660e9ee5d40bb28af716ae217cb834738e6Dav Glass# You may not use this file except in compliance with the License.
2a8d8660e9ee5d40bb28af716ae217cb834738e6Dav Glass#
2a8d8660e9ee5d40bb28af716ae217cb834738e6Dav Glass# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2a8d8660e9ee5d40bb28af716ae217cb834738e6Dav Glass# or http://www.opensolaris.org/os/licensing.
2a8d8660e9ee5d40bb28af716ae217cb834738e6Dav Glass# See the License for the specific language governing permissions
2a8d8660e9ee5d40bb28af716ae217cb834738e6Dav Glass# and limitations under the License.
2a8d8660e9ee5d40bb28af716ae217cb834738e6Dav Glass#
2a8d8660e9ee5d40bb28af716ae217cb834738e6Dav Glass# When distributing Covered Code, include this CDDL HEADER in each
2a8d8660e9ee5d40bb28af716ae217cb834738e6Dav Glass# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
2a8d8660e9ee5d40bb28af716ae217cb834738e6Dav Glass# If applicable, add the following below this CDDL HEADER, with the
2a8d8660e9ee5d40bb28af716ae217cb834738e6Dav Glass# fields enclosed by brackets "[]" replaced with your own identifying
2a8d8660e9ee5d40bb28af716ae217cb834738e6Dav Glass# information: Portions Copyright [yyyy] [name of copyright owner]
2a8d8660e9ee5d40bb28af716ae217cb834738e6Dav Glass#
2a8d8660e9ee5d40bb28af716ae217cb834738e6Dav Glass# CDDL HEADER END
2a8d8660e9ee5d40bb28af716ae217cb834738e6Dav Glass#
2a8d8660e9ee5d40bb28af716ae217cb834738e6Dav Glass#
2a8d8660e9ee5d40bb28af716ae217cb834738e6Dav Glass# uts/sparc/usbms/Makefile
2a8d8660e9ee5d40bb28af716ae217cb834738e6Dav Glass
2a8d8660e9ee5d40bb28af716ae217cb834738e6Dav Glass# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
2a8d8660e9ee5d40bb28af716ae217cb834738e6Dav Glass# Use is subject to license terms.
2a8d8660e9ee5d40bb28af716ae217cb834738e6Dav Glass#
2a8d8660e9ee5d40bb28af716ae217cb834738e6Dav Glass#
2a8d8660e9ee5d40bb28af716ae217cb834738e6Dav Glass# This makefile drives the production of the usbms streams module.
2a8d8660e9ee5d40bb28af716ae217cb834738e6Dav Glass#
2a8d8660e9ee5d40bb28af716ae217cb834738e6Dav Glass# sparc architecture dependent
2a8d8660e9ee5d40bb28af716ae217cb834738e6Dav Glass#
2a8d8660e9ee5d40bb28af716ae217cb834738e6Dav Glass
#
# Path to the base of the uts directory tree (usually /usr/src/uts).
#
UTSBASE = ../..
#
# Define the module and object file sets.
#
MODULE = usbms
OBJECTS = $(USBMS_OBJS:%=$(OBJS_DIR)/%)
LINTS = $(USBMS_OBJS:%.o=$(LINTS_DIR)/%.ln)
ROOTMODULE = $(ROOT_STRMOD_DIR)/$(MODULE)
#
# Include common rules.
#
include $(UTSBASE)/sparc/Makefile.sparc
#
# lint pass one enforcement
#
CFLAGS += $(CCVERBOSE)
#
# depends on misc/usba
#
LDFLAGS += -dy -Nmisc/usba -Nmisc/hidparser
#
# Define targets
#
ALL_TARGET = $(BINARY)
LINT_TARGET = $(MODULE).lint
INSTALL_TARGET = $(BINARY) $(ROOTMODULE)
CERRWARN += -_gcc=-Wno-parentheses
CERRWARN += -_gcc=-Wno-uninitialized
#
# 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
.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)/sparc/Makefile.targ