Makefile revision 7014882c6a3672fd0e5d60200af8643ae53c5928
6e10f87913db176724e89b52e686b0992898da75Mukund Sivaraman#
6e10f87913db176724e89b52e686b0992898da75Mukund Sivaraman# CDDL HEADER START
6e10f87913db176724e89b52e686b0992898da75Mukund Sivaraman#
6e10f87913db176724e89b52e686b0992898da75Mukund Sivaraman# The contents of this file are subject to the terms of the
6e10f87913db176724e89b52e686b0992898da75Mukund Sivaraman# Common Development and Distribution License (the "License").
37f6466aa327a5b444e41c8cb57ab5caacfe6279Evan Hunt# You may not use this file except in compliance with the License.
37f6466aa327a5b444e41c8cb57ab5caacfe6279Evan Hunt#
37f6466aa327a5b444e41c8cb57ab5caacfe6279Evan Hunt# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
37f6466aa327a5b444e41c8cb57ab5caacfe6279Evan Hunt# or http://www.opensolaris.org/os/licensing.
4162d3b36d1a3c25724c7e37ce839f67b2352bbbMark Andrews# See the License for the specific language governing permissions
4162d3b36d1a3c25724c7e37ce839f67b2352bbbMark Andrews# and limitations under the License.
4162d3b36d1a3c25724c7e37ce839f67b2352bbbMark Andrews#
ce6f0c122140647b5652c0d4de523c994fcfea08Michał Kępień# When distributing Covered Code, include this CDDL HEADER in each
ce6f0c122140647b5652c0d4de523c994fcfea08Michał Kępień# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
f72f5879424ce4081893b306b8c31f29fe9205e0Evan Hunt# If applicable, add the following below this CDDL HEADER, with the
f72f5879424ce4081893b306b8c31f29fe9205e0Evan Hunt# fields enclosed by brackets "[]" replaced with your own identifying
f72f5879424ce4081893b306b8c31f29fe9205e0Evan Hunt# information: Portions Copyright [yyyy] [name of copyright owner]
f72f5879424ce4081893b306b8c31f29fe9205e0Evan Hunt#
f72f5879424ce4081893b306b8c31f29fe9205e0Evan Hunt# CDDL HEADER END
1073e2001caee13cc1fa52de97feddd633d50fd8Evan Hunt#
1073e2001caee13cc1fa52de97feddd633d50fd8Evan Hunt#
1073e2001caee13cc1fa52de97feddd633d50fd8Evan Hunt# uts/sun4v/su/Makefile
1073e2001caee13cc1fa52de97feddd633d50fd8Evan Hunt# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
1073e2001caee13cc1fa52de97feddd633d50fd8Evan Hunt# Use is subject to license terms.
78608b0a454246d0e1e0169f1d671b8427e48199Francis Dupont#
11c4e6d8fcc9bc148543c1ee632315e096d2bcf2Michał Kępień
11c4e6d8fcc9bc148543c1ee632315e096d2bcf2Michał Kępień#
11c4e6d8fcc9bc148543c1ee632315e096d2bcf2Michał Kępień# This makefile drives the production of the sun4v "su" driver module.
59122481b2aa65de4518677c6949f03711d2553aEvan Hunt#
59122481b2aa65de4518677c6949f03711d2553aEvan Hunt# sun4v implementation architecture dependent
59122481b2aa65de4518677c6949f03711d2553aEvan Hunt#
59122481b2aa65de4518677c6949f03711d2553aEvan Hunt
fe6d2fd8338d6f6ac4c79bea9a8daad903460040Evan Hunt#
fe6d2fd8338d6f6ac4c79bea9a8daad903460040Evan Hunt# Path to the base of the uts directory tree (usually /usr/src/uts).
fe6d2fd8338d6f6ac4c79bea9a8daad903460040Evan Hunt#
fe6d2fd8338d6f6ac4c79bea9a8daad903460040Evan HuntUTSBASE = ../..
05a456499af940762d6658366abafb220c5053ccMark Andrews
05a456499af940762d6658366abafb220c5053ccMark Andrews#
05a456499af940762d6658366abafb220c5053ccMark Andrews# Define the module and object file sets.
cb4e0ef4e2c8a942f99af6ecc6aa564c903b00a0Mark Andrews#
cb4e0ef4e2c8a942f99af6ecc6aa564c903b00a0Mark AndrewsMODULE = su
cb4e0ef4e2c8a942f99af6ecc6aa564c903b00a0Mark AndrewsOBJECTS = $(SU_OBJS:%=$(OBJS_DIR)/%)
cb4e0ef4e2c8a942f99af6ecc6aa564c903b00a0Mark AndrewsLINTS = $(SU_OBJS:%.o=$(LINTS_DIR)/%.ln)
e3efc855f9f0acc9b14bb8e9c833e0fa209068b6Mark AndrewsROOTMODULE = $(ROOT_PSM_DRV_DIR)/$(MODULE)
e3efc855f9f0acc9b14bb8e9c833e0fa209068b6Mark Andrews
e3efc855f9f0acc9b14bb8e9c833e0fa209068b6Mark Andrews#
e56c0854589d936f911e0aac2f2bf53cbc8a6af7Michał Kępień# Include common rules.
e56c0854589d936f911e0aac2f2bf53cbc8a6af7Michał Kępień#
e56c0854589d936f911e0aac2f2bf53cbc8a6af7Michał Kępieńinclude $(UTSBASE)/sun4v/Makefile.sun4v
6727802528c27484e0d36d70f0b936022d3226e3Michał Kępień
6727802528c27484e0d36d70f0b936022d3226e3Michał Kępień#
6727802528c27484e0d36d70f0b936022d3226e3Michał Kępień# Define targets
6727802528c27484e0d36d70f0b936022d3226e3Michał Kępień#
4d41be5f9e86c11a6f00e2b005cfc5abae2c1ab3Mark AndrewsALL_TARGET = $(BINARY)
4d41be5f9e86c11a6f00e2b005cfc5abae2c1ab3Mark AndrewsLINT_TARGET = $(MODULE).lint
bfde61d5194a534d800f3b90008d1f52261922c5Mark AndrewsINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
bfde61d5194a534d800f3b90008d1f52261922c5Mark Andrews
bfde61d5194a534d800f3b90008d1f52261922c5Mark Andrews#
42ae02626d05921ca7508ae6f9c48ea699596bc6Mark Andrews# lint pass one enforcement
6b56350522d18f10edbf2d3778cd0fea74e4f3d2Mark Andrews#
6b56350522d18f10edbf2d3778cd0fea74e4f3d2Mark AndrewsCFLAGS += $(CCVERBOSE)
42ae02626d05921ca7508ae6f9c48ea699596bc6Mark Andrews
41caed6e2d7e9caace30e6c59f199ab6bd438f01Mark Andrews#
72b322cde0e51c4c87df0c9e3226deac95dfb4ceMark Andrews# For now, disable these lint checks; maintainers should endeavor
72b322cde0e51c4c87df0c9e3226deac95dfb4ceMark Andrews# to investigate and remove these for maximum lint coverage.
28ea558bc80f75e46d77ea0533232bb9d4e644f7Mark Andrews# Please do not carry these forward to new Makefiles.
28ea558bc80f75e46d77ea0533232bb9d4e644f7Mark Andrews#
28ea558bc80f75e46d77ea0533232bb9d4e644f7Mark AndrewsLINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
28ea558bc80f75e46d77ea0533232bb9d4e644f7Mark AndrewsLINTTAGS += -erroff=E_PTRDIFF_OVERFLOW
28ea558bc80f75e46d77ea0533232bb9d4e644f7Mark AndrewsLINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
565535d1820c63c64ec3c89e1f4815c326aed7aeEvan Hunt
6045abbc9a0d7d449a13b6fbfbf32d419b6bee96Mark AndrewsCERRWARN += -_gcc=-Wno-parentheses
6045abbc9a0d7d449a13b6fbfbf32d419b6bee96Mark AndrewsCERRWARN += -_gcc=-Wno-uninitialized
f7d148398ca4511551c737e655b15f7d0d59a783Mark Andrews
f7d148398ca4511551c737e655b15f7d0d59a783Mark Andrews#
f7d148398ca4511551c737e655b15f7d0d59a783Mark Andrews# Default build targets.
3a84275b10ab16965e86f6ca97e70c1bdca885a0Mark Andrews#
3a84275b10ab16965e86f6ca97e70c1bdca885a0Mark Andrews.KEEP_STATE:
3a84275b10ab16965e86f6ca97e70c1bdca885a0Mark Andrews
3a84275b10ab16965e86f6ca97e70c1bdca885a0Mark Andrewsdef: $(DEF_DEPS)
398834f7559617bdfd6c10ba555609a2f306e3d4Mark Andrews
398834f7559617bdfd6c10ba555609a2f306e3d4Mark Andrewsall: $(ALL_DEPS)
398834f7559617bdfd6c10ba555609a2f306e3d4Mark Andrews
398834f7559617bdfd6c10ba555609a2f306e3d4Mark Andrewsclean: $(CLEAN_DEPS)
398834f7559617bdfd6c10ba555609a2f306e3d4Mark Andrews
28061f80b698171892e81c0856bc722190947998Evan Huntclobber: $(CLOBBER_DEPS)
28061f80b698171892e81c0856bc722190947998Evan Hunt
28061f80b698171892e81c0856bc722190947998Evan Huntlint: $(LINT_DEPS)
a785bf2c39c6f223a93c27bbff81591b38095577Mark Andrews
a785bf2c39c6f223a93c27bbff81591b38095577Mark Andrewsmodlintlib: $(MODLINTLIB_DEPS)
a03f4b1ea4f1a4a70963fbeb606841c217f9e5f3Evan Hunt
a03f4b1ea4f1a4a70963fbeb606841c217f9e5f3Evan Huntclean.lint: $(CLEAN_LINT_DEPS)
a03f4b1ea4f1a4a70963fbeb606841c217f9e5f3Evan Hunt
a03f4b1ea4f1a4a70963fbeb606841c217f9e5f3Evan Huntinstall: $(INSTALL_DEPS)
d315545e6db6792692fe2dcb788ac6717a33b75fEvan Hunt
d315545e6db6792692fe2dcb788ac6717a33b75fEvan Hunt#
d315545e6db6792692fe2dcb788ac6717a33b75fEvan Hunt# Include common targets.
d315545e6db6792692fe2dcb788ac6717a33b75fEvan Hunt#
00f131293520b70728cd48840e09953fa45a745bMark Andrewsinclude $(UTSBASE)/sun4v/Makefile.targ
00f131293520b70728cd48840e09953fa45a745bMark Andrews