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