Makefile revision 112f9fc1e25dcac8b980e034e763f96fb9736261
ac4e70ff8955669341f435bc0a734a17c01af124Mark Andrews#
205c10066a0acfeac52d1a135671f41d207b8557Automatic Updater# CDDL HEADER START
205c10066a0acfeac52d1a135671f41d207b8557Automatic Updater#
1167fc7904c5f0a472f8df207ac46dd52c7f1ec8Automatic Updater# The contents of this file are subject to the terms of the
0c39b3ed9409ecb277d5e32fa763a4e4d6598df8Automatic Updater# Common Development and Distribution License (the "License").
46da3117812814a29432a8d9a9ccf8acdbfdadceAutomatic Updater# You may not use this file except in compliance with the License.
2bb3422dc683c013db7042f5736240de6b86f182Automatic Updater#
cd0aa2d941d1438fabb5337f1f38c49478edf71dAutomatic Updater# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2ec4ab21838e218863d052ebfa3e106e04f50820Evan Hunt# or http://www.opensolaris.org/os/licensing.
ea854b585041ad19f70f7af15e08144ef2c2bd1bMark Andrews# See the License for the specific language governing permissions
78cb74fab4665da2e2641ba909c6f59f74cc4193Automatic Updater# and limitations under the License.
cd0aa2d941d1438fabb5337f1f38c49478edf71dAutomatic Updater#
90ff38a0d8deaf5f9c2aa5916d99b2e572d28738Automatic Updater# When distributing Covered Code, include this CDDL HEADER in each
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
ac4e70ff8955669341f435bc0a734a17c01af124Mark Andrews# If applicable, add the following below this CDDL HEADER, with the
6c6a121295b30772cbf3dd75a51fb9d883051a0eAutomatic Updater# fields enclosed by brackets "[]" replaced with your own identifying
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# information: Portions Copyright [yyyy] [name of copyright owner]
9cd5eb6fe0f26d65724b99216cb31dcdd12e4afdAutomatic Updater#
bc0a53583d92309bebcf93c408e2f3247ebd3d3cAutomatic Updater# CDDL HEADER END
56874aef380a64a2c183b7c282c3e7a361d67fa1Automatic Updater#
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews#
58be84825d7f5de30e50eb7206b37227ecd8055bAutomatic Updater# uts/sparc/rts/Makefile
3cc98b8ecedcbc8465f1cf2740b966b315662430Automatic Updater# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# Use is subject to license terms.
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews#
96713299d08c0735c18ebe8772dd2cc1ecd4356aAutomatic Updater#ident "%Z%%M% %I% %E% SMI"
831f79c4310a7d38fc3475ccfff531b2b2535641Automatic Updater#
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# This makefile drives the production of the rts IP driver
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater#
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark Andrews# sparc architecture dependent
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater#
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater#
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater# Path to the base of the uts directory tree (usually /usr/src/uts).
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson#
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic UpdaterUTSBASE = ../..
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater#
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan Hunt# Define the module and object file sets.
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater#
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic UpdaterMODULE = rts
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan HuntOBJECTS = $(RTS_OBJS:%=$(OBJS_DIR)/%)
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic UpdaterLINTS = $(RTS_OBJS:%.o=$(LINTS_DIR)/%.ln)
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic UpdaterROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic UpdaterROOTLINK = $(ROOT_STRMOD_DIR)/$(MODULE)
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan HuntCONF_SRCDIR = $(UTSBASE)/common/inet/ip
2d2dc37599979c83495510f8af8d1756753aa2c5Automatic Updater
2d2dc37599979c83495510f8af8d1756753aa2c5Automatic Updater#
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan Hunt# Extra for $(MODULE).check target
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater#
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater# Need to remove ipddi.o since it has non-static defines for _init etc.
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic UpdaterIP_CHECK_OBJS = $(IP_OBJS:ipddi.o=ip.o)
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic UpdaterEXTRA_CHECK_OBJS = $(IP_CHECK_OBJS:%=../ip/$(OBJS_DIR)/%)
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater
cdfc81e048bd34c1d628380247bda6b80a89e20eAutomatic Updater#
cdfc81e048bd34c1d628380247bda6b80a89e20eAutomatic Updater# Include common rules.
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater#
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updaterinclude $(UTSBASE)/sparc/Makefile.sparc
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater#
eabc9c3c07cd956d3c436bd7614cb162dabdda76Mark Andrews# Define targets
eabc9c3c07cd956d3c436bd7614cb162dabdda76Mark Andrews#
eabc9c3c07cd956d3c436bd7614cb162dabdda76Mark AndrewsALL_TARGET = $(BINARY) $(SRC_CONFFILE)
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonLINT_TARGET = $(MODULE).lint
9cd5eb6fe0f26d65724b99216cb31dcdd12e4afdAutomatic UpdaterINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOTLINK) $(ROOT_CONFFILE)
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews
129090f0f6f91753b4a085ab635e28549fd018adAutomatic Updater#
129090f0f6f91753b4a085ab635e28549fd018adAutomatic Updater# lint pass one enforcement
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews#
d7a77415c13bb2fc2d1acb857486d97e4466e3b8Automatic UpdaterCFLAGS += $(CCVERBOSE)
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews
db5b7e2cdf150c46e8242d3e2e3ad3f5c7300258Automatic Updater#
80faf1588895fd26490f82f95a7a1b771df1c324Automatic Updater# depends on tun
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews#
1a06700908f5a1d9f4a8d51285a0fd971e2f9117Automatic UpdaterLDFLAGS += -dy -Ndrv/ip
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews
db5b7e2cdf150c46e8242d3e2e3ad3f5c7300258Automatic Updater#
693c4232dfdffaff672197d4b9fea944c64cf80aAutomatic Updater# For now, disable these lint checks; maintainers should endeavor
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# to investigate and remove these for maximum lint coverage.
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater# Please do not carry these forward to new Makefiles.
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson#
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic UpdaterLINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic UpdaterLINTTAGS += -erroff=E_PTRDIFF_OVERFLOW
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark AndrewsLINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson#
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater# Default build targets.
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater#
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson.KEEP_STATE:
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater
dd65eb1efb40b1c47d57963192bfc54873b219beAutomatic Updaterdef: $(DEF_DEPS)
dd65eb1efb40b1c47d57963192bfc54873b219beAutomatic Updater
78f3ed4bc2fcd3d270bfd599804f3b27a1db4d91Mark Andrewsall: $(ALL_DEPS) $(SISCHECK_DEPS)
b1265b5a06df36d490d4bdf54284fb133a1f5a84Automatic Updater
9174e44c14b1cb91a651fa1dc29470438c246ab9Automatic Updaterclean: $(CLEAN_DEPS) $(SISCLEAN_DEPS)
78f3ed4bc2fcd3d270bfd599804f3b27a1db4d91Mark Andrews
2a31bd531072824ef252c18303859d6af7451b00Francis Dupontclobber: $(CLOBBER_DEPS) $(SISCLEAN_DEPS)
0c39b3ed9409ecb277d5e32fa763a4e4d6598df8Automatic Updater
0c39b3ed9409ecb277d5e32fa763a4e4d6598df8Automatic Updaterlint: $(LINT_DEPS)
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrewsmodlintlib: $(MODLINTLIB_DEPS)
f9119ad8f6114b2255e7545bf5cd187f4db0a89bAutomatic Updater
9174e44c14b1cb91a651fa1dc29470438c246ab9Automatic Updaterclean.lint: $(CLEAN_LINT_DEPS)
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews
78f3ed4bc2fcd3d270bfd599804f3b27a1db4d91Mark Andrewsinstall: $(INSTALL_DEPS) $(SISCHECK_DEPS)
08e3b6797706a13054bad749dea04e94b514b8e7Automatic Updater
dd65eb1efb40b1c47d57963192bfc54873b219beAutomatic Updater$(ROOTLINK): $(ROOT_STRMOD_DIR) $(ROOTMODULE)
78f3ed4bc2fcd3d270bfd599804f3b27a1db4d91Mark Andrews -$(RM) $@; ln $(ROOTMODULE) $@
78f3ed4bc2fcd3d270bfd599804f3b27a1db4d91Mark Andrews
b29e5c56eb74a6de1a84c29879afc90ffc6b1436Automatic Updater#
418cc932318b1d67f88a36904d88d8a5a0a2ba09Automatic Updater# Include common targets.
78f3ed4bc2fcd3d270bfd599804f3b27a1db4d91Mark Andrews#
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrewsinclude $(UTSBASE)/sparc/Makefile.targ
0977f3f39ef6728516be7976452b9122c8f5607aAutomatic Updater