Makefile revision 29949e866e40b95795203f3ee46f44a197c946e4
81165faf5d951aca69f410713730c26ff048ec44Sumit Bose#
81165faf5d951aca69f410713730c26ff048ec44Sumit Bose# CDDL HEADER START
81165faf5d951aca69f410713730c26ff048ec44Sumit Bose#
81165faf5d951aca69f410713730c26ff048ec44Sumit Bose# The contents of this file are subject to the terms of the
81165faf5d951aca69f410713730c26ff048ec44Sumit Bose# Common Development and Distribution License (the "License").
81165faf5d951aca69f410713730c26ff048ec44Sumit Bose# You may not use this file except in compliance with the License.
81165faf5d951aca69f410713730c26ff048ec44Sumit Bose#
81165faf5d951aca69f410713730c26ff048ec44Sumit Bose# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
81165faf5d951aca69f410713730c26ff048ec44Sumit Bose# or http://www.opensolaris.org/os/licensing.
81165faf5d951aca69f410713730c26ff048ec44Sumit Bose# See the License for the specific language governing permissions
81165faf5d951aca69f410713730c26ff048ec44Sumit Bose# and limitations under the License.
81165faf5d951aca69f410713730c26ff048ec44Sumit Bose#
81165faf5d951aca69f410713730c26ff048ec44Sumit Bose# When distributing Covered Code, include this CDDL HEADER in each
81165faf5d951aca69f410713730c26ff048ec44Sumit Bose# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
81165faf5d951aca69f410713730c26ff048ec44Sumit Bose# If applicable, add the following below this CDDL HEADER, with the
81165faf5d951aca69f410713730c26ff048ec44Sumit Bose# fields enclosed by brackets "[]" replaced with your own identifying
81165faf5d951aca69f410713730c26ff048ec44Sumit Bose# information: Portions Copyright [yyyy] [name of copyright owner]
81165faf5d951aca69f410713730c26ff048ec44Sumit Bose#
81165faf5d951aca69f410713730c26ff048ec44Sumit Bose# CDDL HEADER END
81165faf5d951aca69f410713730c26ff048ec44Sumit Bose#
81165faf5d951aca69f410713730c26ff048ec44Sumit Bose
81165faf5d951aca69f410713730c26ff048ec44Sumit Bose#
81165faf5d951aca69f410713730c26ff048ec44Sumit Bose# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
81165faf5d951aca69f410713730c26ff048ec44Sumit Bose# Use is subject to license terms.
81165faf5d951aca69f410713730c26ff048ec44Sumit Bose#
09d7c105839bfc7447ea0f766413ed86675ca075Sumit Bose#ident "%Z%%M% %I% %E% SMI"
81165faf5d951aca69f410713730c26ff048ec44Sumit Bose#
81165faf5d951aca69f410713730c26ff048ec44Sumit Bose# This makefile drives the production of the envctrl driver kernel
08ab0d4ede41a1749e0bc26f78a37a4d10c20db8Sumit Bose# module.
08ab0d4ede41a1749e0bc26f78a37a4d10c20db8Sumit Bose#
204cfc89a076fd32bf34f2abb3f809304aaa88abSimo Sorce# sun4u implementation architecture dependent
81165faf5d951aca69f410713730c26ff048ec44Sumit Bose#
81165faf5d951aca69f410713730c26ff048ec44Sumit Bose
84c611c1b7c04cc7735ab54d4e5f48284b79e6fbJan Zeleny#
386a66b1aa18a176e6a06fa126556c9590c373b6Sumit Bose# Path to the base of the uts directory tree (usually /usr/src/uts).
84c611c1b7c04cc7735ab54d4e5f48284b79e6fbJan Zeleny#
81165faf5d951aca69f410713730c26ff048ec44Sumit BoseUTSBASE = ../../..
81165faf5d951aca69f410713730c26ff048ec44Sumit Bose
386a66b1aa18a176e6a06fa126556c9590c373b6Sumit Bose#
386a66b1aa18a176e6a06fa126556c9590c373b6Sumit Bose# Define the module and object file sets.
5e60c73cb91d1659755fb5ea829837db68d46163Sumit Bose#
386a66b1aa18a176e6a06fa126556c9590c373b6Sumit BoseMODULE = envctrl
386a66b1aa18a176e6a06fa126556c9590c373b6Sumit BoseOBJECTS = $(ENVCTRL_OBJS:%=$(OBJS_DIR)/%)
386a66b1aa18a176e6a06fa126556c9590c373b6Sumit BoseLINTS = $(ENVCTRL_OBJS:%.o=$(LINTS_DIR)/%.ln)
386a66b1aa18a176e6a06fa126556c9590c373b6Sumit BoseROOTMODULE = $(ROOT_TAZMO_DRV_DIR)/$(MODULE)
386a66b1aa18a176e6a06fa126556c9590c373b6Sumit Bose
386a66b1aa18a176e6a06fa126556c9590c373b6Sumit Bose#
81165faf5d951aca69f410713730c26ff048ec44Sumit Bose# Include common rules.
08ab0d4ede41a1749e0bc26f78a37a4d10c20db8Sumit Bose#
08ab0d4ede41a1749e0bc26f78a37a4d10c20db8Sumit Boseinclude $(UTSBASE)/sun4u/tazmo/Makefile.tazmo
4c20fe34346919cf676c3e1b54b7701069e2aac6Simo Sorce
4c20fe34346919cf676c3e1b54b7701069e2aac6Simo Sorce#
4c20fe34346919cf676c3e1b54b7701069e2aac6Simo Sorce# Define targets
5063dcc5ab685dce325b13b9c1e93cee2a673e60Sumit Bose#
3b533d57a737e2de1b3e85b073b14d3bfb49dafcSimo SorceALL_TARGET = $(BINARY)
84c611c1b7c04cc7735ab54d4e5f48284b79e6fbJan ZelenyLINT_TARGET = $(MODULE).lint
84c611c1b7c04cc7735ab54d4e5f48284b79e6fbJan ZelenyINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
84c611c1b7c04cc7735ab54d4e5f48284b79e6fbJan Zeleny
386a66b1aa18a176e6a06fa126556c9590c373b6Sumit Bose#
84c611c1b7c04cc7735ab54d4e5f48284b79e6fbJan Zeleny# lint pass one enforcement
84c611c1b7c04cc7735ab54d4e5f48284b79e6fbJan Zeleny#
84c611c1b7c04cc7735ab54d4e5f48284b79e6fbJan ZelenyCFLAGS += $(CCVERBOSE)
84c611c1b7c04cc7735ab54d4e5f48284b79e6fbJan Zeleny
84c611c1b7c04cc7735ab54d4e5f48284b79e6fbJan Zeleny#
84c611c1b7c04cc7735ab54d4e5f48284b79e6fbJan Zeleny# Turn on doubleword alignment for 64 bit registers
84c611c1b7c04cc7735ab54d4e5f48284b79e6fbJan Zeleny#
5e60c73cb91d1659755fb5ea829837db68d46163Sumit BoseCFLAGS += -dalign
84c611c1b7c04cc7735ab54d4e5f48284b79e6fbJan Zeleny
84c611c1b7c04cc7735ab54d4e5f48284b79e6fbJan ZelenyLDFLAGS += -dy -Ndrv/pcipsy
87ed72b47859e673b636c85f35b85f1546c7ed3dSimo Sorce
6a81cb8c3424dbe9f764af3738299cbbe5874a15Simo Sorce#
418e6ccd116eced7ccc75aca999a4c37c67289baJakub Hrozek# Default build targets.
87ed72b47859e673b636c85f35b85f1546c7ed3dSimo Sorce#
87ed72b47859e673b636c85f35b85f1546c7ed3dSimo Sorce.KEEP_STATE:
87ed72b47859e673b636c85f35b85f1546c7ed3dSimo Sorce
87ed72b47859e673b636c85f35b85f1546c7ed3dSimo Sorcedef: $(DEF_DEPS)
08ab0d4ede41a1749e0bc26f78a37a4d10c20db8Sumit Bose
efea50efda58be66638e5d38c8e57fdf9992f204Simo Sorceall: $(ALL_DEPS)
4c20fe34346919cf676c3e1b54b7701069e2aac6Simo Sorce
3b533d57a737e2de1b3e85b073b14d3bfb49dafcSimo Sorceclean: $(CLEAN_DEPS)
5063dcc5ab685dce325b13b9c1e93cee2a673e60Sumit Bose
5063dcc5ab685dce325b13b9c1e93cee2a673e60Sumit Boseclobber: $(CLOBBER_DEPS)
cd5033e86bb4065d75188e2b6ef287a4421344c8Sumit Bose
87ed72b47859e673b636c85f35b85f1546c7ed3dSimo Sorcelint: $(LINT_DEPS)
87ed72b47859e673b636c85f35b85f1546c7ed3dSimo Sorce
cd5033e86bb4065d75188e2b6ef287a4421344c8Sumit Bosemodlintlib: $(MODLINTLIB_DEPS)
cd5033e86bb4065d75188e2b6ef287a4421344c8Sumit Bose
cd5033e86bb4065d75188e2b6ef287a4421344c8Sumit Boseclean.lint: $(CLEAN_LINT_DEPS)
cd5033e86bb4065d75188e2b6ef287a4421344c8Sumit Bose
cd5033e86bb4065d75188e2b6ef287a4421344c8Sumit Boseinstall: $(INSTALL_DEPS)
cd5033e86bb4065d75188e2b6ef287a4421344c8Sumit Bose
cd5033e86bb4065d75188e2b6ef287a4421344c8Sumit BoseLINT_LIB_DIR = $(TAZMO_LINT_LIB_DIR)
cd5033e86bb4065d75188e2b6ef287a4421344c8Sumit Bose#
b1829e54acbc8a010aca7f14b9ffa9625f8c102cSumit Bose# Include common targets.
b1829e54acbc8a010aca7f14b9ffa9625f8c102cSumit Bose#
b1829e54acbc8a010aca7f14b9ffa9625f8c102cSumit Boseinclude $(UTSBASE)/sun4u/tazmo/Makefile.targ
b1829e54acbc8a010aca7f14b9ffa9625f8c102cSumit Bose