d73ae94e59c019f5cc3221ee0a0012d02091b40egc#
d73ae94e59c019f5cc3221ee0a0012d02091b40egc# CDDL HEADER START
d73ae94e59c019f5cc3221ee0a0012d02091b40egc#
d73ae94e59c019f5cc3221ee0a0012d02091b40egc# The contents of this file are subject to the terms of the
d73ae94e59c019f5cc3221ee0a0012d02091b40egc# Common Development and Distribution License (the "License").
d73ae94e59c019f5cc3221ee0a0012d02091b40egc# You may not use this file except in compliance with the License.
d73ae94e59c019f5cc3221ee0a0012d02091b40egc#
d73ae94e59c019f5cc3221ee0a0012d02091b40egc# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
d73ae94e59c019f5cc3221ee0a0012d02091b40egc# or http://www.opensolaris.org/os/licensing.
d73ae94e59c019f5cc3221ee0a0012d02091b40egc# See the License for the specific language governing permissions
d73ae94e59c019f5cc3221ee0a0012d02091b40egc# and limitations under the License.
d73ae94e59c019f5cc3221ee0a0012d02091b40egc#
d73ae94e59c019f5cc3221ee0a0012d02091b40egc# When distributing Covered Code, include this CDDL HEADER in each
d73ae94e59c019f5cc3221ee0a0012d02091b40egc# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
d73ae94e59c019f5cc3221ee0a0012d02091b40egc# If applicable, add the following below this CDDL HEADER, with the
d73ae94e59c019f5cc3221ee0a0012d02091b40egc# fields enclosed by brackets "[]" replaced with your own identifying
d73ae94e59c019f5cc3221ee0a0012d02091b40egc# information: Portions Copyright [yyyy] [name of copyright owner]
d73ae94e59c019f5cc3221ee0a0012d02091b40egc#
d73ae94e59c019f5cc3221ee0a0012d02091b40egc# CDDL HEADER END
d73ae94e59c019f5cc3221ee0a0012d02091b40egc#
d73ae94e59c019f5cc3221ee0a0012d02091b40egc#
d73ae94e59c019f5cc3221ee0a0012d02091b40egc# uts/sparc/usb_ia/Makefile
d73ae94e59c019f5cc3221ee0a0012d02091b40egc
489b7c4ab76ae8df137fbfcc2214f7baa52883a0Raymond Chen# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
d73ae94e59c019f5cc3221ee0a0012d02091b40egc# Use is subject to license terms.
d73ae94e59c019f5cc3221ee0a0012d02091b40egc#
e2c88f0c2610f16de7b639746b40dea5f3e2256eGarrett D'Amore# Copyright 2014 Garrett D'Amore <garrett@damore.org>
e2c88f0c2610f16de7b639746b40dea5f3e2256eGarrett D'Amore#
d73ae94e59c019f5cc3221ee0a0012d02091b40egc# This makefile drives the production of the usb_ia driver kernel module.
d73ae94e59c019f5cc3221ee0a0012d02091b40egc# sparc architecture dependent
d73ae94e59c019f5cc3221ee0a0012d02091b40egc#
d73ae94e59c019f5cc3221ee0a0012d02091b40egc
d73ae94e59c019f5cc3221ee0a0012d02091b40egc
d73ae94e59c019f5cc3221ee0a0012d02091b40egc#
d73ae94e59c019f5cc3221ee0a0012d02091b40egc# Path to the base of the uts directory tree (usually /usr/src/uts).
d73ae94e59c019f5cc3221ee0a0012d02091b40egc#
d73ae94e59c019f5cc3221ee0a0012d02091b40egcUTSBASE = ../..
d73ae94e59c019f5cc3221ee0a0012d02091b40egc
d73ae94e59c019f5cc3221ee0a0012d02091b40egc#
d73ae94e59c019f5cc3221ee0a0012d02091b40egc# Define the module and object file sets.
d73ae94e59c019f5cc3221ee0a0012d02091b40egc#
d73ae94e59c019f5cc3221ee0a0012d02091b40egcMODULE = usb_ia
d73ae94e59c019f5cc3221ee0a0012d02091b40egcOBJECTS = $(USB_IA_OBJS:%=$(OBJS_DIR)/%)
d73ae94e59c019f5cc3221ee0a0012d02091b40egcLINTS = $(USB_IA_OBJS:%.o=$(LINTS_DIR)/%.ln)
d73ae94e59c019f5cc3221ee0a0012d02091b40egcROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
d73ae94e59c019f5cc3221ee0a0012d02091b40egcWARLOCK_OUT = $(USB_IA_OBJS:%.o=%.ll)
d73ae94e59c019f5cc3221ee0a0012d02091b40egcWARLOCK_OK = $(MODULE).ok
d73ae94e59c019f5cc3221ee0a0012d02091b40egcWLCMD_DIR = $(UTSBASE)/common/io/warlock
d73ae94e59c019f5cc3221ee0a0012d02091b40egc
d73ae94e59c019f5cc3221ee0a0012d02091b40egc#
d73ae94e59c019f5cc3221ee0a0012d02091b40egc# Include common rules.
d73ae94e59c019f5cc3221ee0a0012d02091b40egc#
d73ae94e59c019f5cc3221ee0a0012d02091b40egcinclude $(UTSBASE)/sparc/Makefile.sparc
d73ae94e59c019f5cc3221ee0a0012d02091b40egc
d73ae94e59c019f5cc3221ee0a0012d02091b40egc#
d73ae94e59c019f5cc3221ee0a0012d02091b40egc# lint pass one enforcement
d73ae94e59c019f5cc3221ee0a0012d02091b40egc#
d73ae94e59c019f5cc3221ee0a0012d02091b40egcCFLAGS += $(CCVERBOSE)
d73ae94e59c019f5cc3221ee0a0012d02091b40egc
d73ae94e59c019f5cc3221ee0a0012d02091b40egc#
d73ae94e59c019f5cc3221ee0a0012d02091b40egc# depends on misc/usba
d73ae94e59c019f5cc3221ee0a0012d02091b40egc#
d73ae94e59c019f5cc3221ee0a0012d02091b40egcLDFLAGS += -dy -Nmisc/usba
d73ae94e59c019f5cc3221ee0a0012d02091b40egc
d73ae94e59c019f5cc3221ee0a0012d02091b40egc#
d73ae94e59c019f5cc3221ee0a0012d02091b40egc# Define targets
d73ae94e59c019f5cc3221ee0a0012d02091b40egc#
d73ae94e59c019f5cc3221ee0a0012d02091b40egcALL_TARGET = $(BINARY)
d73ae94e59c019f5cc3221ee0a0012d02091b40egcLINT_TARGET = $(MODULE).lint
d73ae94e59c019f5cc3221ee0a0012d02091b40egcINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
d73ae94e59c019f5cc3221ee0a0012d02091b40egc
d73ae94e59c019f5cc3221ee0a0012d02091b40egc.KEEP_STATE:
d73ae94e59c019f5cc3221ee0a0012d02091b40egc
d73ae94e59c019f5cc3221ee0a0012d02091b40egcall: $(ALL_DEPS)
d73ae94e59c019f5cc3221ee0a0012d02091b40egc
d73ae94e59c019f5cc3221ee0a0012d02091b40egcdef: $(DEF_DEPS)
d73ae94e59c019f5cc3221ee0a0012d02091b40egc
d73ae94e59c019f5cc3221ee0a0012d02091b40egcclean: $(CLEAN_DEPS)
d73ae94e59c019f5cc3221ee0a0012d02091b40egc $(RM) $(WARLOCK_OUT) $(WARLOCK_OK)
d73ae94e59c019f5cc3221ee0a0012d02091b40egc
d73ae94e59c019f5cc3221ee0a0012d02091b40egcclobber: $(CLOBBER_DEPS)
d73ae94e59c019f5cc3221ee0a0012d02091b40egc $(RM) $(WARLOCK_OUT) $(WARLOCK_OK)
d73ae94e59c019f5cc3221ee0a0012d02091b40egc
d73ae94e59c019f5cc3221ee0a0012d02091b40egclint: $(LINT_DEPS)
d73ae94e59c019f5cc3221ee0a0012d02091b40egc
d73ae94e59c019f5cc3221ee0a0012d02091b40egcmodlintlib: $(MODLINTLIB_DEPS)
d73ae94e59c019f5cc3221ee0a0012d02091b40egc
d73ae94e59c019f5cc3221ee0a0012d02091b40egcclean.lint: $(CLEAN_LINT_DEPS)
d73ae94e59c019f5cc3221ee0a0012d02091b40egc
d73ae94e59c019f5cc3221ee0a0012d02091b40egcinstall: $(INSTALL_DEPS)
d73ae94e59c019f5cc3221ee0a0012d02091b40egc
d73ae94e59c019f5cc3221ee0a0012d02091b40egc#
d73ae94e59c019f5cc3221ee0a0012d02091b40egc# Include common targets.
d73ae94e59c019f5cc3221ee0a0012d02091b40egc#
d73ae94e59c019f5cc3221ee0a0012d02091b40egcinclude $(UTSBASE)/sparc/Makefile.targ
d73ae94e59c019f5cc3221ee0a0012d02091b40egc
d73ae94e59c019f5cc3221ee0a0012d02091b40egc#
d73ae94e59c019f5cc3221ee0a0012d02091b40egc# Defines for local commands.
d73ae94e59c019f5cc3221ee0a0012d02091b40egc#
d73ae94e59c019f5cc3221ee0a0012d02091b40egcWARLOCK = warlock
d73ae94e59c019f5cc3221ee0a0012d02091b40egcWLCC = wlcc
d73ae94e59c019f5cc3221ee0a0012d02091b40egcTOUCH = touch
d73ae94e59c019f5cc3221ee0a0012d02091b40egcTEST = test
d73ae94e59c019f5cc3221ee0a0012d02091b40egc
d73ae94e59c019f5cc3221ee0a0012d02091b40egc#
d73ae94e59c019f5cc3221ee0a0012d02091b40egc# lock_lint rules
d73ae94e59c019f5cc3221ee0a0012d02091b40egc#
e2c88f0c2610f16de7b639746b40dea5f3e2256eGarrett D'AmoreUSBA_FILES = $(USBA_OBJS:%.o=../usba/%.ll)
d73ae94e59c019f5cc3221ee0a0012d02091b40egcUHCI_FILES = $(UHCI_OBJS:%.o=../uhci/%.ll)
d73ae94e59c019f5cc3221ee0a0012d02091b40egcOHCI_FILES = $(OHCI_OBJS:%.o=../ohci/%.ll)
d73ae94e59c019f5cc3221ee0a0012d02091b40egcEHCI_FILES = $(EHCI_OBJS:%.o=../ehci/%.ll)
d73ae94e59c019f5cc3221ee0a0012d02091b40egc
d73ae94e59c019f5cc3221ee0a0012d02091b40egcwarlock: $(WARLOCK_OK) warlock_with_usba
d73ae94e59c019f5cc3221ee0a0012d02091b40egc
bf56214c0556fa6864189c826d39dbe156bb22a0stevel$(WARLOCK_OK): $(WARLOCK_OUT) $(WLCMD_DIR)/usb_ia.wlcmd warlock_ddi.files
d73ae94e59c019f5cc3221ee0a0012d02091b40egc $(WARLOCK) -c $(WLCMD_DIR)/usb_ia.wlcmd $(WARLOCK_OUT) \
d73ae94e59c019f5cc3221ee0a0012d02091b40egc -l ../warlock/ddi_dki_impl.ll
d73ae94e59c019f5cc3221ee0a0012d02091b40egc $(TOUCH) $@
d73ae94e59c019f5cc3221ee0a0012d02091b40egc
d73ae94e59c019f5cc3221ee0a0012d02091b40egc%.ll: $(UTSBASE)/common/io/usb/usb_ia/%.c \
d73ae94e59c019f5cc3221ee0a0012d02091b40egc $(UTSBASE)/common/sys/usb/usb_ia/usb_iavar.h
d73ae94e59c019f5cc3221ee0a0012d02091b40egc $(WLCC) $(CPPFLAGS) -DDEBUG -o $@ $<
d73ae94e59c019f5cc3221ee0a0012d02091b40egc
bf56214c0556fa6864189c826d39dbe156bb22a0stevelwarlock_with_usba: $(WLCMD_DIR)/usb_ia_with_usba.wlcmd $(WARLOCK_OUT) \
bf56214c0556fa6864189c826d39dbe156bb22a0stevel usba_files ohci_files ehci_files uhci_files warlock_ddi.files
d73ae94e59c019f5cc3221ee0a0012d02091b40egc $(WARLOCK) -c $(WLCMD_DIR)/usb_ia_with_usba.wlcmd \
d73ae94e59c019f5cc3221ee0a0012d02091b40egc $(USBA_FILES) $(OHCI_FILES) $(EHCI_FILES) $(UHCI_FILES) \
d73ae94e59c019f5cc3221ee0a0012d02091b40egc $(WARLOCK_OUT) \
d73ae94e59c019f5cc3221ee0a0012d02091b40egc -l ../warlock/ddi_dki_impl.ll
d73ae94e59c019f5cc3221ee0a0012d02091b40egc
d73ae94e59c019f5cc3221ee0a0012d02091b40egc
d73ae94e59c019f5cc3221ee0a0012d02091b40egcusba_files:
d73ae94e59c019f5cc3221ee0a0012d02091b40egc @cd ../usba;pwd; $(MAKE) warlock
d73ae94e59c019f5cc3221ee0a0012d02091b40egc
d73ae94e59c019f5cc3221ee0a0012d02091b40egcuhci_files:
d73ae94e59c019f5cc3221ee0a0012d02091b40egc @cd ../uhci;pwd; $(MAKE) warlock
d73ae94e59c019f5cc3221ee0a0012d02091b40egc
d73ae94e59c019f5cc3221ee0a0012d02091b40egcohci_files:
d73ae94e59c019f5cc3221ee0a0012d02091b40egc @cd ../ohci;pwd; $(MAKE) warlock
d73ae94e59c019f5cc3221ee0a0012d02091b40egc
d73ae94e59c019f5cc3221ee0a0012d02091b40egcehci_files:
d73ae94e59c019f5cc3221ee0a0012d02091b40egc @cd ../ehci;pwd; $(MAKE) warlock
d73ae94e59c019f5cc3221ee0a0012d02091b40egc
d73ae94e59c019f5cc3221ee0a0012d02091b40egcwarlock_ddi.files:
d73ae94e59c019f5cc3221ee0a0012d02091b40egc cd ../warlock; pwd; $(MAKE) warlock