4de2612967d06c4fdbf524a62556a1e8118a006fxs#
4de2612967d06c4fdbf524a62556a1e8118a006fxs# CDDL HEADER START
4de2612967d06c4fdbf524a62556a1e8118a006fxs#
4de2612967d06c4fdbf524a62556a1e8118a006fxs# 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.
4de2612967d06c4fdbf524a62556a1e8118a006fxs#
4de2612967d06c4fdbf524a62556a1e8118a006fxs# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
4de2612967d06c4fdbf524a62556a1e8118a006fxs# or http://www.opensolaris.org/os/licensing.
4de2612967d06c4fdbf524a62556a1e8118a006fxs# See the License for the specific language governing permissions
4de2612967d06c4fdbf524a62556a1e8118a006fxs# and limitations under the License.
4de2612967d06c4fdbf524a62556a1e8118a006fxs#
4de2612967d06c4fdbf524a62556a1e8118a006fxs# When distributing Covered Code, include this CDDL HEADER in each
4de2612967d06c4fdbf524a62556a1e8118a006fxs# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
4de2612967d06c4fdbf524a62556a1e8118a006fxs# If applicable, add the following below this CDDL HEADER, with the
4de2612967d06c4fdbf524a62556a1e8118a006fxs# fields enclosed by brackets "[]" replaced with your own identifying
4de2612967d06c4fdbf524a62556a1e8118a006fxs# information: Portions Copyright [yyyy] [name of copyright owner]
4de2612967d06c4fdbf524a62556a1e8118a006fxs#
4de2612967d06c4fdbf524a62556a1e8118a006fxs# CDDL HEADER END
4de2612967d06c4fdbf524a62556a1e8118a006fxs#
4de2612967d06c4fdbf524a62556a1e8118a006fxs#
4de2612967d06c4fdbf524a62556a1e8118a006fxs# uts/sparc/usbsprl/Makefile
4de2612967d06c4fdbf524a62556a1e8118a006fxs#
489b7c4ab76ae8df137fbfcc2214f7baa52883a0Raymond Chen# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
4de2612967d06c4fdbf524a62556a1e8118a006fxs# Use is subject to license terms.
4de2612967d06c4fdbf524a62556a1e8118a006fxs#
e2c88f0c2610f16de7b639746b40dea5f3e2256eGarrett D'Amore# Copyright 2014 Garrett D'Amore <garrett@damore.org>
4de2612967d06c4fdbf524a62556a1e8118a006fxs#
4de2612967d06c4fdbf524a62556a1e8118a006fxs# This makefile drives the production of the Prolific USB Serial
4de2612967d06c4fdbf524a62556a1e8118a006fxs# Adapter driver.
4de2612967d06c4fdbf524a62556a1e8118a006fxs#
4de2612967d06c4fdbf524a62556a1e8118a006fxs# Path to the base of the uts directory tree (usually /usr/src/uts).
4de2612967d06c4fdbf524a62556a1e8118a006fxs#
4de2612967d06c4fdbf524a62556a1e8118a006fxsUTSBASE = ../..
4de2612967d06c4fdbf524a62556a1e8118a006fxs
4de2612967d06c4fdbf524a62556a1e8118a006fxs#
4de2612967d06c4fdbf524a62556a1e8118a006fxs# Define the module and object file sets.
4de2612967d06c4fdbf524a62556a1e8118a006fxs#
4de2612967d06c4fdbf524a62556a1e8118a006fxsMODULE = usbsprl
4de2612967d06c4fdbf524a62556a1e8118a006fxsOBJECTS = $(USBSPRL_OBJS:%=$(OBJS_DIR)/%)
4de2612967d06c4fdbf524a62556a1e8118a006fxsLINTS = $(USBSPRL_OBJS:%.o=$(LINTS_DIR)/%.ln)
4de2612967d06c4fdbf524a62556a1e8118a006fxsROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997fritsWARLOCK_OUT = $(USBSPRL_OBJS:%.o=%.ll)
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997fritsWARLOCK_OK = $(MODULE).ok
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997fritsWLCMD_DIR = $(UTSBASE)/common/io/warlock
4de2612967d06c4fdbf524a62556a1e8118a006fxs
4de2612967d06c4fdbf524a62556a1e8118a006fxs#
4de2612967d06c4fdbf524a62556a1e8118a006fxs# Include common rules.
4de2612967d06c4fdbf524a62556a1e8118a006fxs#
4de2612967d06c4fdbf524a62556a1e8118a006fxsinclude $(UTSBASE)/sparc/Makefile.sparc
4de2612967d06c4fdbf524a62556a1e8118a006fxs
4de2612967d06c4fdbf524a62556a1e8118a006fxs#
4de2612967d06c4fdbf524a62556a1e8118a006fxs# lint pass one enforcement
4de2612967d06c4fdbf524a62556a1e8118a006fxs#
4de2612967d06c4fdbf524a62556a1e8118a006fxsCFLAGS += $(CCVERBOSE)
4de2612967d06c4fdbf524a62556a1e8118a006fxs
7014882c6a3672fd0e5d60200af8643ae53c5928Richard LoweCERRWARN += -_gcc=-Wno-uninitialized
7014882c6a3672fd0e5d60200af8643ae53c5928Richard Lowe
4de2612967d06c4fdbf524a62556a1e8118a006fxsLDFLAGS += -dy -Nmisc/usba -Nmisc/usbser
4de2612967d06c4fdbf524a62556a1e8118a006fxs
4de2612967d06c4fdbf524a62556a1e8118a006fxs#
4de2612967d06c4fdbf524a62556a1e8118a006fxs# Define targets
4de2612967d06c4fdbf524a62556a1e8118a006fxs#
4de2612967d06c4fdbf524a62556a1e8118a006fxsALL_TARGET = $(BINARY)
4de2612967d06c4fdbf524a62556a1e8118a006fxsLINT_TARGET = $(MODULE).lint
4de2612967d06c4fdbf524a62556a1e8118a006fxsINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
4de2612967d06c4fdbf524a62556a1e8118a006fxs
4de2612967d06c4fdbf524a62556a1e8118a006fxs.KEEP_STATE:
4de2612967d06c4fdbf524a62556a1e8118a006fxs
4de2612967d06c4fdbf524a62556a1e8118a006fxsall: $(ALL_DEPS)
4de2612967d06c4fdbf524a62556a1e8118a006fxs
4de2612967d06c4fdbf524a62556a1e8118a006fxsdef: $(DEF_DEPS)
4de2612967d06c4fdbf524a62556a1e8118a006fxs
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997fritsclean: $(CLEAN_DEPS)
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997frits $(RM) $(WARLOCK_OUT) $(WARLOCK_OK)
4de2612967d06c4fdbf524a62556a1e8118a006fxs
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997fritsclobber: $(CLOBBER_DEPS)
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997frits $(RM) $(WARLOCK_OUT) $(WARLOCK_OK)
4de2612967d06c4fdbf524a62556a1e8118a006fxs
4de2612967d06c4fdbf524a62556a1e8118a006fxslint: $(LINT_DEPS)
4de2612967d06c4fdbf524a62556a1e8118a006fxs
4de2612967d06c4fdbf524a62556a1e8118a006fxsmodlintlib: $(MODLINTLIB_DEPS)
4de2612967d06c4fdbf524a62556a1e8118a006fxs
4de2612967d06c4fdbf524a62556a1e8118a006fxsclean.lint: $(CLEAN_LINT_DEPS)
4de2612967d06c4fdbf524a62556a1e8118a006fxs
4de2612967d06c4fdbf524a62556a1e8118a006fxsinstall: $(INSTALL_DEPS)
4de2612967d06c4fdbf524a62556a1e8118a006fxs
4de2612967d06c4fdbf524a62556a1e8118a006fxs#
4de2612967d06c4fdbf524a62556a1e8118a006fxs# Include common targets.
4de2612967d06c4fdbf524a62556a1e8118a006fxs#
4de2612967d06c4fdbf524a62556a1e8118a006fxsinclude $(UTSBASE)/sparc/Makefile.targ
4de2612967d06c4fdbf524a62556a1e8118a006fxs
4de2612967d06c4fdbf524a62556a1e8118a006fxs#
4de2612967d06c4fdbf524a62556a1e8118a006fxs# Defines for local commands.
4de2612967d06c4fdbf524a62556a1e8118a006fxs#
4de2612967d06c4fdbf524a62556a1e8118a006fxsWLCC = wlcc
4de2612967d06c4fdbf524a62556a1e8118a006fxsTOUCH = touch
4de2612967d06c4fdbf524a62556a1e8118a006fxsWARLOCK = warlock
4de2612967d06c4fdbf524a62556a1e8118a006fxsTEST = test
4de2612967d06c4fdbf524a62556a1e8118a006fxs
4de2612967d06c4fdbf524a62556a1e8118a006fxs#
4de2612967d06c4fdbf524a62556a1e8118a006fxs# warlock
4de2612967d06c4fdbf524a62556a1e8118a006fxs#
bf56214c0556fa6864189c826d39dbe156bb22a0stevelWARLOCK_CMD = $(WLCMD_DIR)/$(MODULE).wlcmd
4de2612967d06c4fdbf524a62556a1e8118a006fxsUSBSER_FILES = $(USBSER_OBJS:%.o=../usbser/%.ll)
e2c88f0c2610f16de7b639746b40dea5f3e2256eGarrett D'AmoreUSBA_FILES = $(USBA_OBJS:%.o=../usba/%.ll)
4de2612967d06c4fdbf524a62556a1e8118a006fxsUHCI_FILES = $(UHCI_OBJS:%.o=../uhci/%.ll)
4de2612967d06c4fdbf524a62556a1e8118a006fxsOHCI_FILES = $(OHCI_OBJS:%.o=../ohci/%.ll)
4de2612967d06c4fdbf524a62556a1e8118a006fxsEHCI_FILES = $(EHCI_OBJS:%.o=../ehci/%.ll)
4de2612967d06c4fdbf524a62556a1e8118a006fxs
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997fritswarlock: $(WARLOCK_OK)
4de2612967d06c4fdbf524a62556a1e8118a006fxs
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997frits$(WARLOCK_OK): warlock_with_usbser warlock_with_usba
4de2612967d06c4fdbf524a62556a1e8118a006fxs $(TOUCH) $@
4de2612967d06c4fdbf524a62556a1e8118a006fxs
4de2612967d06c4fdbf524a62556a1e8118a006fxs%.ll: $(UTSBASE)/common/io/usb/clients/usbser/usbsprl/%.c
4de2612967d06c4fdbf524a62556a1e8118a006fxs $(WLCC) $(CPPFLAGS) -DDEBUG -o $@ $<
4de2612967d06c4fdbf524a62556a1e8118a006fxs
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997fritswarlock_with_usbser: $(WARLOCK_OUT) usbser_files warlock_ddi.files \
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997frits $(WARLOCK_CMD)
bf56214c0556fa6864189c826d39dbe156bb22a0stevel $(WARLOCK) -c $(WARLOCK_CMD) $(WARLOCK_OUT) \
4de2612967d06c4fdbf524a62556a1e8118a006fxs $(USBSER_FILES) -l ../warlock/ddi_dki_impl.ll
4de2612967d06c4fdbf524a62556a1e8118a006fxs
bf56214c0556fa6864189c826d39dbe156bb22a0stevelwarlock_with_usba: $(WLCMD_DIR)/usbsprl_with_usba.wlcmd $(WARLOCK_OUT) \
bf56214c0556fa6864189c826d39dbe156bb22a0stevel usbser_files usba_files ohci_files uhci_files ehci_files \
bf56214c0556fa6864189c826d39dbe156bb22a0stevel warlock_ddi.files
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997frits $(WARLOCK) -c $(WLCMD_DIR)/usbsprl_with_usba.wlcmd \
4de2612967d06c4fdbf524a62556a1e8118a006fxs $(USBA_FILES) $(OHCI_FILES) $(EHCI_FILES) $(UHCI_FILES) \
4de2612967d06c4fdbf524a62556a1e8118a006fxs $(USBSER_FILES) \
4de2612967d06c4fdbf524a62556a1e8118a006fxs $(WARLOCK_OUT) -l ../warlock/ddi_dki_impl.ll
4de2612967d06c4fdbf524a62556a1e8118a006fxs
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997fritsusbser_files:
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997frits @cd ../usbser; pwd; $(MAKE) warlock
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997frits
4de2612967d06c4fdbf524a62556a1e8118a006fxsusba_files:
4de2612967d06c4fdbf524a62556a1e8118a006fxs @cd ../usba;pwd; $(MAKE) warlock
4de2612967d06c4fdbf524a62556a1e8118a006fxs
4de2612967d06c4fdbf524a62556a1e8118a006fxsuhci_files:
4de2612967d06c4fdbf524a62556a1e8118a006fxs @cd ../uhci;pwd; $(MAKE) warlock
4de2612967d06c4fdbf524a62556a1e8118a006fxs
4de2612967d06c4fdbf524a62556a1e8118a006fxsohci_files:
4de2612967d06c4fdbf524a62556a1e8118a006fxs @cd ../ohci;pwd; $(MAKE) warlock
4de2612967d06c4fdbf524a62556a1e8118a006fxs
4de2612967d06c4fdbf524a62556a1e8118a006fxsehci_files:
4de2612967d06c4fdbf524a62556a1e8118a006fxs @cd ../ehci;pwd; $(MAKE) warlock
4de2612967d06c4fdbf524a62556a1e8118a006fxs
4de2612967d06c4fdbf524a62556a1e8118a006fxswarlock_ddi.files:
4de2612967d06c4fdbf524a62556a1e8118a006fxs cd ../warlock; pwd; $(MAKE) warlock