Makefile revision 7c478bd95313f5f23a4c958a745db2134aa03244
98N/A#
98N/A# CDDL HEADER START
98N/A#
98N/A# The contents of this file are subject to the terms of the
98N/A# Common Development and Distribution License, Version 1.0 only
98N/A# (the "License"). You may not use this file except in compliance
98N/A# with the License.
98N/A#
98N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
98N/A# or http://www.opensolaris.org/os/licensing.
98N/A# See the License for the specific language governing permissions
98N/A# and limitations under the License.
98N/A#
98N/A# When distributing Covered Code, include this CDDL HEADER in each
98N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
98N/A# If applicable, add the following below this CDDL HEADER, with the
98N/A# fields enclosed by brackets "[]" replaced with your own identifying
98N/A# information: Portions Copyright [yyyy] [name of copyright owner]
98N/A#
98N/A# CDDL HEADER END
98N/A#
98N/A#
98N/A# uts/sparc/hid/Makefile
98N/A
98N/A# Copyright 2005 Sun Microsystems, Inc. All rights reserved.
98N/A# Use is subject to license terms.
98N/A#
98N/A#ident "%Z%%M% %I% %E% SMI"
98N/A#
98N/A# This makefile drives the production of the hid kernel driver.
98N/A#
98N/A# sparc architecture dependent
212N/A#
98N/A
98N/A#
98N/A# Path to the base of the uts directory tree (usually /usr/src/uts).
98N/A#
98N/AUTSBASE = ../..
156N/A
156N/A#
156N/A# Define the module and object file sets.
156N/A#
98N/AMODULE = hid
98N/AOBJECTS = $(HID_OBJS:%=$(OBJS_DIR)/%)
98N/ALINTS = $(HID_OBJS:%.o=$(LINTS_DIR)/%.ln)
98N/AWARLOCK_OUT = $(HID_OBJS:%.o=%.ll)
98N/AWARLOCK_OK = $(MODULE).ok
194N/AROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
98N/A
98N/A#
98N/A# Include common rules.
156N/A#
98N/Ainclude $(UTSBASE)/sparc/Makefile.sparc
98N/A
98N/A#
101N/A# lint pass one enforcement
98N/A#
191N/ACFLAGS += $(CCVERBOSE)
145N/A
194N/A#
194N/A# depends on misc/usba
207N/A#
98N/ALDFLAGS += -dy -Nmisc/usba -Nmisc/hidparser -Ndacf/consconfig_dacf
98N/A
98N/A#
98N/A# Define targets
98N/A#
98N/AALL_TARGET = $(BINARY)
98N/ALINT_TARGET = $(MODULE).lint
98N/AINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
98N/A
98N/A.KEEP_STATE:
98N/A
98N/Aall: $(ALL_DEPS)
98N/A
98N/Adef: $(DEF_DEPS)
98N/A
98N/Aclean: $(CLEAN_DEPS); \
98N/A $(RM) $(WARLOCK_OUT) $(WARLOCK_OK)
98N/A
98N/Aclobber: $(CLOBBER_DEPS); \
98N/A $(RM) $(WARLOCK_OUT) $(WARLOCK_OK)
98N/A
98N/Alint: $(LINT_DEPS)
98N/A
98N/Amodlintlib: $(MODLINTLIB_DEPS)
98N/A
98N/Aclean.lint: $(CLEAN_LINT_DEPS)
98N/A
98N/Ainstall: $(INSTALL_DEPS)
98N/A
98N/A#
140N/A# Include common targets.
154N/A#
158N/Ainclude $(UTSBASE)/sparc/Makefile.targ
161N/A
167N/A#
177N/A# Defines for local commands.
183N/A#
183N/AWARLOCK = warlock
98N/AWLCC = wlcc
98N/ATOUCH = touch
98N/ASCCS = sccs
98N/ATEST = test
98N/A
98N/A#
98N/A# lock_lint rules
98N/A#
98N/AHID_FILES = $(MODULE).ll
98N/AUSBA_FILES = $(USBA_OBJS:%.o=../usba/%.ll)
98N/AOHCI_FILES = $(OHCI_OBJS:%.o=../ohci/%.ll)
98N/AUHCI_FILES = $(UHCI_OBJS:%.o=../uhci/%.ll)
98N/AEHCI_FILES = $(EHCI_OBJS:%.o=../ehci/%.ll)
98N/A
98N/Awarlock: $(MODULE).ok warlock_with_usba
98N/A
98N/A%.wlcmd:
98N/A $(TEST) -f $@ || $(SCCS) get $@
98N/A
98N/Ahid.ok: hid.ll hid.wlcmd warlock_ddi.files
98N/A $(WARLOCK) -c hid.wlcmd $(HID_FILES) \
98N/A -l ../warlock/ddi_dki_impl.ll
98N/A $(TOUCH) $@
98N/A
98N/A%.ll: $(UTSBASE)/common/io/usb/clients/hid/%.c \
98N/A $(UTSBASE)/common/sys/usb/clients/hid/hidvar.h
98N/A $(WLCC) $(CPPFLAGS) -DDEBUG -o $@ $<
98N/A
98N/Awarlock_with_usba: hid.wlcmd $(HID_FILES) usba_files \
98N/A ohci_files ehci_files uhci_files warlock_ddi.files
98N/A $(WARLOCK) -c ./hid_with_usba.wlcmd \
98N/A $(USBA_FILES) \
98N/A $(UHCI_FILES) $(OHCI_FILES) $(EHCI_FILES) \
98N/A $(HID_FILES) \
98N/A -l ../warlock/ddi_dki_impl.ll
98N/A
98N/Ausba_files:
98N/A @cd ../usba;pwd; $(MAKE) warlock
167N/A
98N/Aohci_files:
98N/A @cd ../ohci;pwd; $(MAKE) warlock
156N/A
98N/Auhci_files:
98N/A @cd ../uhci;pwd; $(MAKE) warlock
98N/A
98N/Aehci_files:
98N/A @cd ../ehci;pwd; $(MAKE) warlock
171N/A
98N/Awarlock_ddi.files:
98N/A cd ../warlock; pwd; $(MAKE) warlock
98N/A
98N/A