Makefile revision ff0e937b36dcde1a47ff7b00aa76a491c0dc07a8
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd#
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd# CDDL HEADER START
fd9abdda70912b99b24e3bf1a38f26fde908a74cnd#
fd9abdda70912b99b24e3bf1a38f26fde908a74cnd# The contents of this file are subject to the terms of the
fd9abdda70912b99b24e3bf1a38f26fde908a74cnd# Common Development and Distribution License (the "License").
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd# You may not use this file except in compliance with the License.
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd#
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd# or http://www.opensolaris.org/os/licensing.
96ad5d81ee4a2cc66a4ae19893efc8aa6d06fae7jailletc# See the License for the specific language governing permissions
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd# and limitations under the License.
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd#
d29d9ab4614ff992b0e8de6e2b88d52b6f1f153erbowen# When distributing Covered Code, include this CDDL HEADER in each
2e545ce2450a9953665f701bb05350f0d3f26275nd# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
d29d9ab4614ff992b0e8de6e2b88d52b6f1f153erbowen# If applicable, add the following below this CDDL HEADER, with the
d29d9ab4614ff992b0e8de6e2b88d52b6f1f153erbowen# fields enclosed by brackets "[]" replaced with your own identifying
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd# information: Portions Copyright [yyyy] [name of copyright owner]
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd#
af33a4994ae2ff15bc67d19ff1a7feb906745bf8rbowen# CDDL HEADER END
3f08db06526d6901aa08c110b5bc7dde6bc39905nd#
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd#
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd# uts/sparc/wusb_df/Makefile
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
3f08db06526d6901aa08c110b5bc7dde6bc39905nd# Use is subject to license terms.
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd#
9472e4d3c410be3b3f1addbf3b1db1769f64e765nd#
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd# This makefile drives the production of the wusb_df driver kernel module.
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd# sparc architecture dependent
7f5b59ccc63c0c0e3e678a168f09ee6a2f51f9d0nd#
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd
fac8c35bfb158112226ab43ddf84d59daca5dc30nd#
f086b4b402fa9a2fefc7dda85de2a3cc1cd0a654rjung# Path to the base of the uts directory tree (usually /usr/src/uts).
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd#
4b575a6b6704b516f22d65a3ad35696d7b9ba372rpluemUTSBASE = ../..
4b575a6b6704b516f22d65a3ad35696d7b9ba372rpluem
4b575a6b6704b516f22d65a3ad35696d7b9ba372rpluem#
4b575a6b6704b516f22d65a3ad35696d7b9ba372rpluem# Define the module and object file sets.
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd#
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34ndMODULE = wusb_df
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34ndOBJECTS = $(WUSB_DF_OBJS:%=$(OBJS_DIR)/%)
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34ndLINTS = $(WUSB_DF_OBJS:%.o=$(LINTS_DIR)/%.ln)
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34ndROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34ndWARLOCK_OUT = $(WUSB_DF_OBJS:%.o=%.ll)
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34ndWARLOCK_OK = $(MODULE).ok
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34ndWLCMD_DIR = $(UTSBASE)/common/io/warlock
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd#
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd# Include common rules.
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd#
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34ndinclude $(UTSBASE)/sparc/Makefile.sparc
30471a4650391f57975f60bbb6e4a90be7b284bfhumbedooh
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd#
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd# lint pass one enforcement
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd#
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34ndCFLAGS += $(CCVERBOSE)
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd#
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd# depends on misc/usba
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd#
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34ndLDFLAGS += -dy -Nmisc/usba
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd#
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd# Define targets
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd#
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34ndALL_TARGET = $(BINARY)
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34ndLINT_TARGET = $(MODULE).lint
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34ndINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd#
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd# For now, disable these lint checks; maintainers should endeavor
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd# to investigate and remove these for maximum lint coverage.
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd# Please do not carry these forward to new Makefiles.
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd#
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34ndLINTTAGS += -erroff=E_PTRDIFF_OVERFLOW
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd#
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd# Default build targets.
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd#
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd.KEEP_STATE:
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nddef: $(DEF_DEPS)
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34ndall: $(ALL_DEPS)
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34ndclean: $(CLEAN_DEPS)
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd $(RM) $(WARLOCK_OUT) $(WARLOCK_OK)
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34ndclobber: $(CLOBBER_DEPS)
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd $(RM) $(WARLOCK_OUT) $(WARLOCK_OK)
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34ndlint: $(LINT_DEPS)
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34ndmodlintlib: $(MODLINTLIB_DEPS)
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34ndclean.lint: $(CLEAN_LINT_DEPS)
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34ndinstall: $(INSTALL_DEPS)
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd#
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd# Include common targets.
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd#
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34ndinclude $(UTSBASE)/sparc/Makefile.targ
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd#
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd# Defines for local commands.
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd#
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34ndWARLOCK = warlock
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34ndWLCC = wlcc
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34ndTOUCH = touch
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34ndSCCS = sccs
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34ndTEST = test
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd#
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd# lock_lint rules
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd#
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34ndUSBA_FILES = $(USBA_OBJS:%.o= -l ../usba/%.ll)
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34ndUHCI_FILES = $(UHCI_OBJS:%.o=../uhci/%.ll)
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34ndOHCI_FILES = $(OHCI_OBJS:%.o=../ohci/%.ll)
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34ndEHCI_FILES = $(EHCI_OBJS:%.o=../ehci/%.ll)
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34ndwarlock: $(WARLOCK_OK) warlock_with_usba
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd%.wlcmd:
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd cd $(WLCMD_DIR); $(TEST) -f $@ || $(SCCS) get $@
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd$(WARLOCK_OK): $(WARLOCK_OUT) wusb_df.wlcmd warlock_ddi.files
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd $(WARLOCK) -c $(WLCMD_DIR)/wusb_df.wlcmd $(WARLOCK_OUT) \
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd -l ../warlock/ddi_dki_impl.ll
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd $(TOUCH) $@
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd%.ll: $(UTSBASE)/common/io/usb/clients/wusb_df/%.c \
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd $(UTSBASE)/common/sys/usb/clients/wusb_df/wusb_df.h
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd $(WLCC) $(CPPFLAGS) -DDEBUG -DWUSB_DF_PM -DWUSB_DF_CPR -o $@ $<
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34ndwarlock_with_usba: wusb_df_with_usba.wlcmd $(WARLOCK_OUT) usba_files \
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd warlock_ddi.files
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd $(WARLOCK) -c $(WLCMD_DIR)/wusb_df_with_usba.wlcmd \
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd $(USBA_FILES) $(WARLOCK_OUT) \
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd -l ../warlock/ddi_dki_impl.ll
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34ndusba_files:
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd @cd ../usba; pwd; $(MAKE) warlock
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nduhci_files:
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd @cd ../uhci; pwd; $(MAKE) warlock
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34ndohci_files:
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd @cd ../ohci; pwd; $(MAKE) warlock
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34ndehci_files:
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd @cd ../ehci; pwd; $(MAKE) warlock
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34ndwarlock_ddi.files:
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd @cd ../warlock; pwd; $(MAKE) warlock
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd