Makefile revision d29f5a711240f866521445b1656d114da090335e
235N/A#
235N/A# CDDL HEADER START
822N/A#
822N/A# The contents of this file are subject to the terms of the
822N/A# Common Development and Distribution License (the "License").
235N/A# You may not use this file except in compliance with the License.
606N/A#
810N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
235N/A# or http://www.opensolaris.org/os/licensing.
235N/A# See the License for the specific language governing permissions
235N/A# and limitations under the License.
235N/A#
235N/A# When distributing Covered Code, include this CDDL HEADER in each
235N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
235N/A# If applicable, add the following below this CDDL HEADER, with the
235N/A# fields enclosed by brackets "[]" replaced with your own identifying
235N/A# information: Portions Copyright [yyyy] [name of copyright owner]
235N/A#
235N/A# CDDL HEADER END
235N/A#
235N/A#
235N/A#
235N/A# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
235N/A# Use is subject to license terms.
235N/A#
235N/A# uts/intel/usbsksp/Makefile
235N/A
235N/A#
235N/A# This makefile drives the production of the Keyspan USB Serial
235N/A# Adapter driver.
235N/A#
235N/A# Path to the base of the uts directory tree (usually /usr/src/uts).
235N/A#
235N/AUTSBASE = ../..
822N/A
235N/A#
235N/A# Define the module and object file sets.
235N/A#
822N/AMODULE = usbsksp
235N/AOBJECTS = $(USBSER_KEYSPAN_OBJS:%=$(OBJS_DIR)/%)
235N/ALINTS = $(USBSER_KEYSPAN_OBJS:%.o=$(LINTS_DIR)/%.ln)
822N/AROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
235N/AWARLOCK_OUT = $(USBSER_KEYSPAN_OBJS:%.o=%.ll)
235N/AWARLOCK_OK = $(MODULE).ok
493N/AWLCMD_DIR = $(UTSBASE)/common/io/warlock
493N/A
235N/A#
235N/A# Include common rules.
235N/A#
235N/Ainclude $(UTSBASE)/intel/Makefile.intel
822N/A
235N/ALDFLAGS += -dy -Nmisc/usba -Nmisc/usbser -Nmisc/usbs49_fw
235N/A
822N/A#
235N/A# Define targets
235N/A#
235N/AALL_TARGET = $(BINARY)
235N/ALINT_TARGET = $(MODULE).lint
235N/AINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
822N/A
822N/A.KEEP_STATE:
822N/A
235N/Aall: $(ALL_DEPS)
822N/A
822N/Adef: $(DEF_DEPS)
822N/A
822N/Aclean: $(CLEAN_DEPS)
235N/A $(RM) $(WARLOCK_OUT) $(WARLOCK_OK)
235N/A
235N/Aclobber: $(CLOBBER_DEPS)
247N/A $(RM) $(WARLOCK_OUT) $(WARLOCK_OK)
247N/A
247N/Alint: $(LINT_DEPS)
235N/A
247N/Amodlintlib: $(MODLINTLIB_DEPS)
247N/A
235N/Aclean.lint: $(CLEAN_LINT_DEPS)
235N/A
241N/Ainstall: $(INSTALL_DEPS)
493N/A
493N/A#
235N/A# Include common targets.
493N/A#
493N/Ainclude $(UTSBASE)/intel/Makefile.targ
822N/A
822N/A#
493N/A# Defines for local commands.
493N/A#
822N/AWLCC = wlcc
822N/ATOUCH = touch
822N/AWARLOCK = warlock
493N/ATEST = test
822N/A
822N/A#
822N/A# warlock
493N/A#
235N/AWARLOCK_CMD = $(WLCMD_DIR)/usbser_keyspan.wlcmd
822N/A
235N/AUSBSER_FILES = $(USBSER_OBJS:%.o=../usbser/%.ll)
235N/AUSBA_FILES = $(USBA_OBJS:%.o=../usba/%.ll)
822N/AUHCI_FILES = $(UHCI_OBJS:%.o=../uhci/%.ll)
822N/AOHCI_FILES = $(OHCI_OBJS:%.o=../ohci/%.ll)
822N/AEHCI_FILES = $(EHCI_OBJS:%.o=../ehci/%.ll)
235N/A
235N/Awarlock: $(WARLOCK_OK)
235N/A
235N/A$(WARLOCK_OK): warlock_with_usba warlock_with_usbser
235N/A $(TOUCH) $@
235N/A
235N/A%.ll: $(UTSBASE)/common/io/usb/clients/usbser/usbser_keyspan/%.c
235N/A $(WLCC) $(CPPFLAGS) -DDEBUG -o $@ $<
235N/A
235N/Awarlock_with_usbser: $(WARLOCK_OUT) usbser_files warlock_ddi.files \
235N/A $(WARLOCK_CMD)
235N/A $(WARLOCK) -c $(WARLOCK_CMD) $(WARLOCK_OUT) \
235N/A $(USBSER_FILES) -l ../warlock/ddi_dki_impl.ll
235N/A
822N/Awarlock_with_usba: $(WARLOCK_OUT) usbser_files \
822N/A $(WLCMD_DIR)/usbser_keyspan_with_usba.wlcmd \
822N/A usba_files ohci_files uhci_files ehci_files warlock_ddi.files
822N/A $(WARLOCK) -c $(WLCMD_DIR)/usbser_keyspan_with_usba.wlcmd \
247N/A $(USBA_FILES) $(OHCI_FILES) $(EHCI_FILES) $(UHCI_FILES) \
247N/A $(USBSER_FILES) \
247N/A $(WARLOCK_OUT) -l ../warlock/ddi_dki_impl.ll
247N/A
247N/Ausbser_files:
247N/A @cd ../usbser; pwd; $(MAKE) warlock
247N/A
822N/Ausba_files:
235N/A @cd ../usba;pwd; $(MAKE) warlock
493N/A
493N/Auhci_files:
493N/A @cd ../uhci;pwd; $(MAKE) warlock
822N/A
235N/Aohci_files:
493N/A @cd ../ohci;pwd; $(MAKE) warlock
493N/A
822N/Aehci_files:
606N/A @cd ../ehci;pwd; $(MAKE) warlock
822N/A
822N/Awarlock_ddi.files:
822N/A cd ../warlock; pwd; $(MAKE) warlock
235N/A