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