Makefile revision e2c88f0c2610f16de7b639746b40dea5f3e2256e
830N/A#
830N/A# CDDL HEADER START
830N/A#
830N/A# The contents of this file are subject to the terms of the
830N/A# Common Development and Distribution License (the "License").
830N/A# You may not use this file except in compliance with the License.
830N/A#
830N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
830N/A# or http://www.opensolaris.org/os/licensing.
830N/A# See the License for the specific language governing permissions
830N/A# and limitations under the License.
830N/A#
830N/A# When distributing Covered Code, include this CDDL HEADER in each
830N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
830N/A# If applicable, add the following below this CDDL HEADER, with the
830N/A# fields enclosed by brackets "[]" replaced with your own identifying
830N/A# information: Portions Copyright [yyyy] [name of copyright owner]
830N/A#
830N/A# CDDL HEADER END
830N/A#
830N/A#
830N/A# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
839N/A# Use is subject to license terms.
839N/A#
830N/A# Copyright 2014 Garrett D'Amore <garrett@damore.org>
830N/A#
830N/A# uts/sparc/scsa2usb/Makefile
830N/A#
830N/A# This makefile drives the production of the scsa2usb driver
830N/A# kernel module. sparc architecture dependent
830N/A#
830N/A
830N/A
830N/A#
830N/A# Path to the base of the uts directory tree (usually /usr/src/uts).
830N/A#
830N/AUTSBASE = ../..
830N/A
830N/A#
844N/A# Define the module and object file sets.
844N/A#
830N/AMODULE = scsa2usb
830N/AOBJECTS = $(SCSA2USB_OBJS:%=$(OBJS_DIR)/%)
830N/ALINTS = $(SCSA2USB_OBJS:%.o=$(LINTS_DIR)/%.ln)
830N/AROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
830N/ACONF_SRCDIR = $(UTSBASE)/common/io/usb/scsa2usb
830N/AWARLOCK_OUT = $(SCSA2USB_OBJS:%.o=%.ll)
830N/AWARLOCK_OK = $(MODULE).ok
830N/AWLCMD_DIR = $(UTSBASE)/common/io/warlock
830N/A
830N/A#
830N/A# Include common rules.
830N/A#
830N/Ainclude $(UTSBASE)/sparc/Makefile.sparc
830N/A
844N/A#
844N/A# lint pass one enforcement
830N/A#
902N/ACFLAGS += $(CCVERBOSE)
902N/A
854N/A# depends on misc/usba misc/scsi
854N/A#
830N/ALDFLAGS += -dy -Nmisc/usba -Nmisc/scsi
830N/A
830N/A#
902N/A# Define targets
854N/A#
854N/AALL_TARGET = $(BINARY) $(SRC_CONFILE)
854N/ALINT_TARGET = $(MODULE).lint
854N/AINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
854N/A
854N/ACERRWARN += -_gcc=-Wno-unused-label
865N/ACERRWARN += -_gcc=-Wno-uninitialized
1058N/A
1240N/A#
1240N/A# For now, disable these lint checks; maintainers should endeavor
854N/A# to investigate and remove these for maximum lint coverage.
902N/A# Please do not carry these forward to new Makefiles.
902N/A#
902N/ALINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
830N/A
830N/A.KEEP_STATE:
830N/A
830N/Aall: $(ALL_DEPS)
830N/A
830N/Adef: $(DEF_DEPS)
830N/A
830N/Aclean: $(CLEAN_DEPS)
830N/A $(RM) $(WARLOCK_OUT) $(WARLOCK_OK)
830N/A
830N/Aclobber: $(CLOBBER_DEPS)
830N/A $(RM) $(WARLOCK_OUT) $(WARLOCK_OK)
830N/A
830N/Alint: $(LINT_DEPS)
830N/A
902N/Amodlintlib: $(MODLINTLIB_DEPS)
902N/A
902N/Aclean.lint: $(CLEAN_LINT_DEPS)
830N/A
902N/Ainstall: $(INSTALL_DEPS)
830N/A
830N/A#
830N/A# Include common targets.
830N/A#
902N/Ainclude $(UTSBASE)/sparc/Makefile.targ
830N/A
830N/A#
830N/A# Defines for local commands.
830N/A#
830N/AWARLOCK = warlock
830N/AWLCC = wlcc
830N/ATOUCH = touch
830N/ATEST = test
830N/A
830N/A#
830N/A# lock_lint rules
830N/A#
830N/AUSBA_FILES = $(USBA_OBJS:%.o=../usba/%.ll)
830N/AUHCI_FILES = $(UHCI_OBJS:%.o=../uhci/%.ll)
830N/AOHCI_FILES = $(OHCI_OBJS:%.o=../ohci/%.ll)
830N/AEHCI_FILES = $(EHCI_OBJS:%.o=../ehci/%.ll)
990N/ASD_FILES = $(SD_OBJS:%.o=../sd/%.ll)
990N/AST_FILES = $(ST_OBJS:%.o=../st/%.ll)
990N/ASCSI_FILES = $(SCSI_OBJS:%.o= -l ../scsi/%.ll)
990N/ACMLB_FILES = $(CMLB_OBJS:%.o=-l ../cmlb/%.ll)
990N/A
990N/Awarlock: $(WARLOCK_OK) warlock_with_usba
990N/A
990N/A$(WARLOCK_OK): $(WARLOCK_OUT) $(WLCMD_DIR)/scsa2usb.wlcmd warlock_ddi.files \
990N/A scsi.files
990N/A $(WARLOCK) -c $(WLCMD_DIR)/scsa2usb.wlcmd $(WARLOCK_OUT) \
990N/A ../warlock/scsi.ll \
990N/A -l ../warlock/ddi_dki_impl.ll \
990N/A $(SCSI_FILES)
990N/A $(TOUCH) $@
990N/A
990N/A%.ll: $(UTSBASE)/common/io/usb/scsa2usb/%.c \
990N/A $(UTSBASE)/common/sys/usb/clients/mass_storage/usb_bulkonly.h \
830N/A $(UTSBASE)/common/sys/usb/clients/mass_storage/usb_cbi.h \
990N/A $(UTSBASE)/common/sys/usb/scsa2usb/scsa2usb.h
990N/A $(WLCC) $(CPPFLAGS) -DDEBUG -o $@ $<
830N/A
830N/Awarlock_with_usba: $(WLCMD_DIR)/scsa2usb_with_usba.wlcmd $(WARLOCK_OUT) \
830N/A usba_files ohci_files ehci_files uhci_files warlock_ddi.files sd.files \
830N/A st.files scsi.files cmlb.files
830N/A $(WARLOCK) -c $(WLCMD_DIR)/scsa2usb_with_usba.wlcmd \
830N/A $(USBA_FILES) $(OHCI_FILES) $(EHCI_FILES) $(UHCI_FILES) \
830N/A $(SD_FILES) \
830N/A $(ST_FILES) \
830N/A $(SCSI_FILES) \
830N/A $(CMLB_FILES) \
830N/A $(WARLOCK_OUT) \
830N/A -l ../warlock/ddi_dki_impl.ll
830N/A
830N/Ausba_files:
830N/A @cd ../usba;pwd; $(MAKE) warlock
830N/A
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
scsi.files:
@cd ../scsi; pwd; $(MAKE) warlock
sd.files:
@cd ../sd; pwd; $(MAKE) warlock_alone
cmlb.files:
@cd ../cmlb; pwd; $(MAKE) warlock
st.files:
@cd ../st; pwd; $(MAKE) warlock_alone