Makefile revision 0f1702c5201310f0529cd5abb77652e5e9b241b6
1bc5499c2a0fc5d2b11849e97cdd6305a64eb242Evan Hunt#
990d0e893f5b70e735cdf990af66e9ec6e91fa78Tinderbox User# CDDL HEADER START
3e02c9e33656dcd9c364633d42dd785d3e6fdd66Automatic Updater#
3e02c9e33656dcd9c364633d42dd785d3e6fdd66Automatic Updater# The contents of this file are subject to the terms of the
c6fb85f9500350e5ce58c9a24f5d264c8a8bd6f4Automatic Updater# Common Development and Distribution License (the "License").
1bc5499c2a0fc5d2b11849e97cdd6305a64eb242Evan Hunt# You may not use this file except in compliance with the License.
1bc5499c2a0fc5d2b11849e97cdd6305a64eb242Evan Hunt#
3e02c9e33656dcd9c364633d42dd785d3e6fdd66Automatic Updater# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
1bc5499c2a0fc5d2b11849e97cdd6305a64eb242Evan Hunt# or http://www.opensolaris.org/os/licensing.
1bc5499c2a0fc5d2b11849e97cdd6305a64eb242Evan Hunt# See the License for the specific language governing permissions
3e02c9e33656dcd9c364633d42dd785d3e6fdd66Automatic Updater# and limitations under the License.
1bc5499c2a0fc5d2b11849e97cdd6305a64eb242Evan Hunt#
1bc5499c2a0fc5d2b11849e97cdd6305a64eb242Evan Hunt# When distributing Covered Code, include this CDDL HEADER in each
1bc5499c2a0fc5d2b11849e97cdd6305a64eb242Evan Hunt# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1bc5499c2a0fc5d2b11849e97cdd6305a64eb242Evan Hunt# If applicable, add the following below this CDDL HEADER, with the
1bc5499c2a0fc5d2b11849e97cdd6305a64eb242Evan Hunt# fields enclosed by brackets "[]" replaced with your own identifying
ea94d370123a5892f6c47a97f21d1b28d44bb168Tinderbox User# information: Portions Copyright [yyyy] [name of copyright owner]
1bc5499c2a0fc5d2b11849e97cdd6305a64eb242Evan Hunt#
1bc5499c2a0fc5d2b11849e97cdd6305a64eb242Evan Hunt# CDDL HEADER END
1bc5499c2a0fc5d2b11849e97cdd6305a64eb242Evan Hunt#
1bc5499c2a0fc5d2b11849e97cdd6305a64eb242Evan Hunt#
2cbb4ab75757fbb656997a82c14ca07db37d481aAutomatic Updater# uts/intel/rts/Makefile
1bc5499c2a0fc5d2b11849e97cdd6305a64eb242Evan Hunt#
1bc5499c2a0fc5d2b11849e97cdd6305a64eb242Evan Hunt# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
1bc5499c2a0fc5d2b11849e97cdd6305a64eb242Evan Hunt# Use is subject to license terms.
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updater#
1bc5499c2a0fc5d2b11849e97cdd6305a64eb242Evan Hunt# This makefile drives the production of the rts IP driver
1bc5499c2a0fc5d2b11849e97cdd6305a64eb242Evan Hunt#
1bc5499c2a0fc5d2b11849e97cdd6305a64eb242Evan Hunt# intel implementation architecture dependent
1bc5499c2a0fc5d2b11849e97cdd6305a64eb242Evan Hunt#
1bc5499c2a0fc5d2b11849e97cdd6305a64eb242Evan Hunt
1bc5499c2a0fc5d2b11849e97cdd6305a64eb242Evan Hunt#
1bc5499c2a0fc5d2b11849e97cdd6305a64eb242Evan Hunt# Path to the base of the uts directory tree (usually /usr/src/uts).
1bc5499c2a0fc5d2b11849e97cdd6305a64eb242Evan Hunt#
1bc5499c2a0fc5d2b11849e97cdd6305a64eb242Evan HuntUTSBASE = ../..
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updater
1bc5499c2a0fc5d2b11849e97cdd6305a64eb242Evan Hunt#
1bc5499c2a0fc5d2b11849e97cdd6305a64eb242Evan Hunt# Define the module and object file sets.
1bc5499c2a0fc5d2b11849e97cdd6305a64eb242Evan Hunt#
1bc5499c2a0fc5d2b11849e97cdd6305a64eb242Evan HuntMODULE = rts
1bc5499c2a0fc5d2b11849e97cdd6305a64eb242Evan HuntOBJECTS = $(RTS_OBJS:%=$(OBJS_DIR)/%)
1bc5499c2a0fc5d2b11849e97cdd6305a64eb242Evan HuntLINTS = $(RTS_OBJS:%.o=$(LINTS_DIR)/%.ln)
1bc5499c2a0fc5d2b11849e97cdd6305a64eb242Evan HuntROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
1bc5499c2a0fc5d2b11849e97cdd6305a64eb242Evan HuntROOTLINK = $(ROOT_SOCK_DIR)/$(MODULE)
1bc5499c2a0fc5d2b11849e97cdd6305a64eb242Evan HuntCONF_SRCDIR = $(UTSBASE)/common/inet/ip
1bc5499c2a0fc5d2b11849e97cdd6305a64eb242Evan Hunt
1bc5499c2a0fc5d2b11849e97cdd6305a64eb242Evan Hunt#
1bc5499c2a0fc5d2b11849e97cdd6305a64eb242Evan Hunt# Extra for $(MODULE).check target
1bc5499c2a0fc5d2b11849e97cdd6305a64eb242Evan Hunt#
12bfbed87cfffa65ac300b72c5665ab38a355c2fAutomatic Updater# Need to remove ipddi.o since it has non-static defines for _init etc.
1bc5499c2a0fc5d2b11849e97cdd6305a64eb242Evan HuntIP_CHECK_OBJS = $(IP_OBJS:ipddi.o=ip.o)
1bc5499c2a0fc5d2b11849e97cdd6305a64eb242Evan HuntEXTRA_CHECK_OBJS = $(IP_CHECK_OBJS:%=../ip/$(OBJS_DIR)/%)
6ea2385360e9e2167e65f9286447da9eea189457Tinderbox User
1bc5499c2a0fc5d2b11849e97cdd6305a64eb242Evan Hunt#
1bc5499c2a0fc5d2b11849e97cdd6305a64eb242Evan Hunt# Include common rules.
fd0b768f4c23d22c89f8a156a632831583b7fb68Automatic Updater#
fd0b768f4c23d22c89f8a156a632831583b7fb68Automatic Updaterinclude $(UTSBASE)/intel/Makefile.intel
1bc5499c2a0fc5d2b11849e97cdd6305a64eb242Evan Hunt
1bc5499c2a0fc5d2b11849e97cdd6305a64eb242Evan Hunt#
1bc5499c2a0fc5d2b11849e97cdd6305a64eb242Evan Hunt# Define targets
6ea2385360e9e2167e65f9286447da9eea189457Tinderbox User#
1bc5499c2a0fc5d2b11849e97cdd6305a64eb242Evan HuntALL_TARGET = $(BINARY) $(SRC_CONFFILE)
1bc5499c2a0fc5d2b11849e97cdd6305a64eb242Evan HuntLINT_TARGET = $(MODULE).lint
1bc5499c2a0fc5d2b11849e97cdd6305a64eb242Evan HuntINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOTLINK) $(ROOT_CONFFILE)
1bc5499c2a0fc5d2b11849e97cdd6305a64eb242Evan Hunt
1bc5499c2a0fc5d2b11849e97cdd6305a64eb242Evan Hunt#
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updater# depends on ip and sockfs
1bc5499c2a0fc5d2b11849e97cdd6305a64eb242Evan Hunt#
1bc5499c2a0fc5d2b11849e97cdd6305a64eb242Evan HuntLDFLAGS += -dy -Ndrv/ip -Nfs/sockfs
1bc5499c2a0fc5d2b11849e97cdd6305a64eb242Evan Hunt
1bc5499c2a0fc5d2b11849e97cdd6305a64eb242Evan Hunt#
1bc5499c2a0fc5d2b11849e97cdd6305a64eb242Evan Hunt# For now, disable these lint checks; maintainers should endeavor
1bc5499c2a0fc5d2b11849e97cdd6305a64eb242Evan Hunt# to investigate and remove these for maximum lint coverage.
1bc5499c2a0fc5d2b11849e97cdd6305a64eb242Evan Hunt# Please do not carry these forward to new Makefiles.
1bc5499c2a0fc5d2b11849e97cdd6305a64eb242Evan Hunt#
1bc5499c2a0fc5d2b11849e97cdd6305a64eb242Evan HuntLINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
1bc5499c2a0fc5d2b11849e97cdd6305a64eb242Evan HuntLINTTAGS += -erroff=E_PTRDIFF_OVERFLOW
1bc5499c2a0fc5d2b11849e97cdd6305a64eb242Evan HuntLINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
1bc5499c2a0fc5d2b11849e97cdd6305a64eb242Evan Hunt
8ec3c085233cedb22b05da36e2773c8f357a7e45Automatic Updater#
6ea2385360e9e2167e65f9286447da9eea189457Tinderbox User# Default build targets.
6ea2385360e9e2167e65f9286447da9eea189457Tinderbox User#
6ea2385360e9e2167e65f9286447da9eea189457Tinderbox User.KEEP_STATE:
6ea2385360e9e2167e65f9286447da9eea189457Tinderbox User
6ea2385360e9e2167e65f9286447da9eea189457Tinderbox Userdef: $(DEF_DEPS)
6ea2385360e9e2167e65f9286447da9eea189457Tinderbox User
6ea2385360e9e2167e65f9286447da9eea189457Tinderbox Userall: $(ALL_DEPS) $(SISCHECK_DEPS)
6ea2385360e9e2167e65f9286447da9eea189457Tinderbox User
6ea2385360e9e2167e65f9286447da9eea189457Tinderbox Userclean: $(CLEAN_DEPS) $(SISCLEAN_DEPS)
6ea2385360e9e2167e65f9286447da9eea189457Tinderbox User
6ea2385360e9e2167e65f9286447da9eea189457Tinderbox Userclobber: $(CLOBBER_DEPS) $(SISCLEAN_DEPS)
6ea2385360e9e2167e65f9286447da9eea189457Tinderbox User
6ea2385360e9e2167e65f9286447da9eea189457Tinderbox Userlint: $(LINT_DEPS)
1bc5499c2a0fc5d2b11849e97cdd6305a64eb242Evan Hunt
1bc5499c2a0fc5d2b11849e97cdd6305a64eb242Evan Huntmodlintlib: $(MODLINTLIB_DEPS)
1bc5499c2a0fc5d2b11849e97cdd6305a64eb242Evan Hunt
1bc5499c2a0fc5d2b11849e97cdd6305a64eb242Evan Huntclean.lint: $(CLEAN_LINT_DEPS)
1bc5499c2a0fc5d2b11849e97cdd6305a64eb242Evan Hunt
1bc5499c2a0fc5d2b11849e97cdd6305a64eb242Evan Huntinstall: $(INSTALL_DEPS) $(SISCHECK_DEPS)
12bfbed87cfffa65ac300b72c5665ab38a355c2fAutomatic Updater
12bfbed87cfffa65ac300b72c5665ab38a355c2fAutomatic Updater$(ROOTLINK): $(ROOT_STRMOD_DIR) $(ROOT_SOCK_DIR) $(ROOTMODULE)
12bfbed87cfffa65ac300b72c5665ab38a355c2fAutomatic Updater -$(RM) $@; ln $(ROOTMODULE) $@
12bfbed87cfffa65ac300b72c5665ab38a355c2fAutomatic Updater
12bfbed87cfffa65ac300b72c5665ab38a355c2fAutomatic Updater#
1bc5499c2a0fc5d2b11849e97cdd6305a64eb242Evan Hunt# Include common targets.
1bc5499c2a0fc5d2b11849e97cdd6305a64eb242Evan Hunt#
1bc5499c2a0fc5d2b11849e97cdd6305a64eb242Evan Huntinclude $(UTSBASE)/intel/Makefile.targ
6ea2385360e9e2167e65f9286447da9eea189457Tinderbox User