xref: /titanic_52/usr/src/uts/sun4v/platsvc/Makefile (revision 02b4e56ca3a4e4a4fe9e52fca9c2972101f0e57f)
11ae08745Sheppo#
21ae08745Sheppo# CDDL HEADER START
31ae08745Sheppo#
41ae08745Sheppo# The contents of this file are subject to the terms of the
51ae08745Sheppo# Common Development and Distribution License (the "License").
61ae08745Sheppo# You may not use this file except in compliance with the License.
71ae08745Sheppo#
81ae08745Sheppo# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
91ae08745Sheppo# or http://www.opensolaris.org/os/licensing.
101ae08745Sheppo# See the License for the specific language governing permissions
111ae08745Sheppo# and limitations under the License.
121ae08745Sheppo#
131ae08745Sheppo# When distributing Covered Code, include this CDDL HEADER in each
141ae08745Sheppo# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
151ae08745Sheppo# If applicable, add the following below this CDDL HEADER, with the
161ae08745Sheppo# fields enclosed by brackets "[]" replaced with your own identifying
171ae08745Sheppo# information: Portions Copyright [yyyy] [name of copyright owner]
181ae08745Sheppo#
191ae08745Sheppo# CDDL HEADER END
201ae08745Sheppo#
211ae08745Sheppo
221ae08745Sheppo#
23*02b4e56cSHaik Aftandilian# Copyright (c) 2006, 2010, Oracle and/or its affiliates. All rights reserved.
241ae08745Sheppo#
251ae08745Sheppo# This makefile drives the production of the platsvc kernel module.
261ae08745Sheppo#
271ae08745Sheppo# sun4v implementation architecture dependent
281ae08745Sheppo#
291ae08745Sheppo
301ae08745Sheppo#
311ae08745Sheppo# Path to the base of the uts directory tree (usually /usr/src/uts).
321ae08745Sheppo#
331ae08745SheppoUTSBASE	= ../..
341ae08745Sheppo
351ae08745Sheppo#
361ae08745Sheppo# Define the module and object file sets.
371ae08745Sheppo#
381ae08745SheppoMODULE		= platsvc
391ae08745SheppoOBJECTS		= $(PLATSVC_OBJS:%=$(OBJS_DIR)/%)
401ae08745SheppoLINTS		= $(PLATSVC_OBJS:%.o=$(LINTS_DIR)/%.ln)
411ae08745SheppoROOTMODULE	= $(ROOT_PSM_MISC_DIR)/$(MODULE)
421ae08745Sheppo
431ae08745Sheppo#
441ae08745Sheppo# Include common rules.
451ae08745Sheppo#
461ae08745Sheppoinclude $(UTSBASE)/sun4v/Makefile.sun4v
471ae08745Sheppo
481ae08745Sheppo#
491ae08745Sheppo# Define targets
501ae08745Sheppo#
511ae08745SheppoALL_TARGET	= $(BINARY)
521ae08745SheppoLINT_TARGET	= $(MODULE).lint
531ae08745SheppoINSTALL_TARGET	= $(BINARY) $(ROOTMODULE)
541ae08745Sheppo
551ae08745Sheppo#
561ae08745Sheppo# lint pass one enforcement
571ae08745Sheppo#
58bb25c06cSjgCFLAGS		+= $(CCVERBOSE)
591ae08745Sheppo
601ae08745Sheppo#
611ae08745Sheppo# Turn on doubleword alignment for 64 bit registers
621ae08745Sheppo#
631ae08745SheppoCFLAGS		+= -dalign
641ae08745Sheppo
651ae08745Sheppo#
661ae08745Sheppo# Module Dependencies
671ae08745Sheppo#
68*02b4e56cSHaik AftandilianLDFLAGS		+= -dy -Nmisc/ds -Ndrv/drctl
691ae08745Sheppo
701ae08745Sheppo#
711ae08745Sheppo# Default build targets.
721ae08745Sheppo#
731ae08745Sheppo.KEEP_STATE:
741ae08745Sheppo
751ae08745Sheppodef:		$(DEF_DEPS)
761ae08745Sheppo
771ae08745Sheppoall:		$(ALL_DEPS)
781ae08745Sheppo
791ae08745Sheppoclean:		$(CLEAN_DEPS)
801ae08745Sheppo
811ae08745Sheppoclobber:	$(CLOBBER_DEPS)
821ae08745Sheppo
831ae08745Sheppolint:		$(LINT_DEPS)
841ae08745Sheppo
851ae08745Sheppomodlintlib:	$(MODLINTLIB_DEPS)
861ae08745Sheppo
871ae08745Sheppoclean.lint:	$(CLEAN_LINT_DEPS)
881ae08745Sheppo
891ae08745Sheppoinstall:	$(INSTALL_DEPS)
901ae08745Sheppo
911ae08745Sheppo#
921ae08745Sheppo# Include common targets.
931ae08745Sheppo#
941ae08745Sheppoinclude $(UTSBASE)/$(PLATFORM)/Makefile.targ
95