Makefile revision 4ebb14b236958cfe1ef4ff3b7a50216d9e51f997
20184N/A#
12721N/A# CDDL HEADER START
20184N/A#
20184N/A# The contents of this file are subject to the terms of the
20184N/A# Common Development and Distribution License (the "License").
20184N/A# You may not use this file except in compliance with the License.
20184N/A#
20184N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
20184N/A# or http://www.opensolaris.org/os/licensing.
20184N/A# See the License for the specific language governing permissions
20184N/A# and limitations under the License.
20184N/A#
20184N/A# When distributing Covered Code, include this CDDL HEADER in each
20184N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
20184N/A# If applicable, add the following below this CDDL HEADER, with the
20184N/A# fields enclosed by brackets "[]" replaced with your own identifying
20184N/A# information: Portions Copyright [yyyy] [name of copyright owner]
20184N/A#
20184N/A# CDDL HEADER END
20184N/A#
20184N/A#
20184N/A# uts/sparc/hci1394/Makefile
20184N/A#
20184N/A# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
20184N/A# Use is subject to license terms.
20184N/A#
20184N/A#ident "%Z%%M% %I% %E% SMI"
20184N/A#
20184N/A# This makefile drives the production of the hci1394 OHCI HAL module.
20184N/A#
20184N/A# sparc architecture dependent
20184N/A#
20184N/A
20184N/A#
20184N/A# Path to the base of the uts directory tree (usually /usr/src/uts).
20184N/A#
20184N/AUTSBASE = ../..
20184N/A
20184N/A#
20184N/A# Define the module and object file sets.
20184N/A#
20184N/AMODULE = hci1394
20184N/AOBJECTS = $(HCI1394_OBJS:%=$(OBJS_DIR)/%)
20184N/ALINTS = $(HCI1394_OBJS:%.o=$(LINTS_DIR)/%.ln)
20184N/AROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
20184N/ACONF_SRCDIR = $(UTSBASE)/common/io/1394/adapters
20184N/ALDFLAGS += -dy -Nmisc/s1394
20184N/AWARLOCK_OUT = $(HCI1394_OBJS:%.o=%.ll)
20184N/AWARLOCK_OK = $(MODULE).ok
20184N/AWLCMD_DIR = $(UTSBASE)/common/io/warlock
20184N/A
20184N/A#
20184N/A# Include common rules.
20184N/A#
20184N/Ainclude $(UTSBASE)/sparc/Makefile.sparc
20184N/A
20184N/A#
20184N/A# Define targets
20184N/A#
20184N/AALL_TARGET = $(BINARY) $(SRC_CONFILE)
20184N/ALINT_TARGET = $(MODULE).lint
20184N/AINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
20184N/A
20184N/A#
20184N/A# Overrides
20184N/A#
20184N/AALL_BUILDS = $(ALL_BUILDSONLY64)
20184N/ADEF_BUILDS = $(DEF_BUILDSONLY64)
20184N/ACLEANLINTFILES += $(LINT32_FILES)
20184N/A
20184N/ADEBUG_DEFS_DBG32 += -DTNF_DEBUG
20184N/ADEBUG_DEFS_DBG64 += -DTNF_DEBUG
20184N/A
20184N/A#
20184N/A# lint pass one enforcement
20184N/A#
20184N/ACFLAGS += $(CCVERBOSE)
20184N/A
20184N/A#
20184N/A# For now, disable these lint checks; maintainers should endeavor
20184N/A# to investigate and remove these for maximum lint coverage.
20184N/A# Please do not carry these forward to new Makefiles.
20184N/A#
20184N/ALINTTAGS += -erroff=E_SUSPICIOUS_COMPARISON
20184N/ALINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
20184N/ALINTTAGS += -erroff=E_SUPPRESSION_DIRECTIVE_UNUSED
20184N/ALINTTAGS += -erroff=E_STATIC_UNUSED
20184N/ALINTTAGS += -erroff=E_PTRDIFF_OVERFLOW
20184N/ALINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
20184N/A
20184N/A#
20184N/A# Default build targets.
20184N/A#
20184N/A.KEEP_STATE:
20184N/A
20184N/Adef: $(DEF_DEPS)
20184N/A
20184N/Aall: $(ALL_DEPS)
20184N/A
20184N/Aclean: $(CLEAN_DEPS)
20184N/A $(RM) $(WARLOCK_OUT) $(WARLOCK_OK)
20184N/A
20184N/Aclobber: $(CLOBBER_DEPS)
20184N/A $(RM) $(WARLOCK_OUT) $(WARLOCK_OK)
20184N/A
20184N/Alint: $(LINT_DEPS)
20184N/A
20184N/Amodlintlib: $(MODLINTLIB_DEPS) lint32
20184N/A
20184N/Aclean.lint: $(CLEAN_LINT_DEPS)
20184N/A
20184N/Ainstall: $(INSTALL_DEPS)
20184N/A
20184N/A#
20184N/A# Include common targets.
20184N/A#
20184N/Ainclude $(UTSBASE)/sparc/Makefile.targ
20184N/A
20184N/A#
20184N/A# Defines for local commands.
20184N/A#
20184N/AWARLOCK = warlock
20184N/AWLCC = wlcc
20184N/ATOUCH = touch
20184N/ASCCS = sccs
20184N/ATEST = test
20184N/A
20184N/A#
20184N/A# Warlock targets
20184N/A#
20184N/AS1394_FILES = $(S1394_OBJS:%.o= -l ../s1394/%.ll)
20184N/A
20184N/Awarlock: $(WARLOCK_OK)
20184N/A
20184N/A%.wlcmd:
20184N/A cd $(WLCMD_DIR); $(TEST) -f $@ || $(SCCS) get $@
20184N/A
20184N/A$(WARLOCK_OK): $(WARLOCK_OUT) s1394.files warlock_ddi.files hci1394.wlcmd
20184N/A $(WARLOCK) -c $(WLCMD_DIR)/hci1394.wlcmd \
20184N/A $(WARLOCK_OUT) $(S1394_FILES) \
20184N/A -l ../warlock/ddi_dki_impl.ll
20184N/A $(TOUCH) $@
20184N/A
20184N/A%.ll: $(UTSBASE)/common/io/1394/adapters/%.c
20184N/A $(WLCC) $(CPPFLAGS) -DNPROBE -DDEBUG -o $@ $<
20184N/A
20184N/Awarlock_ddi.files:
20184N/A @cd ../warlock; pwd; $(MAKE) warlock
20184N/A
20184N/As1394.files:
20184N/A @cd ../s1394; pwd; $(MAKE) warlock
20184N/A
20184N/A