Makefile revision bb25c06cca41ca78e5fb87fbb8e81d55beb18c95
667N/A#
667N/A# CDDL HEADER START
667N/A#
667N/A# The contents of this file are subject to the terms of the
667N/A# Common Development and Distribution License (the "License").
667N/A# You may not use this file except in compliance with the License.
667N/A#
667N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
667N/A# or http://www.opensolaris.org/os/licensing.
667N/A# See the License for the specific language governing permissions
667N/A# and limitations under the License.
667N/A#
667N/A# When distributing Covered Code, include this CDDL HEADER in each
667N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
667N/A# If applicable, add the following below this CDDL HEADER, with the
667N/A# fields enclosed by brackets "[]" replaced with your own identifying
667N/A# information: Portions Copyright [yyyy] [name of copyright owner]
667N/A#
667N/A# CDDL HEADER END
667N/A#
3639N/A
667N/A#
667N/A# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
667N/A# Use is subject to license terms.
667N/A#
667N/A
667N/A#ident "%Z%%M% %I% %E% SMI"
667N/A
667N/A#
844N/A# This makefile drives the production of the socal driver kernel
844N/A# module, which is used for the Photon/FC-AL product
667N/A#
1258N/A# sparc architecture dependent
667N/A#
2899N/A
2899N/A#
3817N/A# Path to the base of the uts directory tree (usually /usr/src/uts).
3817N/A#
3817N/AUTSBASE = ../..
667N/A
667N/A#
667N/A# Define the module and object file sets.
3639N/A#
3639N/AMODULE = socal
3639N/AOBJECTS = $(SOCAL_OBJS:%=$(OBJS_DIR)/%)
3639N/ALINTS = $(SOCAL_OBJS:%.o=$(LINTS_DIR)/%.ln)
3639N/AROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
3639N/A
3639N/A#
3639N/A# Include common rules.
3639N/A#
3659N/Ainclude $(UTSBASE)/sparc/Makefile.sparc
3659N/A
3659N/A#
3639N/A# Define targets
1475N/A#
1475N/AALL_TARGET = $(BINARY)
667N/ALINT_TARGET = $(MODULE).lint
3477N/AINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
3477N/A
667N/A#
667N/A# Overrides
3817N/A#
667N/ACFLAGS += $(CCVERBOSE) -dalign
667N/A
667N/A#
667N/A# For now, disable these lint checks; maintainers should endeavor
667N/A# to investigate and remove these for maximum lint coverage.
3817N/A# Please do not carry these forward to new Makefiles.
3817N/A#
LINTTAGS += -erroff=E_SUSPICIOUS_COMPARISON
LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
LINTTAGS += -erroff=E_SUPPRESSION_DIRECTIVE_UNUSED
LINTTAGS += -erroff=E_STATIC_UNUSED
LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW
LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
#
# Default build targets.
#
.KEEP_STATE:
all: $(ALL_DEPS)
def: $(DEF_DEPS)
clean: $(CLEAN_DEPS)
clobber: $(CLOBBER_DEPS)
lint: $(LINT_DEPS)
modlintlib: $(MODLINTLIB_DEPS)
clean.lint: $(CLEAN_LINT_DEPS)
install: $(INSTALL_DEPS)
#
# Include common targets.
#
include $(UTSBASE)/sparc/Makefile.targ
browser: $(BINARY)
browser := CFLAGS += -xsb