90f050286227cf4c4f8aa425555d04723d331d48yq#
90f050286227cf4c4f8aa425555d04723d331d48yq# CDDL HEADER START
90f050286227cf4c4f8aa425555d04723d331d48yq#
90f050286227cf4c4f8aa425555d04723d331d48yq# The contents of this file are subject to the terms of the
90f050286227cf4c4f8aa425555d04723d331d48yq# Common Development and Distribution License (the "License").
90f050286227cf4c4f8aa425555d04723d331d48yq# You may not use this file except in compliance with the License.
90f050286227cf4c4f8aa425555d04723d331d48yq#
90f050286227cf4c4f8aa425555d04723d331d48yq# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
90f050286227cf4c4f8aa425555d04723d331d48yq# or http://www.opensolaris.org/os/licensing.
90f050286227cf4c4f8aa425555d04723d331d48yq# See the License for the specific language governing permissions
90f050286227cf4c4f8aa425555d04723d331d48yq# and limitations under the License.
90f050286227cf4c4f8aa425555d04723d331d48yq#
90f050286227cf4c4f8aa425555d04723d331d48yq# When distributing Covered Code, include this CDDL HEADER in each
90f050286227cf4c4f8aa425555d04723d331d48yq# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
90f050286227cf4c4f8aa425555d04723d331d48yq# If applicable, add the following below this CDDL HEADER, with the
90f050286227cf4c4f8aa425555d04723d331d48yq# fields enclosed by brackets "[]" replaced with your own identifying
90f050286227cf4c4f8aa425555d04723d331d48yq# information: Portions Copyright [yyyy] [name of copyright owner]
90f050286227cf4c4f8aa425555d04723d331d48yq#
90f050286227cf4c4f8aa425555d04723d331d48yq# CDDL HEADER END
90f050286227cf4c4f8aa425555d04723d331d48yq#
90f050286227cf4c4f8aa425555d04723d331d48yq#
90f050286227cf4c4f8aa425555d04723d331d48yq# uts/sparc/usbsacm/Makefile
90f050286227cf4c4f8aa425555d04723d331d48yq#
d29f5a711240f866521445b1656d114da090335ezhigang lu - Sun Microsystems - Beijing China# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
90f050286227cf4c4f8aa425555d04723d331d48yq# Use is subject to license terms.
90f050286227cf4c4f8aa425555d04723d331d48yq#
90f050286227cf4c4f8aa425555d04723d331d48yq#
90f050286227cf4c4f8aa425555d04723d331d48yq# This makefile drives the production of Abstract Control Model of
90f050286227cf4c4f8aa425555d04723d331d48yq# USB Communication Devices Class dirver.
90f050286227cf4c4f8aa425555d04723d331d48yq#
90f050286227cf4c4f8aa425555d04723d331d48yq# Path to the base of the uts directory tree (usually /usr/src/uts).
90f050286227cf4c4f8aa425555d04723d331d48yq#
90f050286227cf4c4f8aa425555d04723d331d48yqUTSBASE = ../..
90f050286227cf4c4f8aa425555d04723d331d48yq
90f050286227cf4c4f8aa425555d04723d331d48yq#
90f050286227cf4c4f8aa425555d04723d331d48yq# Define the module and object file sets.
90f050286227cf4c4f8aa425555d04723d331d48yq#
90f050286227cf4c4f8aa425555d04723d331d48yqMODULE = usbsacm
90f050286227cf4c4f8aa425555d04723d331d48yqOBJECTS = $(USBSACM_OBJS:%=$(OBJS_DIR)/%)
90f050286227cf4c4f8aa425555d04723d331d48yqLINTS = $(USBSACM_OBJS:%.o=$(LINTS_DIR)/%.ln)
90f050286227cf4c4f8aa425555d04723d331d48yqROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
90f050286227cf4c4f8aa425555d04723d331d48yqWARLOCK_OUT = $(USBSACM_OBJS:%.o=%.ll)
90f050286227cf4c4f8aa425555d04723d331d48yqWARLOCK_OK = $(MODULE).ok
90f050286227cf4c4f8aa425555d04723d331d48yqWLCMD_DIR = $(UTSBASE)/common/io/warlock
90f050286227cf4c4f8aa425555d04723d331d48yq
90f050286227cf4c4f8aa425555d04723d331d48yq#
90f050286227cf4c4f8aa425555d04723d331d48yq# Include common rules.
90f050286227cf4c4f8aa425555d04723d331d48yq#
90f050286227cf4c4f8aa425555d04723d331d48yqinclude $(UTSBASE)/sparc/Makefile.sparc
90f050286227cf4c4f8aa425555d04723d331d48yq
90f050286227cf4c4f8aa425555d04723d331d48yq#
90f050286227cf4c4f8aa425555d04723d331d48yq# lint pass one enforcement
90f050286227cf4c4f8aa425555d04723d331d48yq#
90f050286227cf4c4f8aa425555d04723d331d48yqCFLAGS += $(CCVERBOSE)
90f050286227cf4c4f8aa425555d04723d331d48yq
90f050286227cf4c4f8aa425555d04723d331d48yqLDFLAGS += -dy -Nmisc/usba -Nmisc/usbser
90f050286227cf4c4f8aa425555d04723d331d48yq
7014882c6a3672fd0e5d60200af8643ae53c5928Richard LoweCERRWARN += -_gcc=-Wno-uninitialized
7014882c6a3672fd0e5d60200af8643ae53c5928Richard Lowe
90f050286227cf4c4f8aa425555d04723d331d48yq#
90f050286227cf4c4f8aa425555d04723d331d48yq# Define targets
90f050286227cf4c4f8aa425555d04723d331d48yq#
90f050286227cf4c4f8aa425555d04723d331d48yqALL_TARGET = $(BINARY)
90f050286227cf4c4f8aa425555d04723d331d48yqLINT_TARGET = $(MODULE).lint
90f050286227cf4c4f8aa425555d04723d331d48yqINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
90f050286227cf4c4f8aa425555d04723d331d48yq
90f050286227cf4c4f8aa425555d04723d331d48yq.KEEP_STATE:
90f050286227cf4c4f8aa425555d04723d331d48yq
90f050286227cf4c4f8aa425555d04723d331d48yqall: $(ALL_DEPS)
90f050286227cf4c4f8aa425555d04723d331d48yq
90f050286227cf4c4f8aa425555d04723d331d48yqdef: $(DEF_DEPS)
90f050286227cf4c4f8aa425555d04723d331d48yq
90f050286227cf4c4f8aa425555d04723d331d48yqclean: $(CLEAN_DEPS)
90f050286227cf4c4f8aa425555d04723d331d48yq $(RM) $(WARLOCK_OUT) $(WARLOCK_OK)
90f050286227cf4c4f8aa425555d04723d331d48yq
90f050286227cf4c4f8aa425555d04723d331d48yqclobber: $(CLOBBER_DEPS)
90f050286227cf4c4f8aa425555d04723d331d48yq $(RM) $(WARLOCK_OUT) $(WARLOCK_OK)
90f050286227cf4c4f8aa425555d04723d331d48yq
90f050286227cf4c4f8aa425555d04723d331d48yqlint: $(LINT_DEPS)
90f050286227cf4c4f8aa425555d04723d331d48yq
90f050286227cf4c4f8aa425555d04723d331d48yqmodlintlib: $(MODLINTLIB_DEPS)
90f050286227cf4c4f8aa425555d04723d331d48yq
90f050286227cf4c4f8aa425555d04723d331d48yqclean.lint: $(CLEAN_LINT_DEPS)
90f050286227cf4c4f8aa425555d04723d331d48yq
90f050286227cf4c4f8aa425555d04723d331d48yqinstall: $(INSTALL_DEPS)
90f050286227cf4c4f8aa425555d04723d331d48yq
90f050286227cf4c4f8aa425555d04723d331d48yq#
90f050286227cf4c4f8aa425555d04723d331d48yq# Include common targets.
90f050286227cf4c4f8aa425555d04723d331d48yq#
90f050286227cf4c4f8aa425555d04723d331d48yqinclude $(UTSBASE)/sparc/Makefile.targ
90f050286227cf4c4f8aa425555d04723d331d48yq
90f050286227cf4c4f8aa425555d04723d331d48yq#
90f050286227cf4c4f8aa425555d04723d331d48yq# Defines for local commands.
90f050286227cf4c4f8aa425555d04723d331d48yq#
90f050286227cf4c4f8aa425555d04723d331d48yqWLCC = wlcc
90f050286227cf4c4f8aa425555d04723d331d48yqTOUCH = touch
90f050286227cf4c4f8aa425555d04723d331d48yqWARLOCK = warlock
90f050286227cf4c4f8aa425555d04723d331d48yqTEST = test
90f050286227cf4c4f8aa425555d04723d331d48yq
90f050286227cf4c4f8aa425555d04723d331d48yq#
90f050286227cf4c4f8aa425555d04723d331d48yq# warlock
90f050286227cf4c4f8aa425555d04723d331d48yq#
bf56214c0556fa6864189c826d39dbe156bb22a0stevelWARLOCK_CMD = $(WLCMD_DIR)/$(MODULE).wlcmd
90f050286227cf4c4f8aa425555d04723d331d48yq
90f050286227cf4c4f8aa425555d04723d331d48yqUSBSER_FILES = $(USBSER_OBJS:%.o=../usbser/%.ll)
90f050286227cf4c4f8aa425555d04723d331d48yqUSBA_FILES = $(USBA_OBJS:%.o=../usba/%.ll)
90f050286227cf4c4f8aa425555d04723d331d48yqUHCI_FILES = $(UHCI_OBJS:%.o=../uhci/%.ll)
90f050286227cf4c4f8aa425555d04723d331d48yqOHCI_FILES = $(OHCI_OBJS:%.o=../ohci/%.ll)
90f050286227cf4c4f8aa425555d04723d331d48yqEHCI_FILES = $(EHCI_OBJS:%.o=../ehci/%.ll)
90f050286227cf4c4f8aa425555d04723d331d48yq
90f050286227cf4c4f8aa425555d04723d331d48yqwarlock: $(WARLOCK_OK)
90f050286227cf4c4f8aa425555d04723d331d48yq
90f050286227cf4c4f8aa425555d04723d331d48yq$(WARLOCK_OK): warlock_with_usbser warlock_with_usba
90f050286227cf4c4f8aa425555d04723d331d48yq $(TOUCH) $@
90f050286227cf4c4f8aa425555d04723d331d48yq
90f050286227cf4c4f8aa425555d04723d331d48yq%.ll: $(UTSBASE)/common/io/usb/clients/usbser/usbsacm/%.c
90f050286227cf4c4f8aa425555d04723d331d48yq $(WLCC) $(CPPFLAGS) -DDEBUG -o $@ $<
90f050286227cf4c4f8aa425555d04723d331d48yq
90f050286227cf4c4f8aa425555d04723d331d48yqwarlock_with_usbser: $(WARLOCK_OUT) usbser_files warlock_ddi.files \
90f050286227cf4c4f8aa425555d04723d331d48yq $(WARLOCK_CMD)
bf56214c0556fa6864189c826d39dbe156bb22a0stevel $(WARLOCK) -c $(WARLOCK_CMD) $(WARLOCK_OUT) \
90f050286227cf4c4f8aa425555d04723d331d48yq $(USBSER_FILES) -l ../warlock/ddi_dki_impl.ll
90f050286227cf4c4f8aa425555d04723d331d48yq
bf56214c0556fa6864189c826d39dbe156bb22a0stevelwarlock_with_usba: $(WLCMD_DIR)/usbsacm_with_usba.wlcmd $(WARLOCK_OUT) \
bf56214c0556fa6864189c826d39dbe156bb22a0stevel usbser_files usba_files ohci_files uhci_files ehci_files \
bf56214c0556fa6864189c826d39dbe156bb22a0stevel warlock_ddi.files
90f050286227cf4c4f8aa425555d04723d331d48yq $(WARLOCK) -c $(WLCMD_DIR)/usbsacm_with_usba.wlcmd \
90f050286227cf4c4f8aa425555d04723d331d48yq $(USBA_FILES) $(OHCI_FILES) $(EHCI_FILES) $(UHCI_FILES) \
90f050286227cf4c4f8aa425555d04723d331d48yq $(USBSER_FILES) \
90f050286227cf4c4f8aa425555d04723d331d48yq $(WARLOCK_OUT) -l ../warlock/ddi_dki_impl.ll
90f050286227cf4c4f8aa425555d04723d331d48yq
90f050286227cf4c4f8aa425555d04723d331d48yqusbser_files:
90f050286227cf4c4f8aa425555d04723d331d48yq @cd ../usbser; pwd; $(MAKE) warlock
90f050286227cf4c4f8aa425555d04723d331d48yq
90f050286227cf4c4f8aa425555d04723d331d48yqusba_files:
90f050286227cf4c4f8aa425555d04723d331d48yq @cd ../usba;pwd; $(MAKE) warlock
90f050286227cf4c4f8aa425555d04723d331d48yq
90f050286227cf4c4f8aa425555d04723d331d48yquhci_files:
90f050286227cf4c4f8aa425555d04723d331d48yq @cd ../uhci;pwd; $(MAKE) warlock
90f050286227cf4c4f8aa425555d04723d331d48yq
90f050286227cf4c4f8aa425555d04723d331d48yqohci_files:
90f050286227cf4c4f8aa425555d04723d331d48yq @cd ../ohci;pwd; $(MAKE) warlock
90f050286227cf4c4f8aa425555d04723d331d48yq
90f050286227cf4c4f8aa425555d04723d331d48yqehci_files:
90f050286227cf4c4f8aa425555d04723d331d48yq @cd ../ehci;pwd; $(MAKE) warlock
90f050286227cf4c4f8aa425555d04723d331d48yq
90f050286227cf4c4f8aa425555d04723d331d48yqwarlock_ddi.files:
90f050286227cf4c4f8aa425555d04723d331d48yq cd ../warlock; pwd; $(MAKE) warlock