Makefile revision 40a3f5ceaf3ada360988c7cbb70c66f2d5588da4
735fb4ffa6a76413f85101d7d625a4776d6ee6cdAndreas Gustafsson# CDDL HEADER START
735fb4ffa6a76413f85101d7d625a4776d6ee6cdAndreas Gustafsson# The contents of this file are subject to the terms of the
e1368a7770744cbeadcdc27967f855196988eceaAndreas Gustafsson# Common Development and Distribution License (the "License").
e1368a7770744cbeadcdc27967f855196988eceaAndreas Gustafsson# You may not use this file except in compliance with the License.
a3365e361f0066609d250005e2b1082cb2ba35fdAndreas Gustafsson# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
a3365e361f0066609d250005e2b1082cb2ba35fdAndreas Gustafsson# or http://www.opensolaris.org/os/licensing.
a3365e361f0066609d250005e2b1082cb2ba35fdAndreas Gustafsson# See the License for the specific language governing permissions
e32394a2ac3466a2235f79ee32c247a11be42a8dAndreas Gustafsson# and limitations under the License.
e32394a2ac3466a2235f79ee32c247a11be42a8dAndreas Gustafsson# When distributing Covered Code, include this CDDL HEADER in each
031f9084fc1ca8b258c151f428677e7226556ad0Mark Andrews# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
031f9084fc1ca8b258c151f428677e7226556ad0Mark Andrews# If applicable, add the following below this CDDL HEADER, with the
031f9084fc1ca8b258c151f428677e7226556ad0Mark Andrews# fields enclosed by brackets "[]" replaced with your own identifying
031f9084fc1ca8b258c151f428677e7226556ad0Mark Andrews# information: Portions Copyright [yyyy] [name of copyright owner]
031f9084fc1ca8b258c151f428677e7226556ad0Mark Andrews# CDDL HEADER END
44215b932d4f0ce5257d794cb6f76b9282455eb1Mark Andrews# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
44215b932d4f0ce5257d794cb6f76b9282455eb1Mark Andrews# Use is subject to license terms.
44215b932d4f0ce5257d794cb6f76b9282455eb1Mark Andrews# This makefile drives the production of the FT232R USB Serial
405ffb1f0d2c12d199f85f03973d1a02ac12e000Andreas Gustafsson# Adapter driver.
405ffb1f0d2c12d199f85f03973d1a02ac12e000Andreas Gustafsson# Path to the base of the uts directory tree (usually /usr/src/uts).
6d8568cb45240974da0ee1b653b28e3fdfffe93eAndreas Gustafsson# Define the module and object file sets.
6d3f954c572db02159deedd444373161fda47a88Brian WellingtonLINTS = $(USBFTDI_OBJS:%.o=$(LINTS_DIR)/%.ln)
ea419adc4eca4c3e44f2c282035b5dce6b795fe2Andreas GustafssonCONF_SRCDIR = $(UTSBASE)/common/io/usb/clients/usbser/usbftdi
ff59f0e4feaefb45a49427bd91775058b4b4f2d0Andreas Gustafsson# Include common rules.
674f1cfb1d7dfa92e52db950dbe80e60ef8f5cddBrian Wellington# Define targets
da76a8046e01e1c1c2e6f75772afb2c4f202cc25Brian WellingtonINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
575db903aabb08137a757d1c60ebb0d286ecff56Andreas Gustafsson# Include common targets.
c851f1cc2187b59687af94725fbacac022987d05Andreas Gustafsson# Defines for local commands.
385a9cb48a70b329e507c39d043fa9a44c659913James BristerUSBSER_FILES = $(USBSER_OBJS:%.o=../usbser/%.ll)
48674819ebf9176b5d5582ae851e485c324c1159Michael Sawyer$(WARLOCK_OK): warlock_with_usba warlock_with_usbser
9594482ba300a4d694162fa62ba636c7dd00d3b6Brian Wellington%.ll: $(UTSBASE)/common/io/usb/clients/usbser/usbftdi/%.c
47ddde42728034854444cf17e278cebaea06f666Michael Graffwarlock_with_usbser: $(WARLOCK_OUT) usbser_files warlock_ddi.files \
edf8c55546efa9fb42da1c055ce02462a5c709c0David Lawrence $(WARLOCK) -c $(WARLOCK_CMD) $(WARLOCK_OUT) \
edf8c55546efa9fb42da1c055ce02462a5c709c0David Lawrence $(USBSER_FILES) -l ../warlock/ddi_dki_impl.ll
c5944292e9ebee4a39fe939b9a16fe5596808556David Lawrencewarlock_with_usba: $(WARLOCK_OUT) usbser_files \
c5944292e9ebee4a39fe939b9a16fe5596808556David Lawrence $(WLCMD_DIR)/usbftdi_with_usba.wlcmd usba_files ohci_files uhci_files \
c5944292e9ebee4a39fe939b9a16fe5596808556David Lawrence $(WARLOCK) -c $(WLCMD_DIR)/usbftdi_with_usba.wlcmd \