Makefile revision 7014882c6a3672fd0e5d60200af8643ae53c5928
60b08185ce63023f22fd6b2ed0db8c0d119b2023yz#
60b08185ce63023f22fd6b2ed0db8c0d119b2023yz# CDDL HEADER START
60b08185ce63023f22fd6b2ed0db8c0d119b2023yz#
60b08185ce63023f22fd6b2ed0db8c0d119b2023yz# The contents of this file are subject to the terms of the
bb25c06cca41ca78e5fb87fbb8e81d55beb18c95jg# Common Development and Distribution License (the "License").
bb25c06cca41ca78e5fb87fbb8e81d55beb18c95jg# You may not use this file except in compliance with the License.
60b08185ce63023f22fd6b2ed0db8c0d119b2023yz#
60b08185ce63023f22fd6b2ed0db8c0d119b2023yz# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
60b08185ce63023f22fd6b2ed0db8c0d119b2023yz# or http://www.opensolaris.org/os/licensing.
60b08185ce63023f22fd6b2ed0db8c0d119b2023yz# See the License for the specific language governing permissions
60b08185ce63023f22fd6b2ed0db8c0d119b2023yz# and limitations under the License.
60b08185ce63023f22fd6b2ed0db8c0d119b2023yz#
60b08185ce63023f22fd6b2ed0db8c0d119b2023yz# When distributing Covered Code, include this CDDL HEADER in each
60b08185ce63023f22fd6b2ed0db8c0d119b2023yz# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
60b08185ce63023f22fd6b2ed0db8c0d119b2023yz# If applicable, add the following below this CDDL HEADER, with the
60b08185ce63023f22fd6b2ed0db8c0d119b2023yz# fields enclosed by brackets "[]" replaced with your own identifying
60b08185ce63023f22fd6b2ed0db8c0d119b2023yz# information: Portions Copyright [yyyy] [name of copyright owner]
60b08185ce63023f22fd6b2ed0db8c0d119b2023yz#
60b08185ce63023f22fd6b2ed0db8c0d119b2023yz# CDDL HEADER END
60b08185ce63023f22fd6b2ed0db8c0d119b2023yz#
60b08185ce63023f22fd6b2ed0db8c0d119b2023yz#
60b08185ce63023f22fd6b2ed0db8c0d119b2023yz#
489b7c4ab76ae8df137fbfcc2214f7baa52883a0Raymond Chen# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
60b08185ce63023f22fd6b2ed0db8c0d119b2023yz# Use is subject to license terms.
60b08185ce63023f22fd6b2ed0db8c0d119b2023yz#
60b08185ce63023f22fd6b2ed0db8c0d119b2023yz# uts/intel/usbsksp/Makefile
60b08185ce63023f22fd6b2ed0db8c0d119b2023yz
60b08185ce63023f22fd6b2ed0db8c0d119b2023yz#
60b08185ce63023f22fd6b2ed0db8c0d119b2023yz# This makefile drives the production of the Keyspan USB Serial
60b08185ce63023f22fd6b2ed0db8c0d119b2023yz# Adapter driver.
60b08185ce63023f22fd6b2ed0db8c0d119b2023yz#
60b08185ce63023f22fd6b2ed0db8c0d119b2023yz# Path to the base of the uts directory tree (usually /usr/src/uts).
60b08185ce63023f22fd6b2ed0db8c0d119b2023yz#
60b08185ce63023f22fd6b2ed0db8c0d119b2023yzUTSBASE = ../..
60b08185ce63023f22fd6b2ed0db8c0d119b2023yz
60b08185ce63023f22fd6b2ed0db8c0d119b2023yz#
60b08185ce63023f22fd6b2ed0db8c0d119b2023yz# Define the module and object file sets.
60b08185ce63023f22fd6b2ed0db8c0d119b2023yz#
60b08185ce63023f22fd6b2ed0db8c0d119b2023yzMODULE = usbsksp
60b08185ce63023f22fd6b2ed0db8c0d119b2023yzOBJECTS = $(USBSER_KEYSPAN_OBJS:%=$(OBJS_DIR)/%)
60b08185ce63023f22fd6b2ed0db8c0d119b2023yzLINTS = $(USBSER_KEYSPAN_OBJS:%.o=$(LINTS_DIR)/%.ln)
60b08185ce63023f22fd6b2ed0db8c0d119b2023yzROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997fritsWARLOCK_OUT = $(USBSER_KEYSPAN_OBJS:%.o=%.ll)
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997fritsWARLOCK_OK = $(MODULE).ok
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997fritsWLCMD_DIR = $(UTSBASE)/common/io/warlock
60b08185ce63023f22fd6b2ed0db8c0d119b2023yz
60b08185ce63023f22fd6b2ed0db8c0d119b2023yz#
60b08185ce63023f22fd6b2ed0db8c0d119b2023yz# Include common rules.
60b08185ce63023f22fd6b2ed0db8c0d119b2023yz#
60b08185ce63023f22fd6b2ed0db8c0d119b2023yzinclude $(UTSBASE)/intel/Makefile.intel
60b08185ce63023f22fd6b2ed0db8c0d119b2023yz
c138f478d2bc94e73ab8f6a084e323bec25e62f5yzLDFLAGS += -dy -Nmisc/usba -Nmisc/usbser -Nmisc/usbs49_fw
60b08185ce63023f22fd6b2ed0db8c0d119b2023yz
60b08185ce63023f22fd6b2ed0db8c0d119b2023yz#
60b08185ce63023f22fd6b2ed0db8c0d119b2023yz# Define targets
60b08185ce63023f22fd6b2ed0db8c0d119b2023yz#
60b08185ce63023f22fd6b2ed0db8c0d119b2023yzALL_TARGET = $(BINARY)
60b08185ce63023f22fd6b2ed0db8c0d119b2023yzLINT_TARGET = $(MODULE).lint
60b08185ce63023f22fd6b2ed0db8c0d119b2023yzINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
60b08185ce63023f22fd6b2ed0db8c0d119b2023yz
60b08185ce63023f22fd6b2ed0db8c0d119b2023yz.KEEP_STATE:
60b08185ce63023f22fd6b2ed0db8c0d119b2023yz
60b08185ce63023f22fd6b2ed0db8c0d119b2023yzall: $(ALL_DEPS)
60b08185ce63023f22fd6b2ed0db8c0d119b2023yz
60b08185ce63023f22fd6b2ed0db8c0d119b2023yzdef: $(DEF_DEPS)
60b08185ce63023f22fd6b2ed0db8c0d119b2023yz
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997fritsclean: $(CLEAN_DEPS)
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997frits $(RM) $(WARLOCK_OUT) $(WARLOCK_OK)
60b08185ce63023f22fd6b2ed0db8c0d119b2023yz
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997fritsclobber: $(CLOBBER_DEPS)
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997frits $(RM) $(WARLOCK_OUT) $(WARLOCK_OK)
60b08185ce63023f22fd6b2ed0db8c0d119b2023yz
60b08185ce63023f22fd6b2ed0db8c0d119b2023yzlint: $(LINT_DEPS)
60b08185ce63023f22fd6b2ed0db8c0d119b2023yz
60b08185ce63023f22fd6b2ed0db8c0d119b2023yzmodlintlib: $(MODLINTLIB_DEPS)
60b08185ce63023f22fd6b2ed0db8c0d119b2023yz
60b08185ce63023f22fd6b2ed0db8c0d119b2023yzclean.lint: $(CLEAN_LINT_DEPS)
60b08185ce63023f22fd6b2ed0db8c0d119b2023yz
60b08185ce63023f22fd6b2ed0db8c0d119b2023yzinstall: $(INSTALL_DEPS)
60b08185ce63023f22fd6b2ed0db8c0d119b2023yz
60b08185ce63023f22fd6b2ed0db8c0d119b2023yz#
60b08185ce63023f22fd6b2ed0db8c0d119b2023yz# Include common targets.
60b08185ce63023f22fd6b2ed0db8c0d119b2023yz#
60b08185ce63023f22fd6b2ed0db8c0d119b2023yzinclude $(UTSBASE)/intel/Makefile.targ
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997frits
7014882c6a3672fd0e5d60200af8643ae53c5928Richard LoweCERRWARN += -_gcc=-Wno-uninitialized
7014882c6a3672fd0e5d60200af8643ae53c5928Richard Lowe
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997frits#
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997frits# Defines for local commands.
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997frits#
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997fritsWLCC = wlcc
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997fritsTOUCH = touch
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997fritsWARLOCK = warlock
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997fritsTEST = test
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997frits
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997frits#
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997frits# warlock
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997frits#
bf56214c0556fa6864189c826d39dbe156bb22a0stevelWARLOCK_CMD = $(WLCMD_DIR)/usbser_keyspan.wlcmd
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997frits
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997fritsUSBSER_FILES = $(USBSER_OBJS:%.o=../usbser/%.ll)
489b7c4ab76ae8df137fbfcc2214f7baa52883a0Raymond ChenUSBA_FILES = $(USBA_WITHOUT_WUSB_OBJS:%.o=../usba/%.ll)
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997fritsUHCI_FILES = $(UHCI_OBJS:%.o=../uhci/%.ll)
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997fritsOHCI_FILES = $(OHCI_OBJS:%.o=../ohci/%.ll)
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997fritsEHCI_FILES = $(EHCI_OBJS:%.o=../ehci/%.ll)
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997frits
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997fritswarlock: $(WARLOCK_OK)
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997frits
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997frits$(WARLOCK_OK): warlock_with_usba warlock_with_usbser
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997frits $(TOUCH) $@
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997frits
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997frits%.ll: $(UTSBASE)/common/io/usb/clients/usbser/usbser_keyspan/%.c
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997frits $(WLCC) $(CPPFLAGS) -DDEBUG -o $@ $<
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997frits
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997fritswarlock_with_usbser: $(WARLOCK_OUT) usbser_files warlock_ddi.files \
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997frits $(WARLOCK_CMD)
bf56214c0556fa6864189c826d39dbe156bb22a0stevel $(WARLOCK) -c $(WARLOCK_CMD) $(WARLOCK_OUT) \
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997frits $(USBSER_FILES) -l ../warlock/ddi_dki_impl.ll
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997frits
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997fritswarlock_with_usba: $(WARLOCK_OUT) usbser_files \
bf56214c0556fa6864189c826d39dbe156bb22a0stevel $(WLCMD_DIR)/usbser_keyspan_with_usba.wlcmd \
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997frits usba_files ohci_files uhci_files ehci_files warlock_ddi.files
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997frits $(WARLOCK) -c $(WLCMD_DIR)/usbser_keyspan_with_usba.wlcmd \
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997frits $(USBA_FILES) $(OHCI_FILES) $(EHCI_FILES) $(UHCI_FILES) \
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997frits $(USBSER_FILES) \
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997frits $(WARLOCK_OUT) -l ../warlock/ddi_dki_impl.ll
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997frits
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997fritsusbser_files:
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997frits @cd ../usbser; pwd; $(MAKE) warlock
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997frits
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997fritsusba_files:
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997frits @cd ../usba;pwd; $(MAKE) warlock
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997frits
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997fritsuhci_files:
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997frits @cd ../uhci;pwd; $(MAKE) warlock
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997frits
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997fritsohci_files:
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997frits @cd ../ohci;pwd; $(MAKE) warlock
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997frits
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997fritsehci_files:
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997frits @cd ../ehci;pwd; $(MAKE) warlock
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997frits
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997fritswarlock_ddi.files:
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997frits cd ../warlock; pwd; $(MAKE) warlock