Makefile revision bb25c06cca41ca78e5fb87fbb8e81d55beb18c95
3349N/A#
3909N/A# CDDL HEADER START
3349N/A#
3349N/A# The contents of this file are subject to the terms of the
3349N/A# Common Development and Distribution License (the "License").
3349N/A# You may not use this file except in compliance with the License.
3349N/A#
3349N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
3349N/A# or http://www.opensolaris.org/os/licensing.
3349N/A# See the License for the specific language governing permissions
3349N/A# and limitations under the License.
3349N/A#
3349N/A# When distributing Covered Code, include this CDDL HEADER in each
3349N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
3349N/A# If applicable, add the following below this CDDL HEADER, with the
3349N/A# fields enclosed by brackets "[]" replaced with your own identifying
3349N/A# information: Portions Copyright [yyyy] [name of copyright owner]
3349N/A#
3349N/A# CDDL HEADER END
3349N/A#
3349N/A#
3349N/A# uts/sparc/log/Makefile
3349N/A# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
3349N/A# Use is subject to license terms.
3349N/A#
3349N/A#ident "%Z%%M% %I% %E% SMI"
3349N/A#
3349N/A# This makefile drives the production of the log driver
3349N/A# kernel module.
3349N/A#
3349N/A# sparc implementation architecture dependent
3349N/A#
3349N/A
3349N/A#
3349N/A# Path to the base of the uts directory tree (usually /usr/src/uts).
3349N/A#
3349N/AUTSBASE = ../..
3349N/A
3349N/A#
3349N/A# Define the module and object file sets.
3349N/A#
3349N/AMODULE = log
3349N/AOBJECTS = $(LOG_OBJS:%=$(OBJS_DIR)/%)
3349N/ALINTS = $(LOG_OBJS:%.o=$(LINTS_DIR)/%.ln)
3349N/AROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
3349N/ACONF_SRCDIR = $(UTSBASE)/common/io
3349N/A
3349N/A#
3349N/A# Include common rules.
3349N/A#
3349N/Ainclude $(UTSBASE)/sparc/Makefile.sparc
3349N/A
3349N/A#
3349N/A# Define targets
3349N/A#
3349N/AALL_TARGET = $(BINARY) $(SRC_CONFILE)
3349N/ALINT_TARGET = $(MODULE).lint
3349N/AINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
3349N/A
3349N/A#
3349N/A# Override defaults to build a unique, local modstubs.o.
3349N/A#
3349N/AMODSTUBS_DIR = $(OBJS_DIR)
3349N/A$(MODSTUBS_O) := AS_CPPFLAGS += -DLOG_MODULE
3349N/ACLEANFILES += $(MODSTUBS_O)
3349N/A
3349N/A#
3349N/A# lint pass one enforcement
3349N/A#
3349N/ACFLAGS += $(CCVERBOSE)
3349N/A
3349N/A#
3349N/A# For now, disable these lint checks; maintainers should endeavor
3349N/A# to investigate and remove these for maximum lint coverage.
3349N/A# Please do not carry these forward to new Makefiles.
3349N/A#
3349N/ALINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
3349N/ALINTTAGS += -erroff=E_PTRDIFF_OVERFLOW
3349N/A
3349N/A#
3349N/A# Default build targets.
3349N/A#
3349N/A.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)/sparc/Makefile.targ