Makefile revision e2c88f0c2610f16de7b639746b40dea5f3e2256e
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsync#
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsync# CDDL HEADER START
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsync#
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsync# The contents of this file are subject to the terms of the
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsync# Common Development and Distribution License (the "License").
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsync# You may not use this file except in compliance with the License.
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsync#
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsync# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsync# or http://www.opensolaris.org/os/licensing.
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsync# See the License for the specific language governing permissions
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsync# and limitations under the License.
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsync#
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsync# When distributing Covered Code, include this CDDL HEADER in each
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsync# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsync# If applicable, add the following below this CDDL HEADER, with the
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsync# fields enclosed by brackets "[]" replaced with your own identifying
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsync# information: Portions Copyright [yyyy] [name of copyright owner]
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsync#
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsync# CDDL HEADER END
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsync#
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsync#
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsync# uts/sparc/usbsprl/Makefile
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsync#
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsync# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsync# Use is subject to license terms.
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsync#
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsync# Copyright 2014 Garrett D'Amore <garrett@damore.org>
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsync#
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsync# This makefile drives the production of the Prolific USB Serial
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsync# Adapter driver.
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsync#
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsync# Path to the base of the uts directory tree (usually /usr/src/uts).
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsync#
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsyncUTSBASE = ../..
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsync
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsync#
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsync# Define the module and object file sets.
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsync#
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsyncMODULE = usbsprl
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsyncOBJECTS = $(USBSPRL_OBJS:%=$(OBJS_DIR)/%)
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsyncLINTS = $(USBSPRL_OBJS:%.o=$(LINTS_DIR)/%.ln)
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsyncROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsyncWARLOCK_OUT = $(USBSPRL_OBJS:%.o=%.ll)
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsyncWARLOCK_OK = $(MODULE).ok
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsyncWLCMD_DIR = $(UTSBASE)/common/io/warlock
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsync
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsync#
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsync# Include common rules.
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsync#
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsyncinclude $(UTSBASE)/sparc/Makefile.sparc
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsync
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsync#
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsync# lint pass one enforcement
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsync#
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsyncCFLAGS += $(CCVERBOSE)
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsync
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsyncCERRWARN += -_gcc=-Wno-uninitialized
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsync
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsyncLDFLAGS += -dy -Nmisc/usba -Nmisc/usbser
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsync
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsync#
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsync# Define targets
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsync#
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsyncALL_TARGET = $(BINARY)
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsyncLINT_TARGET = $(MODULE).lint
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsyncINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsync
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsync.KEEP_STATE:
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsync
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsyncall: $(ALL_DEPS)
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsync
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsyncdef: $(DEF_DEPS)
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsync
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsyncclean: $(CLEAN_DEPS)
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsync $(RM) $(WARLOCK_OUT) $(WARLOCK_OK)
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsync
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsyncclobber: $(CLOBBER_DEPS)
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsync $(RM) $(WARLOCK_OUT) $(WARLOCK_OK)
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsync
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsynclint: $(LINT_DEPS)
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsync
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsyncmodlintlib: $(MODLINTLIB_DEPS)
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsync
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsyncclean.lint: $(CLEAN_LINT_DEPS)
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsync
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsyncinstall: $(INSTALL_DEPS)
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsync
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsync#
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsync# Include common targets.
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsync#
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsyncinclude $(UTSBASE)/sparc/Makefile.targ
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsync
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsync#
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsync# Defines for local commands.
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsync#
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsyncWLCC = wlcc
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsyncTOUCH = touch
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsyncWARLOCK = warlock
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsyncTEST = test
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsync
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsync#
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsync# warlock
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsync#
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsyncWARLOCK_CMD = $(WLCMD_DIR)/$(MODULE).wlcmd
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsyncUSBSER_FILES = $(USBSER_OBJS:%.o=../usbser/%.ll)
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsyncUSBA_FILES = $(USBA_OBJS:%.o=../usba/%.ll)
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsyncUHCI_FILES = $(UHCI_OBJS:%.o=../uhci/%.ll)
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsyncOHCI_FILES = $(OHCI_OBJS:%.o=../ohci/%.ll)
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsyncEHCI_FILES = $(EHCI_OBJS:%.o=../ehci/%.ll)
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsync
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsyncwarlock: $(WARLOCK_OK)
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsync
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsync$(WARLOCK_OK): warlock_with_usbser warlock_with_usba
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsync $(TOUCH) $@
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsync
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsync%.ll: $(UTSBASE)/common/io/usb/clients/usbser/usbsprl/%.c
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsync $(WLCC) $(CPPFLAGS) -DDEBUG -o $@ $<
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsync
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsyncwarlock_with_usbser: $(WARLOCK_OUT) usbser_files warlock_ddi.files \
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsync $(WARLOCK_CMD)
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsync $(WARLOCK) -c $(WARLOCK_CMD) $(WARLOCK_OUT) \
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsync $(USBSER_FILES) -l ../warlock/ddi_dki_impl.ll
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsync
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsyncwarlock_with_usba: $(WLCMD_DIR)/usbsprl_with_usba.wlcmd $(WARLOCK_OUT) \
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsync usbser_files usba_files ohci_files uhci_files ehci_files \
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsync warlock_ddi.files
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsync $(WARLOCK) -c $(WLCMD_DIR)/usbsprl_with_usba.wlcmd \
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsync $(USBA_FILES) $(OHCI_FILES) $(EHCI_FILES) $(UHCI_FILES) \
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsync $(USBSER_FILES) \
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsync $(WARLOCK_OUT) -l ../warlock/ddi_dki_impl.ll
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsync
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsyncusbser_files:
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsync @cd ../usbser; pwd; $(MAKE) warlock
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsync
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsyncusba_files:
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsync @cd ../usba;pwd; $(MAKE) warlock
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsync
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsyncuhci_files:
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsync @cd ../uhci;pwd; $(MAKE) warlock
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsync
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsyncohci_files:
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsync @cd ../ohci;pwd; $(MAKE) warlock
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsync
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsyncehci_files:
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsync @cd ../ehci;pwd; $(MAKE) warlock
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsync
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsyncwarlock_ddi.files:
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsync cd ../warlock; pwd; $(MAKE) warlock
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsync