Makefile revision 89b43686db1fe9681d80a7cf5662730cb9378cae
0N/A#
0N/A# CDDL HEADER START
0N/A#
0N/A# The contents of this file are subject to the terms of the
0N/A# Common Development and Distribution License (the "License").
0N/A# You may not use this file except in compliance with the License.
0N/A#
0N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
0N/A# or http://www.opensolaris.org/os/licensing.
0N/A# See the License for the specific language governing permissions
0N/A# and limitations under the License.
0N/A#
0N/A# When distributing Covered Code, include this CDDL HEADER in each
405N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
0N/A# If applicable, add the following below this CDDL HEADER, with the
0N/A# fields enclosed by brackets "[]" replaced with your own identifying
0N/A# information: Portions Copyright [yyyy] [name of copyright owner]
0N/A#
0N/A# CDDL HEADER END
0N/A#
1369N/A#
0N/A# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
376N/A# Use is subject to license terms.
0N/A# Copyright (c) 2011 Bayard G. Bell. All rights reserved.
1318N/A#
234N/A# This makefile drives the production of the emlxs driver kernel module.
0N/A#
1318N/A# Path to the base of the uts directory tree (usually /usr/src/uts).
1318N/A#
428N/AUTSBASE = ../../
816N/ACOMMON_BASE = ../../../common
0N/A
1416N/A#
0N/A# Define the module and object file sets.
1416N/A#
1318N/AMODULE = emlxs
0N/AOBJECTS = $(EMLXS_OBJS:%=$(OBJS_DIR)/%)
0N/ALINTS = $(EMLXS_OBJS:%.o=$(LINTS_DIR)/%.ln)
816N/AROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
928N/ACONF_SRCDIR = $(UTSBASE)/common/io/fibre-channel/fca/emlxs
928N/A
928N/A#
428N/A# Include common rules.
986N/A#
350N/AARCHDIR = sparc
1185N/Ainclude ../Makefile.$(ARCHDIR)
0N/A
234N/A#
125N/A# Define targets
615N/A#
0N/AALL_TARGET = $(BINARY) $(SRC_CONFILE)
0N/ALINT_TARGET = $(MODULE).lint
0N/AINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
1195N/A
0N/AEMLXS_FLAGS = -DEMLXS_SPARC
0N/AEMLXS_FLAGS += -DS11
0N/AEMLXS_FLAGS += -DVERSION=\"11\"
0N/AEMLXS_FLAGS += -DMACH=\"$(MACH)\"
0N/AEMLXS_CFLAGS = $(EMLXS_FLAGS)
816N/AEMLXS_LFLAGS = $(EMLXS_FLAGS)
928N/ACFLAGS += $(EMLXS_CFLAGS) -DEMLXS_ARCH=\"64\"
1318N/ALINTTAGS += $(EMLXS_LFLAGS) -DEMLXS_ARCH=\"64\"
1369N/A
1416N/A
0N/A#
0N/A# Overrides and depends_on
615N/A#
1416N/AINC_PATH += -I$(ROOT)/usr/include
1416N/AINC_PATH += -I$(UTSBASE)/common/sys
1416N/AINC_PATH += -I$(COMMON_BASE)/bignum
1416N/AINC_PATH += -I$(UTSBASE)/common/sys/fibre-channel
947N/AINC_PATH += -I$(UTSBASE)/common/sys/fibre-channel/fca
947N/AINC_PATH += -I$(UTSBASE)/common/sys/fibre-channel/fca/emlxs
947N/AINC_PATH += -I$(UTSBASE)/common/sys/fibre-channel/impl
1416N/AINC_PATH += -I$(UTSBASE)/common/sys/fibre-channel/ulp
1416N/A
1416N/ALDFLAGS += -dy -Nmisc/md5 -Nmisc/sha1
1416N/ALDFLAGS += -Nmisc/bignum -Nmisc/fctl
0N/A
0N/A#
0N/A# For now, disable these lint checks; maintainers should endeavor
0N/A# to investigate and remove these for maximum lint coverage.
0N/A#
0N/ALINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
0N/ALINTTAGS += -erroff=E_STATIC_UNUSED
0N/ALINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
0N/ALINTTAGS += -erroff=E_SUSPICIOUS_COMPARISON
0N/ALINTTAGS += -erroff=E_INCONS_VAL_TYPE_DECL2
0N/A
0N/A#
0N/A# Default build targets.
0N/A#
0N/A.KEEP_STATE:
0N/A
0N/Adef: $(DEF_DEPS)
0N/A
0N/Aall: $(ALL_DEPS)
0N/A
0N/Aclean: $(CLEAN_DEPS)
0N/A
0N/Aclobber: $(CLOBBER_DEPS)
0N/A
986N/Alint: $(LINT_DEPS)
0N/A
0N/Amodlintlib: $(MODLINTLIB_DEPS)
816N/A
816N/Aclean.lint: $(CLEAN_LINT_DEPS)
816N/A
1416N/Ainstall: $(INSTALL_DEPS)
234N/A
234N/A#
1238N/A# Include common targets.
816N/A#
1416N/Ainclude ../Makefile.targ
1416N/A