Makefile revision e2c88f0c2610f16de7b639746b40dea5f3e2256e
a3b0441c12b207c0fdfce0566dba2db5ecd3816cViolette Roche-Montane# CDDL HEADER START
a3b0441c12b207c0fdfce0566dba2db5ecd3816cViolette Roche-Montane# The contents of this file are subject to the terms of the
a3b0441c12b207c0fdfce0566dba2db5ecd3816cViolette Roche-Montane# Common Development and Distribution License (the "License").
a3b0441c12b207c0fdfce0566dba2db5ecd3816cViolette Roche-Montane# You may not use this file except in compliance with the License.
a3b0441c12b207c0fdfce0566dba2db5ecd3816cViolette Roche-Montane# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
a3b0441c12b207c0fdfce0566dba2db5ecd3816cViolette Roche-Montane# or http://www.opensolaris.org/os/licensing.
a3b0441c12b207c0fdfce0566dba2db5ecd3816cViolette Roche-Montane# See the License for the specific language governing permissions
a3b0441c12b207c0fdfce0566dba2db5ecd3816cViolette Roche-Montane# and limitations under the License.
a3b0441c12b207c0fdfce0566dba2db5ecd3816cViolette Roche-Montane# When distributing Covered Code, include this CDDL HEADER in each
a3b0441c12b207c0fdfce0566dba2db5ecd3816cViolette Roche-Montane# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
a3b0441c12b207c0fdfce0566dba2db5ecd3816cViolette Roche-Montane# If applicable, add the following below this CDDL HEADER, with the
a3b0441c12b207c0fdfce0566dba2db5ecd3816cViolette Roche-Montane# fields enclosed by brackets "[]" replaced with your own identifying
a3b0441c12b207c0fdfce0566dba2db5ecd3816cViolette Roche-Montane# information: Portions Copyright [yyyy] [name of copyright owner]
a3b0441c12b207c0fdfce0566dba2db5ecd3816cViolette Roche-Montane# CDDL HEADER END
a3b0441c12b207c0fdfce0566dba2db5ecd3816cViolette Roche-Montane# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
a3b0441c12b207c0fdfce0566dba2db5ecd3816cViolette Roche-Montane# Use is subject to license terms.
a3b0441c12b207c0fdfce0566dba2db5ecd3816cViolette Roche-Montane# Copyright 2014 Garrett D'Amore <garrett@damore.org>
a3b0441c12b207c0fdfce0566dba2db5ecd3816cViolette Roche-Montane# This makefile drives the production of the Keyspan USB Serial
a3b0441c12b207c0fdfce0566dba2db5ecd3816cViolette Roche-Montane# Adapter driver.
a3b0441c12b207c0fdfce0566dba2db5ecd3816cViolette Roche-Montane# Path to the base of the uts directory tree (usually /usr/src/uts).
a3b0441c12b207c0fdfce0566dba2db5ecd3816cViolette Roche-Montane# Define the module and object file sets.
a3b0441c12b207c0fdfce0566dba2db5ecd3816cViolette Roche-MontaneOBJECTS = $(USBSER_KEYSPAN_OBJS:%=$(OBJS_DIR)/%)
a3b0441c12b207c0fdfce0566dba2db5ecd3816cViolette Roche-MontaneLINTS = $(USBSER_KEYSPAN_OBJS:%.o=$(LINTS_DIR)/%.ln)
a3b0441c12b207c0fdfce0566dba2db5ecd3816cViolette Roche-MontaneROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
a3b0441c12b207c0fdfce0566dba2db5ecd3816cViolette Roche-MontaneWARLOCK_OUT = $(USBSER_KEYSPAN_OBJS:%.o=%.ll)
a3b0441c12b207c0fdfce0566dba2db5ecd3816cViolette Roche-MontaneWLCMD_DIR = $(UTSBASE)/common/io/warlock
a3b0441c12b207c0fdfce0566dba2db5ecd3816cViolette Roche-Montane# Include common rules.
a3b0441c12b207c0fdfce0566dba2db5ecd3816cViolette Roche-Montaneinclude $(UTSBASE)/sparc/Makefile.sparc
a3b0441c12b207c0fdfce0566dba2db5ecd3816cViolette Roche-Montane# lint pass one enforcement
a3b0441c12b207c0fdfce0566dba2db5ecd3816cViolette Roche-MontaneLDFLAGS += -dy -Nmisc/usba -Nmisc/usbser -Nmisc/usbs49_fw
a3b0441c12b207c0fdfce0566dba2db5ecd3816cViolette Roche-Montane# Define targets
a3b0441c12b207c0fdfce0566dba2db5ecd3816cViolette Roche-MontaneINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
a3b0441c12b207c0fdfce0566dba2db5ecd3816cViolette Roche-Montane# Include common targets.
a3b0441c12b207c0fdfce0566dba2db5ecd3816cViolette Roche-Montaneinclude $(UTSBASE)/sparc/Makefile.targ
a3b0441c12b207c0fdfce0566dba2db5ecd3816cViolette Roche-Montane# Defines for local commands.
a3b0441c12b207c0fdfce0566dba2db5ecd3816cViolette Roche-MontaneWARLOCK_CMD = $(WLCMD_DIR)/usbser_keyspan.wlcmd
a3b0441c12b207c0fdfce0566dba2db5ecd3816cViolette Roche-MontaneUSBSER_FILES = $(USBSER_OBJS:%.o=../usbser/%.ll)
a3b0441c12b207c0fdfce0566dba2db5ecd3816cViolette Roche-MontaneUSBA_FILES = $(USBA_OBJS:%.o=../usba/%.ll)
a3b0441c12b207c0fdfce0566dba2db5ecd3816cViolette Roche-MontaneUHCI_FILES = $(UHCI_OBJS:%.o=../uhci/%.ll)
a3b0441c12b207c0fdfce0566dba2db5ecd3816cViolette Roche-MontaneOHCI_FILES = $(OHCI_OBJS:%.o=../ohci/%.ll)
a3b0441c12b207c0fdfce0566dba2db5ecd3816cViolette Roche-MontaneEHCI_FILES = $(EHCI_OBJS:%.o=../ehci/%.ll)
a3b0441c12b207c0fdfce0566dba2db5ecd3816cViolette Roche-Montane$(WARLOCK_OK): warlock_with_usba warlock_with_usbser
a3b0441c12b207c0fdfce0566dba2db5ecd3816cViolette Roche-Montane%.ll: $(UTSBASE)/common/io/usb/clients/usbser/usbser_keyspan/%.c
a3b0441c12b207c0fdfce0566dba2db5ecd3816cViolette Roche-Montanewarlock_with_usbser: $(WARLOCK_OUT) usbser_files warlock_ddi.files \
a3b0441c12b207c0fdfce0566dba2db5ecd3816cViolette Roche-Montane $(WARLOCK) -c $(WARLOCK_CMD) $(WARLOCK_OUT) \
a3b0441c12b207c0fdfce0566dba2db5ecd3816cViolette Roche-Montane $(USBSER_FILES) -l ../warlock/ddi_dki_impl.ll
a3b0441c12b207c0fdfce0566dba2db5ecd3816cViolette Roche-Montanewarlock_with_usba: $(WLCMD_DIR)/usbser_keyspan_with_usba.wlcmd $(WARLOCK_OUT) \
a3b0441c12b207c0fdfce0566dba2db5ecd3816cViolette Roche-Montane usbser_files usba_files ohci_files uhci_files ehci_files \
a3b0441c12b207c0fdfce0566dba2db5ecd3816cViolette Roche-Montane $(WARLOCK) -c $(WLCMD_DIR)/usbser_keyspan_with_usba.wlcmd \
a3b0441c12b207c0fdfce0566dba2db5ecd3816cViolette Roche-Montane $(USBA_FILES) $(OHCI_FILES) $(EHCI_FILES) $(UHCI_FILES) \