Makefile revision bf56214c0556fa6864189c826d39dbe156bb22a0
107N/A#
107N/A# CDDL HEADER START
107N/A#
107N/A# The contents of this file are subject to the terms of the
107N/A# Common Development and Distribution License (the "License").
107N/A# You may not use this file except in compliance with the License.
107N/A#
107N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
107N/A# or http://www.opensolaris.org/os/licensing.
107N/A# See the License for the specific language governing permissions
107N/A# and limitations under the License.
107N/A#
107N/A# When distributing Covered Code, include this CDDL HEADER in each
107N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
107N/A# If applicable, add the following below this CDDL HEADER, with the
107N/A# fields enclosed by brackets "[]" replaced with your own identifying
107N/A# information: Portions Copyright [yyyy] [name of copyright owner]
107N/A#
873N/A# CDDL HEADER END
107N/A#
107N/A#
107N/A# uts/sparc/hid/Makefile
107N/A
107N/A# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
3231N/A# Use is subject to license terms.
107N/A#
107N/A#ident "%Z%%M% %I% %E% SMI"
2086N/A#
107N/A# This makefile drives the production of the hid kernel driver.
107N/A#
107N/A# sparc architecture dependent
107N/A#
107N/A
107N/A#
338N/A# Path to the base of the uts directory tree (usually /usr/src/uts).
107N/A#
2086N/AUTSBASE = ../..
107N/A
107N/A#
107N/A# Define the module and object file sets.
107N/A#
107N/AMODULE = hid
107N/AOBJECTS = $(HID_OBJS:%=$(OBJS_DIR)/%)
107N/ALINTS = $(HID_OBJS:%.o=$(LINTS_DIR)/%.ln)
107N/AROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
107N/AWARLOCK_OUT = $(HID_OBJS:%.o=%.ll)
107N/AWARLOCK_OK = $(MODULE).ok
107N/AWLCMD_DIR = $(UTSBASE)/common/io/warlock
107N/A
107N/A#
107N/A# Include common rules.
107N/A#
107N/Ainclude $(UTSBASE)/sparc/Makefile.sparc
107N/A
107N/A#
107N/A# lint pass one enforcement
107N/A#
107N/ACFLAGS += $(CCVERBOSE)
107N/A
107N/A#
107N/A# depends on misc/usba
107N/A#
107N/ALDFLAGS += -dy -Nmisc/usba -Nmisc/hidparser -Ndacf/consconfig_dacf
107N/A
107N/A#
107N/A# Define targets
107N/A#
107N/AALL_TARGET = $(BINARY)
107N/ALINT_TARGET = $(MODULE).lint
107N/AINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
107N/A
107N/A#
107N/A# For now, disable these lint checks; maintainers should endeavor
107N/A# to investigate and remove these for maximum lint coverage.
107N/A# Please do not carry these forward to new Makefiles.
107N/A#
107N/ALINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
107N/ALINTTAGS += -erroff=E_PTRDIFF_OVERFLOW
107N/ALINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
107N/ALINTTAGS += -erroff=E_SUPPRESSION_DIRECTIVE_UNUSED
107N/A
107N/A.KEEP_STATE:
107N/A
107N/Aall: $(ALL_DEPS)
107N/A
107N/Adef: $(DEF_DEPS)
107N/A
107N/Aclean: $(CLEAN_DEPS)
107N/A $(RM) $(WARLOCK_OUT) $(WARLOCK_OK)
107N/A
107N/Aclobber: $(CLOBBER_DEPS)
107N/A $(RM) $(WARLOCK_OUT) $(WARLOCK_OK)
107N/A
107N/Alint: $(LINT_DEPS)
107N/A
107N/Amodlintlib: $(MODLINTLIB_DEPS)
107N/A
107N/Aclean.lint: $(CLEAN_LINT_DEPS)
107N/A
107N/Ainstall: $(INSTALL_DEPS)
2086N/A
107N/A#
107N/A# Include common targets.
107N/A#
107N/Ainclude $(UTSBASE)/sparc/Makefile.targ
2086N/A
2086N/A#
2086N/A# Defines for local commands.
107N/A#
107N/AWARLOCK = warlock
107N/AWLCC = wlcc
107N/ATOUCH = touch
107N/ATEST = test
107N/A
107N/A#
107N/A# lock_lint rules
107N/A#
107N/AUSBA_FILES = $(USBA_OBJS:%.o=../usba/%.ll)
107N/AOHCI_FILES = $(OHCI_OBJS:%.o=../ohci/%.ll)
107N/AUHCI_FILES = $(UHCI_OBJS:%.o=../uhci/%.ll)
107N/AEHCI_FILES = $(EHCI_OBJS:%.o=../ehci/%.ll)
107N/A
107N/Awarlock: $(WARLOCK_OK) warlock_with_usba
107N/A
107N/A$(WARLOCK_OK): $(WARLOCK_OUT) $(WLCMD_DIR)/hid.wlcmd warlock_ddi.files
107N/A $(WARLOCK) -c $(WLCMD_DIR)/hid.wlcmd $(WARLOCK_OUT) \
107N/A -l ../warlock/ddi_dki_impl.ll
107N/A $(TOUCH) $@
107N/A
107N/A%.ll: $(UTSBASE)/common/io/usb/clients/hid/%.c \
2086N/A $(UTSBASE)/common/sys/usb/clients/hid/hidvar.h
107N/A $(WLCC) $(CPPFLAGS) -DDEBUG -o $@ $<
107N/A
107N/Awarlock_with_usba: $(WLCMD_DIR)/hid_with_usba.wlcmd $(WARLOCK_OUT) usba_files \
107N/A ohci_files ehci_files uhci_files warlock_ddi.files
2086N/A $(WARLOCK) -c $(WLCMD_DIR)/hid_with_usba.wlcmd \
2086N/A $(USBA_FILES) \
2086N/A $(UHCI_FILES) $(OHCI_FILES) $(EHCI_FILES) \
107N/A $(WARLOCK_OUT) \
107N/A -l ../warlock/ddi_dki_impl.ll
107N/A
107N/Ausba_files:
107N/A @cd ../usba;pwd; $(MAKE) warlock
107N/A
107N/Aohci_files:
107N/A @cd ../ohci;pwd; $(MAKE) warlock
107N/A
107N/Auhci_files:
107N/A @cd ../uhci;pwd; $(MAKE) warlock
107N/A
107N/Aehci_files:
107N/A @cd ../ehci;pwd; $(MAKE) warlock
107N/A
107N/Awarlock_ddi.files:
107N/A cd ../warlock; pwd; $(MAKE) warlock
107N/A
107N/A