Makefile revision 4ebb14b236958cfe1ef4ff3b7a50216d9e51f997
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys#
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys# CDDL HEADER START
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys#
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys# The contents of this file are subject to the terms of the
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys# Common Development and Distribution License (the "License").
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys# You may not use this file except in compliance with the License.
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys#
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys# or http://www.opensolaris.org/os/licensing.
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys# See the License for the specific language governing permissions
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys# and limitations under the License.
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys#
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys# When distributing Covered Code, include this CDDL HEADER in each
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys# If applicable, add the following below this CDDL HEADER, with the
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys# fields enclosed by brackets "[]" replaced with your own identifying
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys# information: Portions Copyright [yyyy] [name of copyright owner]
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys#
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys# CDDL HEADER END
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys#
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys#
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys# uts/sparc/uhci/Makefile
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys#
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys# Use is subject to license terms.
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys#
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys#ident "%Z%%M% %I% %E% SMI"
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys#
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys# This makefile drives the production of the uhci driver kernel module.
#
# sparc implementation architecture dependent
#
#
# Path to the base of the uts directory tree (usually /usr/src/uts).
#
UTSBASE = ../..
#
# Define the module and object file sets.
#
MODULE = uhci
OBJECTS = $(UHCI_OBJS:%=$(OBJS_DIR)/%)
LINTS = $(UHCI_OBJS:%.o=$(LINTS_DIR)/%.ln)
ROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
CONF_SRCDIR = $(UTSBASE)/common/io/usb/hcd/uhci
WARLOCK_OUT = $(UHCI_OBJS:%.o=%.ll)
WARLOCK_OK = $(MODULE).ok
WLCMD_DIR = $(UTSBASE)/common/io/warlock
#
# Include common rules.
#
include $(UTSBASE)/sparc/Makefile.sparc
#
# lint pass one enforcement
#
CFLAGS += $(CCVERBOSE)
#
# 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)
#
# 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
LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
LINTTAGS += -erroff=E_STATIC_UNUSED
.KEEP_STATE:
all: $(ALL_DEPS)
def: $(DEF_DEPS)
clean: $(CLEAN_DEPS)
$(RM) $(WARLOCK_OUT) $(WARLOCK_OK)
clobber: $(CLOBBER_DEPS)
$(RM) $(WARLOCK_OUT) $(WARLOCK_OK)
lint: $(LINT_DEPS)
modlintlib: $(MODLINTLIB_DEPS)
clean.lint: $(CLEAN_LINT_DEPS)
install: $(INSTALL_DEPS)
#
# Include common targets.
#
include $(UTSBASE)/sparc/Makefile.targ
#
# Defines for local commands.
#
WARLOCK = warlock
WLCC = wlcc
TOUCH = touch
SCCS = sccs
TEST = test
#
# lock_lint rules
#
USBA_FILES = $(USBA_OBJS:%.o= -l ../usba/%.ll)
warlock: $(WARLOCK_OK)
%.wlcmd:
cd $(WLCMD_DIR); $(TEST) -f $@ || $(SCCS) get $@
$(WARLOCK_OK): $(WARLOCK_OUT) uhci.wlcmd warlock_ddi.files usba.files
$(WARLOCK) -c $(WLCMD_DIR)/uhci.wlcmd $(WARLOCK_OUT) \
$(USBA_FILES) \
-l ../warlock/ddi_dki_impl.ll
$(TOUCH) $@
%.ll: $(UTSBASE)/common/io/usb/hcd/uhci/%.c
$(WLCC) $(CPPFLAGS) -DDEBUG -o $@ $<
warlock_ddi.files:
@cd ../warlock; pwd; $(MAKE) warlock
usba.files:
@cd ../usba; pwd; $(MAKE) warlock