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