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