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