Makefile revision bb25c06cca41ca78e5fb87fbb8e81d55beb18c95
80N/A#
80N/A# CDDL HEADER START
80N/A#
80N/A# The contents of this file are subject to the terms of the
80N/A# Common Development and Distribution License (the "License").
80N/A# You may not use this file except in compliance with the License.
80N/A#
80N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
80N/A# or http://www.opensolaris.org/os/licensing.
80N/A# See the License for the specific language governing permissions
80N/A# and limitations under the License.
80N/A#
80N/A# When distributing Covered Code, include this CDDL HEADER in each
80N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
80N/A# If applicable, add the following below this CDDL HEADER, with the
80N/A# fields enclosed by brackets "[]" replaced with your own identifying
80N/A# information: Portions Copyright [yyyy] [name of copyright owner]
80N/A#
80N/A# CDDL HEADER END
80N/A#
3817N/A#
80N/A# uts/sparc/icmp/Makefile
80N/A# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
80N/A# Use is subject to license terms.
80N/A#
2969N/A#ident "%Z%%M% %I% %E% SMI"
618N/A#
80N/A# This makefile drives the production of the icmp IP driver
1462N/A#
682N/A# sparc architecture dependent
844N/A#
2969N/A
80N/A#
80N/A# Path to the base of the uts directory tree (usually /usr/src/uts).
1258N/A#
1258N/AUTSBASE = ../..
2969N/A
2899N/A#
3817N/A# Define the module and object file sets.
3817N/A#
3817N/AMODULE = icmp
80N/AOBJECTS = $(ICMP_OBJS:%=$(OBJS_DIR)/%)
99N/ALINTS = $(ICMP_OBJS:%.o=$(LINTS_DIR)/%.ln)
99N/AROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
80N/AROOTLINK = $(ROOT_STRMOD_DIR)/$(MODULE)
80N/ACONF_SRCDIR = $(UTSBASE)/common/inet/ip
80N/A
80N/A#
1462N/A# Extra for $(MODULE).check target
1462N/A#
80N/A# Need to remove ipddi.o since it has non-static defines for _init etc.
1462N/AIP_CHECK_OBJS = $(IP_OBJS:ipddi.o=ip.o)
1462N/AEXTRA_CHECK_OBJS = $(IP_CHECK_OBJS:%=../ip/$(OBJS_DIR)/%)
1462N/A
1462N/A#
1462N/A# Include common rules.
1462N/A#
1462N/Ainclude $(UTSBASE)/sparc/Makefile.sparc
1462N/A
80N/A#
1462N/A# Define targets
3477N/A#
3477N/AALL_TARGET = $(BINARY) $(SRC_CONFFILE)
1462N/ALINT_TARGET = $(MODULE).lint
1462N/AINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOTLINK) $(ROOT_CONFFILE)
1462N/A
1462N/A#
1462N/A# lint pass one enforcement
1462N/A#
1462N/ACFLAGS += $(CCVERBOSE)
80N/A
80N/A#
3817N/A# depends on ip
3817N/A#
3817N/ALDFLAGS += -dy -Ndrv/ip
#
# 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_PTRDIFF_OVERFLOW
LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
#
# 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)
$(ROOTLINK): $(ROOT_STRMOD_DIR) $(ROOTMODULE)
-$(RM) $@; ln $(ROOTMODULE) $@
#
# Include common targets.
#
include $(UTSBASE)/sparc/Makefile.targ