Makefile revision fc80c0dfb0c877aee828d778ea32b77fcf7b1ef4
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
c92c50783e4e93699f2a42643b8f200b9b719c87Automatic Updater# CDDL HEADER START
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# The contents of this file are subject to the terms of the
4a14ce5ba00ab7bc55c99ffdcf59c7a4ab902721Automatic Updater# Common Development and Distribution License (the "License").
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# You may not use this file except in compliance with the License.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# or http://www.opensolaris.org/os/licensing.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# See the License for the specific language governing permissions
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# and limitations under the License.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# When distributing Covered Code, include this CDDL HEADER in each
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# If applicable, add the following below this CDDL HEADER, with the
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# fields enclosed by brackets "[]" replaced with your own identifying
c92c50783e4e93699f2a42643b8f200b9b719c87Automatic Updater# information: Portions Copyright [yyyy] [name of copyright owner]
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# CDDL HEADER END
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
e21a2904f02a03fa06b6db04d348f65fe9c67b2bMark Andrews# uts/sparc/rts/Makefile
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# Use is subject to license terms.
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updater#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#ident "%Z%%M% %I% %E% SMI"
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# This makefile drives the production of the rts IP driver
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# sparc architecture dependent
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updater# Path to the base of the uts directory tree (usually /usr/src/uts).
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsUTSBASE = ../..
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# Define the module and object file sets.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsMODULE = rts
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsOBJECTS = $(RTS_OBJS:%=$(OBJS_DIR)/%)
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsLINTS = $(RTS_OBJS:%.o=$(LINTS_DIR)/%.ln)
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsCONF_SRCDIR = $(UTSBASE)/common/inet/ip
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# Extra for $(MODULE).check target
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
97e74139b19368e385a3564746d42db70879195eAutomatic Updater# Need to remove ipddi.o since it has non-static defines for _init etc.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsIP_CHECK_OBJS = $(IP_OBJS:ipddi.o=ip.o)
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsEXTRA_CHECK_OBJS = $(IP_CHECK_OBJS:%=../ip/$(OBJS_DIR)/%)
c92c50783e4e93699f2a42643b8f200b9b719c87Automatic Updater
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# Include common rules.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrewsinclude $(UTSBASE)/sparc/Makefile.sparc
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# Define targets
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsALL_TARGET = $(BINARY) $(SRC_CONFFILE)
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsLINT_TARGET = $(MODULE).lint
c92c50783e4e93699f2a42643b8f200b9b719c87Automatic UpdaterINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOTLINK) $(ROOT_CONFFILE)
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# lint pass one enforcement
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsCFLAGS += $(CCVERBOSE)
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# depends on tun
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
2895f101b5585a19015ac2c2c1e1812ac467fa12Automatic UpdaterLDFLAGS += -dy -Ndrv/ip
2895f101b5585a19015ac2c2c1e1812ac467fa12Automatic Updater
2895f101b5585a19015ac2c2c1e1812ac467fa12Automatic Updater#
2895f101b5585a19015ac2c2c1e1812ac467fa12Automatic Updater# For now, disable these lint checks; maintainers should endeavor
2895f101b5585a19015ac2c2c1e1812ac467fa12Automatic Updater# to investigate and remove these for maximum lint coverage.
2895f101b5585a19015ac2c2c1e1812ac467fa12Automatic Updater# Please do not carry these forward to new Makefiles.
2895f101b5585a19015ac2c2c1e1812ac467fa12Automatic Updater#
2895f101b5585a19015ac2c2c1e1812ac467fa12Automatic UpdaterLINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
2895f101b5585a19015ac2c2c1e1812ac467fa12Automatic UpdaterLINTTAGS += -erroff=E_PTRDIFF_OVERFLOW
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic UpdaterLINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updater
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updater#
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updater# Default build targets.
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updater#
be6c1c506161e6f45fcff5d0425f78801bc267c1Automatic Updater.KEEP_STATE:
be6c1c506161e6f45fcff5d0425f78801bc267c1Automatic Updater
be6c1c506161e6f45fcff5d0425f78801bc267c1Automatic Updaterdef: $(DEF_DEPS)
be6c1c506161e6f45fcff5d0425f78801bc267c1Automatic Updater
be6c1c506161e6f45fcff5d0425f78801bc267c1Automatic Updaterall: $(ALL_DEPS) $(SISCHECK_DEPS)
be6c1c506161e6f45fcff5d0425f78801bc267c1Automatic Updater
be6c1c506161e6f45fcff5d0425f78801bc267c1Automatic Updaterclean: $(CLEAN_DEPS) $(SISCLEAN_DEPS)
be6c1c506161e6f45fcff5d0425f78801bc267c1Automatic Updater
be6c1c506161e6f45fcff5d0425f78801bc267c1Automatic Updaterclobber: $(CLOBBER_DEPS) $(SISCLEAN_DEPS)
be6c1c506161e6f45fcff5d0425f78801bc267c1Automatic Updater
be6c1c506161e6f45fcff5d0425f78801bc267c1Automatic Updaterlint: $(LINT_DEPS)
8ec3c085233cedb22b05da36e2773c8f357a7e45Automatic Updater
8ec3c085233cedb22b05da36e2773c8f357a7e45Automatic Updatermodlintlib: $(MODLINTLIB_DEPS)
8ec3c085233cedb22b05da36e2773c8f357a7e45Automatic Updater
8ec3c085233cedb22b05da36e2773c8f357a7e45Automatic Updaterclean.lint: $(CLEAN_LINT_DEPS)
8ec3c085233cedb22b05da36e2773c8f357a7e45Automatic Updater
64affc54f96a2c71cbd10ed71e246ce0746259aaAutomatic Updaterinstall: $(INSTALL_DEPS) $(SISCHECK_DEPS)
8ec3c085233cedb22b05da36e2773c8f357a7e45Automatic Updater
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updater$(ROOTLINK): $(ROOT_STRMOD_DIR) $(ROOTMODULE)
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updater -$(RM) $@; ln $(ROOTMODULE) $@
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updater
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updater#
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updater# Include common targets.
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updater#
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updaterinclude $(UTSBASE)/sparc/Makefile.targ
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updater