Makefile revision 7014882c6a3672fd0e5d60200af8643ae53c5928
a3e011a6940a2707d43148e12f3d3cd6fd388794Luke Smith#
a3e011a6940a2707d43148e12f3d3cd6fd388794Luke Smith# CDDL HEADER START
a3e011a6940a2707d43148e12f3d3cd6fd388794Luke Smith#
a3e011a6940a2707d43148e12f3d3cd6fd388794Luke Smith# The contents of this file are subject to the terms of the
a3e011a6940a2707d43148e12f3d3cd6fd388794Luke Smith# Common Development and Distribution License (the "License").
a3e011a6940a2707d43148e12f3d3cd6fd388794Luke Smith# You may not use this file except in compliance with the License.
a3e011a6940a2707d43148e12f3d3cd6fd388794Luke Smith#
a3e011a6940a2707d43148e12f3d3cd6fd388794Luke Smith# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
a3e011a6940a2707d43148e12f3d3cd6fd388794Luke Smith# or http://www.opensolaris.org/os/licensing.
a3e011a6940a2707d43148e12f3d3cd6fd388794Luke Smith# See the License for the specific language governing permissions
a3e011a6940a2707d43148e12f3d3cd6fd388794Luke Smith# and limitations under the License.
a3e011a6940a2707d43148e12f3d3cd6fd388794Luke Smith#
a3e011a6940a2707d43148e12f3d3cd6fd388794Luke Smith# When distributing Covered Code, include this CDDL HEADER in each
a3e011a6940a2707d43148e12f3d3cd6fd388794Luke Smith# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
a3e011a6940a2707d43148e12f3d3cd6fd388794Luke Smith# If applicable, add the following below this CDDL HEADER, with the
a3e011a6940a2707d43148e12f3d3cd6fd388794Luke Smith# fields enclosed by brackets "[]" replaced with your own identifying
a3e011a6940a2707d43148e12f3d3cd6fd388794Luke Smith# information: Portions Copyright [yyyy] [name of copyright owner]
a3e011a6940a2707d43148e12f3d3cd6fd388794Luke Smith#
986d46e1f8a2501ef935698e05d42680baa247a2Luke Smith# CDDL HEADER END
31612db490241e6dee678a0a97fc4a177af8222dLuke Smith#
31612db490241e6dee678a0a97fc4a177af8222dLuke Smith#
# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
#
# Path to the base of the uts directory tree (usually /usr/src/uts).
#
UTSBASE = ../..
#
# Define the module and object file sets.
#
MODULE = aggr
OBJECTS = $(AGGR_OBJS:%=$(OBJS_DIR)/%)
LINTS = $(AGGR_OBJS:%.o=$(LINTS_DIR)/%.ln)
ROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
CONF_SRCDIR = $(UTSBASE)/common/io/aggr
#
# Include common rules.
#
include $(UTSBASE)/intel/Makefile.intel
#
# Define targets
#
ALL_TARGET = $(BINARY) $(SRC_CONFILE)
LINT_TARGET = $(MODULE).lint
INSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
#
# Overrides
#
CFLAGS += $(CCVERBOSE)
LDFLAGS += -dy -Ndrv/dld -Nmisc/mac -Nmisc/dls
#
# For now, disable these lint checks; maintainers should endeavor
# to investigate and remove these for maximum lint coverage.
# Please do not carry these forward to new Makefiles.
#
LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
CERRWARN += -_gcc=-Wno-unused-label
CERRWARN += -_gcc=-Wno-uninitialized
CERRWARN += -_gcc=-Wno-switch
CERRWARN += -_gcc=-Wno-parentheses
CERRWARN += -_gcc=-Wno-unused-variable
#
# Default build targets.
#
.KEEP_STATE:
def: $(DEF_DEPS)
all: $(ALL_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)/intel/Makefile.targ