Makefile revision 88447a05f537aabe9a1bc3d5313f22581ec992a7
1131N/A#
1131N/A# CDDL HEADER START
1131N/A#
1131N/A# The contents of this file are subject to the terms of the
1131N/A# Common Development and Distribution License (the "License").
1131N/A# You may not use this file except in compliance with the License.
1131N/A#
1131N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
1131N/A# or http://www.opensolaris.org/os/licensing.
1131N/A# See the License for the specific language governing permissions
1131N/A# and limitations under the License.
1131N/A#
1131N/A# When distributing Covered Code, include this CDDL HEADER in each
1131N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1131N/A# If applicable, add the following below this CDDL HEADER, with the
1131N/A# fields enclosed by brackets "[]" replaced with your own identifying
1131N/A# information: Portions Copyright [yyyy] [name of copyright owner]
1131N/A#
1131N/A# CDDL HEADER END
1131N/A#
1131N/A#
1131N/A# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
1131N/A# Use is subject to license terms.
1131N/A#
1131N/A# uts/sparc/usb_ah/Makefile
1131N/A#
1389N/A# This makefile drives the production of the usb_ah streams module.
1131N/A# sparc architecture dependent
1131N/A#
1131N/A
1418N/A
1828N/A#
1389N/A# Path to the base of the uts directory tree (usually /usr/src/uts).
1389N/A#
1389N/AUTSBASE = ../..
1884N/A
1389N/A#
1389N/A# Define the module and object file sets.
1828N/A#
1828N/AMODULE = usb_ah
1828N/AOBJECTS = $(USB_AH_OBJS:%=$(OBJS_DIR)/%)
1828N/ALINTS = $(USB_AH_OBJS:%.o=$(LINTS_DIR)/%.ln)
1828N/AROOTMODULE = $(ROOT_STRMOD_DIR)/$(MODULE)
1828N/AWARLOCK_OUT = $(USB_AH_OBJS:%.o=%.ll)
1828N/AWARLOCK_OK = $(MODULE).ok
1828N/AWLCMD_DIR = $(UTSBASE)/common/io/warlock
1828N/A
1131N/A#
1131N/A# Include common rules.
1131N/A#
1131N/Ainclude $(UTSBASE)/sparc/Makefile.sparc
1828N/A
1828N/A#
1828N/A# lint pass one enforcement
1828N/A#
1828N/ACFLAGS += $(CCVERBOSE)
1131N/A
1131N/A#
1131N/A# depends on usba, hidparser and audio related misc modules
1131N/A#
1828N/ALDFLAGS += -dy -Nmisc/usba -Nmisc/hidparser -Ndrv/usb_ac
1828N/A
1828N/A#
1131N/A# Define targets
1131N/A#
1131N/AALL_TARGET = $(BINARY)
1389N/ALINT_TARGET = $(MODULE).lint
1389N/AINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
1389N/A
1828N/A#
1828N/A# For now, disable these lint checks; maintainers should endeavor
1828N/A# to investigate and remove these for maximum lint coverage.
1828N/A# Please do not carry these forward to new Makefiles.
1828N/A#
1828N/ALINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
1828N/A
1828N/A.KEEP_STATE:
1828N/A
1828N/Aall: $(ALL_DEPS)
1828N/A
1828N/Adef: $(DEF_DEPS)
1828N/A
1828N/Aclean: $(CLEAN_DEPS)
1828N/A $(RM) $(WARLOCK_OUT) $(WARLOCK_OK)
1828N/A
1828N/Aclobber: $(CLOBBER_DEPS)
1828N/A $(RM) $(WARLOCK_OUT) $(WARLOCK_OK)
1828N/A
1828N/Alint: $(LINT_DEPS)
1828N/A
1828N/Amodlintlib: $(MODLINTLIB_DEPS)
1828N/A
1828N/Aclean.lint: $(CLEAN_LINT_DEPS)
1828N/A
1828N/Ainstall: $(INSTALL_DEPS)
1828N/A
1828N/A#
1828N/A# Include common targets.
1828N/A#
1828N/Ainclude $(UTSBASE)/sparc/Makefile.targ
1828N/A
1828N/A#
1828N/A# Defines for local commands.
1828N/A#
1828N/AWARLOCK = warlock
1828N/AWLCC = wlcc
1828N/ATOUCH = touch
1828N/ATEST = test
1828N/A
1828N/A#
1828N/A# lock_lint rules
1828N/A#
1828N/Awarlock: $(WARLOCK_OK)
1828N/A
1828N/A$(WARLOCK_OK): $(WARLOCK_OUT) $(WLCMD_DIR)/usb_ah.wlcmd warlock_ddi.files
1828N/A $(WARLOCK) -c $(WLCMD_DIR)/usb_ah.wlcmd $(WARLOCK_OUT) \
1828N/A -l ../warlock/ddi_dki_impl.ll
1828N/A $(TOUCH) $@
1828N/A
1828N/A%.ll: $(UTSBASE)/common/io/usb/clients/audio/usb_ah/%.c \
1389N/A $(UTSBASE)/common/sys/usb/clients/audio/usb_ah/usb_ah.h
1828N/A $(WLCC) $(CPPFLAGS) -DDEBUG -o $@ $<
1828N/A
1828N/Awarlock_ddi.files:
1828N/A cd ../warlock; pwd; $(MAKE) warlock
1828N/A
1828N/A