Makefile revision bf56214c0556fa6864189c826d39dbe156bb22a0
235N/A#
235N/A# CDDL HEADER START
822N/A#
822N/A# The contents of this file are subject to the terms of the
822N/A# Common Development and Distribution License (the "License").
235N/A# You may not use this file except in compliance with the License.
1088N/A#
235N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
235N/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#
919N/A# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
919N/A# Use is subject to license terms.
919N/A#
919N/A#ident "%Z%%M% %I% %E% SMI"
235N/A
235N/A#
235N/A# uts/sparc/usbvc/Makefile
822N/A# This makefile drives the production of the usbvc kernel driver.
235N/A#
970N/A# sparc architecture dependent
970N/A#
970N/A
970N/A#
970N/A# Path to the base of the uts directory tree (usually /usr/src/uts).
970N/A#
970N/AUTSBASE = ../..
1003N/A
970N/A#
235N/A# Define the module and object file sets.
1124N/A#
235N/AMODULE = usbvc
911N/AOBJECTS = $(USBVC_OBJS:%=$(OBJS_DIR)/%)
1124N/ALINTS = $(USBVC_OBJS:%.o=$(LINTS_DIR)/%.ln)
1124N/AROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
911N/AWARLOCK_OUT = $(USBVC_OBJS:%.o=%.ll)
235N/AWARLOCK_OK = $(MODULE).ok
493N/AWLCMD_DIR = $(UTSBASE)/common/io/warlock
493N/A
235N/A#
235N/A# Include common rules.
235N/A#
235N/Ainclude $(UTSBASE)/sparc/Makefile.sparc
822N/A
235N/A#
1124N/A# lint pass one enforcement
1124N/A#
1124N/ACFLAGS += $(CCVERBOSE)
235N/A
1124N/A#
235N/A# depends on misc/usba
235N/ALDFLAGS += -dy -Nmisc/usba
235N/A
235N/A#
235N/A# Define targets
1124N/A#
1124N/AALL_TARGET = $(BINARY)
1124N/ALINT_TARGET = $(MODULE).lint
1124N/AINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
1124N/A
1124N/A#
822N/A# Disable this because it is necessary for this driver
822N/A# and it is surely safe
981N/A#
235N/ALINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
1124N/A
1124N/A.KEEP_STATE:
1124N/A
970N/Aall: $(ALL_DEPS)
970N/A
970N/Adef: $(DEF_DEPS)
970N/A
970N/Aclean: $(CLEAN_DEPS)
970N/A $(RM) $(WARLOCK_OUT) $(WARLOCK_OK)
970N/A
947N/Aclobber: $(CLOBBER_DEPS)
235N/A $(RM) $(WARLOCK_OUT) $(WARLOCK_OK)
247N/A
947N/Alint: $(LINT_DEPS)
235N/A
247N/Amodlintlib: $(MODLINTLIB_DEPS)
947N/A
947N/Aclean.lint: $(CLEAN_LINT_DEPS)
970N/A
970N/Ainstall: $(INSTALL_DEPS)
947N/A
947N/A#
947N/A# Include common targets.
947N/A#
947N/Ainclude $(UTSBASE)/sparc/Makefile.targ
947N/A
235N/A#
241N/A# Defines for local commands.
493N/A#
493N/AWARLOCK = warlock
235N/AWLCC = wlcc
493N/ATOUCH = touch
493N/ATEST = test
1124N/A
963N/A#
1124N/A# lock_lint rules
1124N/A#
1097N/AUSBA_FILES = $(USBA_OBJS:%.o=../usba/%.ll)
493N/AUHCI_FILES = $(UHCI_OBJS:%.o=../uhci/%.ll)
1097N/AOHCI_FILES = $(OHCI_OBJS:%.o=../ohci/%.ll)
1097N/AEHCI_FILES = $(EHCI_OBJS:%.o=../ehci/%.ll)
493N/A
235N/Awarlock: $(WARLOCK_OK) warlock_with_usba
1124N/A
1124N/A$(WARLOCK_OK): $(WARLOCK_OUT) $(WLCMD_DIR)/usbvc.wlcmd warlock_ddi.files
1124N/A $(WARLOCK) -c $(WLCMD_DIR)/usbvc.wlcmd $(WARLOCK_OUT) \
1124N/A -l ../warlock/ddi_dki_impl.ll
1124N/A $(TOUCH) $@
1124N/A
1124N/A%.ll: $(UTSBASE)/common/io/usb/clients/video/usbvc/%.c \
1124N/A $(UTSBASE)/common/sys/usb/clients/video/usbvc/usbvc_var.h
1124N/A $(WLCC) $(CPPFLAGS) -DDEBUG -o $@ $<
1124N/A
970N/Awarlock_with_usba: $(WLCMD_DIR)/usbvc_with_usba.wlcmd $(WARLOCK_OUT) \
970N/A usba_files ohci_files ehci_files uhci_files warlock_ddi.files
970N/A $(WARLOCK) -c $(WLCMD_DIR)/usbvc_with_usba.wlcmd \
1097N/A $(USBA_FILES) $(OHCI_FILES) $(EHCI_FILES) $(UHCI_FILES) \
1097N/A $(WARLOCK_OUT) \
1097N/A -l ../warlock/ddi_dki_impl.ll
1030N/A
822N/Ausba_files:
235N/A @cd ../usba;pwd; $(MAKE) warlock
235N/A
822N/Auhci_files:
822N/A @cd ../uhci;pwd; $(MAKE) warlock
963N/A
963N/Aohci_files:
935N/A @cd ../ohci;pwd; $(MAKE) warlock
935N/A
935N/Aehci_files:
935N/A @cd ../ehci;pwd; $(MAKE) warlock
935N/A
1088N/Awarlock_ddi.files:
235N/A cd ../warlock; pwd; $(MAKE) warlock
935N/A