Makefile revision 7c478bd95313f5f23a4c958a745db2134aa03244
269473047d747f7815af570197e4ef7322d3632cEvan Yan#
269473047d747f7815af570197e4ef7322d3632cEvan Yan# CDDL HEADER START
269473047d747f7815af570197e4ef7322d3632cEvan Yan#
269473047d747f7815af570197e4ef7322d3632cEvan Yan# The contents of this file are subject to the terms of the
269473047d747f7815af570197e4ef7322d3632cEvan Yan# Common Development and Distribution License, Version 1.0 only
269473047d747f7815af570197e4ef7322d3632cEvan Yan# (the "License"). You may not use this file except in compliance
269473047d747f7815af570197e4ef7322d3632cEvan Yan# with the License.
269473047d747f7815af570197e4ef7322d3632cEvan Yan#
269473047d747f7815af570197e4ef7322d3632cEvan Yan# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
269473047d747f7815af570197e4ef7322d3632cEvan Yan# or http://www.opensolaris.org/os/licensing.
269473047d747f7815af570197e4ef7322d3632cEvan Yan# See the License for the specific language governing permissions
269473047d747f7815af570197e4ef7322d3632cEvan Yan# and limitations under the License.
269473047d747f7815af570197e4ef7322d3632cEvan Yan#
269473047d747f7815af570197e4ef7322d3632cEvan Yan# When distributing Covered Code, include this CDDL HEADER in each
269473047d747f7815af570197e4ef7322d3632cEvan Yan# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
269473047d747f7815af570197e4ef7322d3632cEvan Yan# If applicable, add the following below this CDDL HEADER, with the
269473047d747f7815af570197e4ef7322d3632cEvan Yan# fields enclosed by brackets "[]" replaced with your own identifying
269473047d747f7815af570197e4ef7322d3632cEvan Yan# information: Portions Copyright [yyyy] [name of copyright owner]
269473047d747f7815af570197e4ef7322d3632cEvan Yan#
269473047d747f7815af570197e4ef7322d3632cEvan Yan# CDDL HEADER END
269473047d747f7815af570197e4ef7322d3632cEvan Yan#
269473047d747f7815af570197e4ef7322d3632cEvan Yan#
269473047d747f7815af570197e4ef7322d3632cEvan Yan# Copyright 2004 Sun Microsystems, Inc. All rights reserved.
269473047d747f7815af570197e4ef7322d3632cEvan Yan# Use is subject to license terms.
269473047d747f7815af570197e4ef7322d3632cEvan Yan#
269473047d747f7815af570197e4ef7322d3632cEvan Yan#ident "%Z%%M% %I% %E% SMI"
269473047d747f7815af570197e4ef7322d3632cEvan Yan#
269473047d747f7815af570197e4ef7322d3632cEvan Yan# This makefile drives the production of the ohci driver kernel module.
269473047d747f7815af570197e4ef7322d3632cEvan Yan#
269473047d747f7815af570197e4ef7322d3632cEvan Yan
269473047d747f7815af570197e4ef7322d3632cEvan Yan#
269473047d747f7815af570197e4ef7322d3632cEvan Yan# Path to the base of the uts directory tree (usually /usr/src/uts).
269473047d747f7815af570197e4ef7322d3632cEvan Yan#
269473047d747f7815af570197e4ef7322d3632cEvan YanUTSBASE = ../..
269473047d747f7815af570197e4ef7322d3632cEvan Yan
269473047d747f7815af570197e4ef7322d3632cEvan Yan#
269473047d747f7815af570197e4ef7322d3632cEvan Yan# Define the module and object file sets.
#
MODULE = ohci
OBJECTS = $(OHCI_OBJS:%=$(OBJS_DIR)/%)
LINTS = $(OHCI_OBJS:%.o=$(LINTS_DIR)/%.ln)
ROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
CONF_SRCDIR = $(UTSBASE)/common/io/usb/hcd/openhci
#
# Include common rules.
#
include $(UTSBASE)/intel/Makefile.intel
#
# depends on misc/usba
#
LDFLAGS += -dy -Nmisc/usba
#
# Define targets
#
ALL_TARGET = $(BINARY) $(SRC_CONFFILE)
LINT_TARGET = $(MODULE).lint
INSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
#
# 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