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