Makefile revision 7014882c6a3672fd0e5d60200af8643ae53c5928
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt#
11e9368a226272085c337e9e74b79808c16fbdbaTinderbox User# CDDL HEADER START
bef75d63d74f58abc0f834ed271526672777ba29Automatic Updater#
bef75d63d74f58abc0f834ed271526672777ba29Automatic Updater# The contents of this file are subject to the terms of the
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt# Common Development and Distribution License (the "License").
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt# You may not use this file except in compliance with the License.
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt#
bef75d63d74f58abc0f834ed271526672777ba29Automatic Updater# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt# or http://www.opensolaris.org/os/licensing.
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt# See the License for the specific language governing permissions
bef75d63d74f58abc0f834ed271526672777ba29Automatic Updater# and limitations under the License.
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt#
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt# When distributing Covered Code, include this CDDL HEADER in each
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt# If applicable, add the following below this CDDL HEADER, with the
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt# fields enclosed by brackets "[]" replaced with your own identifying
ea94d370123a5892f6c47a97f21d1b28d44bb168Tinderbox User# information: Portions Copyright [yyyy] [name of copyright owner]
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt#
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt# CDDL HEADER END
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt#
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt#
fdd80e9a55c70b36a3bf3e409b86897301c44ff8Automatic Updater# uts/intel/usbsprl/Makefile
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt# Use is subject to license terms.
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt#
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt#
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt# This makefile drives the production of the Prolific USB Serial
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt# Adapter driver.
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt#
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt# Path to the base of the uts directory tree (usually /usr/src/uts).
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt#
0f66aced2640d964aeb6db41210711ba0640d7f2Evan HuntUTSBASE = ../..
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt#
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt# Define the module and object file sets.
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt#
0f66aced2640d964aeb6db41210711ba0640d7f2Evan HuntMODULE = usbsprl
0f66aced2640d964aeb6db41210711ba0640d7f2Evan HuntOBJECTS = $(USBSPRL_OBJS:%=$(OBJS_DIR)/%)
0f66aced2640d964aeb6db41210711ba0640d7f2Evan HuntLINTS = $(USBSPRL_OBJS:%.o=$(LINTS_DIR)/%.ln)
0f66aced2640d964aeb6db41210711ba0640d7f2Evan HuntWARLOCK_OUT = $(USBSPRL_OBJS:%.o=%.ll)
0f66aced2640d964aeb6db41210711ba0640d7f2Evan HuntWARLOCK_OK = $(MODULE).ok
0f66aced2640d964aeb6db41210711ba0640d7f2Evan HuntROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
0f66aced2640d964aeb6db41210711ba0640d7f2Evan HuntWLCMD_DIR = $(UTSBASE)/common/io/warlock
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt#
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt# Include common rules.
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt#
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Huntinclude $(UTSBASE)/intel/Makefile.intel
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt
0f66aced2640d964aeb6db41210711ba0640d7f2Evan HuntCERRWARN += -_gcc=-Wno-uninitialized
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt
0f66aced2640d964aeb6db41210711ba0640d7f2Evan HuntLDFLAGS += -dy -Nmisc/usba -Nmisc/usbser
11e9368a226272085c337e9e74b79808c16fbdbaTinderbox User
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt#
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt# Define targets
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt#
0f66aced2640d964aeb6db41210711ba0640d7f2Evan HuntALL_TARGET = $(BINARY)
0f66aced2640d964aeb6db41210711ba0640d7f2Evan HuntLINT_TARGET = $(MODULE).lint
0f66aced2640d964aeb6db41210711ba0640d7f2Evan HuntINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt.KEEP_STATE:
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Huntall: $(ALL_DEPS)
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Huntdef: $(DEF_DEPS)
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Huntclean: $(CLEAN_DEPS)
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt $(RM) $(WARLOCK_OUT) $(WARLOCK_OK)
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Huntclobber: $(CLOBBER_DEPS)
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt $(RM) $(WARLOCK_OUT) $(WARLOCK_OK)
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Huntlint: $(LINT_DEPS)
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Huntmodlintlib: $(MODLINTLIB_DEPS)
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Huntclean.lint: $(CLEAN_LINT_DEPS)
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt
11e9368a226272085c337e9e74b79808c16fbdbaTinderbox Userinstall: $(INSTALL_DEPS)
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt#
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt# Include common targets.
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt#
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Huntinclude $(UTSBASE)/intel/Makefile.targ
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt#
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt# Defines for local commands.
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt#
0f66aced2640d964aeb6db41210711ba0640d7f2Evan HuntWLCC = wlcc
11e9368a226272085c337e9e74b79808c16fbdbaTinderbox UserTOUCH = touch
0f66aced2640d964aeb6db41210711ba0640d7f2Evan HuntWARLOCK = warlock
0f66aced2640d964aeb6db41210711ba0640d7f2Evan HuntTEST = test
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt#
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt# warlock
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt#
11e9368a226272085c337e9e74b79808c16fbdbaTinderbox UserWARLOCK_CMD = $(WLCMD_DIR)/$(MODULE).wlcmd
0f66aced2640d964aeb6db41210711ba0640d7f2Evan HuntUSBSER_FILES = $(USBSER_OBJS:%.o=../usbser/%.ll)
0f66aced2640d964aeb6db41210711ba0640d7f2Evan HuntUSBA_FILES = $(USBA_WITHOUT_WUSB_OBJS:%.o=../usba/%.ll)
0f66aced2640d964aeb6db41210711ba0640d7f2Evan HuntUHCI_FILES = $(UHCI_OBJS:%.o=../uhci/%.ll)
0f66aced2640d964aeb6db41210711ba0640d7f2Evan HuntOHCI_FILES = $(OHCI_OBJS:%.o=../ohci/%.ll)
0f66aced2640d964aeb6db41210711ba0640d7f2Evan HuntEHCI_FILES = $(EHCI_OBJS:%.o=../ehci/%.ll)
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Huntwarlock: $(WARLOCK_OK)
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt$(WARLOCK_OK): warlock_with_usba warlock_with_usbser
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt $(TOUCH) $@
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt%.ll: $(UTSBASE)/common/io/usb/clients/usbser/usbsprl/%.c
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt $(WLCC) $(CPPFLAGS) -DDEBUG -o $@ $<
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Huntwarlock_with_usbser: $(WARLOCK_OUT) usbser_files warlock_ddi.files \
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt $(WARLOCK_CMD)
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt $(WARLOCK) -c $(WARLOCK_CMD) $(WARLOCK_OUT) \
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt $(USBSER_FILES) -l ../warlock/ddi_dki_impl.ll
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Huntwarlock_with_usba: $(WARLOCK_OUT) usbser_files \
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt $(WLCMD_DIR)/usbsprl_with_usba.wlcmd usba_files ohci_files uhci_files \
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt ehci_files warlock_ddi.files
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt $(WARLOCK) -c $(WLCMD_DIR)/usbsprl_with_usba.wlcmd \
30c0c7470d5bfabd8f43c563f4eca636d06cc484Tinderbox User $(USBA_FILES) $(OHCI_FILES) $(EHCI_FILES) $(UHCI_FILES) \
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt $(USBSER_FILES) \
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt $(WARLOCK_OUT) -l ../warlock/ddi_dki_impl.ll
usbser_files:
@cd ../usbser; pwd; $(MAKE) warlock
usba_files:
@cd ../usba;pwd; $(MAKE) warlock
uhci_files:
@cd ../uhci;pwd; $(MAKE) warlock
ohci_files:
@cd ../ohci;pwd; $(MAKE) warlock
ehci_files:
@cd ../ehci;pwd; $(MAKE) warlock
warlock_ddi.files:
cd ../warlock; pwd; $(MAKE) warlock