Makefile revision 0f1702c5201310f0529cd5abb77652e5e9b241b6
257N/A#
257N/A# CDDL HEADER START
257N/A#
257N/A# The contents of this file are subject to the terms of the
257N/A# Common Development and Distribution License (the "License").
257N/A# You may not use this file except in compliance with the License.
257N/A#
257N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
257N/A# or http://www.opensolaris.org/os/licensing.
257N/A# See the License for the specific language governing permissions
257N/A# and limitations under the License.
257N/A#
257N/A# When distributing Covered Code, include this CDDL HEADER in each
257N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
257N/A# If applicable, add the following below this CDDL HEADER, with the
257N/A# fields enclosed by brackets "[]" replaced with your own identifying
257N/A# information: Portions Copyright [yyyy] [name of copyright owner]
257N/A#
257N/A# CDDL HEADER END
257N/A#
257N/A#
257N/A# uts/intel/icmp/Makefile
844N/A#
257N/A# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
257N/A# Use is subject to license terms.
257N/A#
257N/A# This makefile drives the production of the icmp IP driver
257N/A#
257N/A# intel implementation architecture dependent
257N/A#
257N/A
844N/A#
844N/A# Path to the base of the uts directory tree (usually /usr/src/uts).
257N/A#
257N/AUTSBASE = ../..
257N/A
257N/A#
257N/A# Define the module and object file sets.
257N/A#
257N/AMODULE = icmp
257N/AOBJECTS = $(ICMP_OBJS:%=$(OBJS_DIR)/%)
257N/ALINTS = $(ICMP_OBJS:%.o=$(LINTS_DIR)/%.ln)
257N/AROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
257N/AROOTLINK = $(ROOT_STRMOD_DIR)/$(MODULE) $(ROOT_SOCK_DIR)/$(MODULE)
257N/ACONF_SRCDIR = $(UTSBASE)/common/inet/ip
257N/A
257N/A#
257N/A# Extra for $(MODULE).check target
257N/A#
257N/A# Need to remove ipddi.o since it has non-static defines for _init etc.
257N/AIP_CHECK_OBJS = $(IP_OBJS:ipddi.o=ip.o)
257N/AEXTRA_CHECK_OBJS = $(IP_CHECK_OBJS:%=../ip/$(OBJS_DIR)/%)
257N/A
257N/A#
257N/A# Include common rules.
617N/A#
617N/Ainclude $(UTSBASE)/intel/Makefile.intel
617N/A
617N/A#
617N/A# Define targets
257N/A#
257N/AALL_TARGET = $(BINARY) $(SRC_CONFFILE)
257N/ALINT_TARGET = $(MODULE).lint
257N/AINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOTLINK) $(ROOT_CONFFILE)
257N/A
257N/A#
257N/A# depends on ip and sockfs
257N/A#
257N/ALDFLAGS += -dy -Ndrv/ip -Nfs/sockfs
257N/A
#
# 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) $(SISCHECK_DEPS)
clean: $(CLEAN_DEPS) $(SISCLEAN_DEPS)
clobber: $(CLOBBER_DEPS) $(SISCLEAN_DEPS)
lint: $(LINT_DEPS)
modlintlib: $(MODLINTLIB_DEPS)
clean.lint: $(CLEAN_LINT_DEPS)
install: $(INSTALL_DEPS) $(SISCHECK_DEPS)
$(ROOTLINK): $(ROOT_STRMOD_DIR) $(ROOT_SOCK_DIR) $(ROOTMODULE)
-$(RM) $@; ln $(ROOTMODULE) $@
#
# Include common targets.
#
include $(UTSBASE)/intel/Makefile.targ