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