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