xref: /titanic_41/usr/src/uts/sun4v/vlds/Makefile (revision 7014882c6a3672fd0e5d60200af8643ae53c5928)
130588217SMike Christensen#
230588217SMike Christensen# CDDL HEADER START
330588217SMike Christensen#
430588217SMike Christensen# The contents of this file are subject to the terms of the
530588217SMike Christensen# Common Development and Distribution License (the "License").
630588217SMike Christensen# You may not use this file except in compliance with the License.
730588217SMike Christensen#
830588217SMike Christensen# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
930588217SMike Christensen# or http://www.opensolaris.org/os/licensing.
1030588217SMike Christensen# See the License for the specific language governing permissions
1130588217SMike Christensen# and limitations under the License.
1230588217SMike Christensen#
1330588217SMike Christensen# When distributing Covered Code, include this CDDL HEADER in each
1430588217SMike Christensen# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1530588217SMike Christensen# If applicable, add the following below this CDDL HEADER, with the
1630588217SMike Christensen# fields enclosed by brackets "[]" replaced with your own identifying
1730588217SMike Christensen# information: Portions Copyright [yyyy] [name of copyright owner]
1830588217SMike Christensen#
1930588217SMike Christensen# CDDL HEADER END
2030588217SMike Christensen#
2130588217SMike Christensen#
2230588217SMike Christensen# Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
2330588217SMike Christensen# Use is subject to license terms.
2430588217SMike Christensen#
2530588217SMike Christensen#
2630588217SMike Christensen#	This makefile drives the production of the pseudo device
2730588217SMike Christensen#	to access the sun4v PRI
2830588217SMike Christensen#
2930588217SMike Christensen#	sun4v implementation architecture dependent
3030588217SMike Christensen#
3130588217SMike Christensen
3230588217SMike Christensen#
3330588217SMike Christensen#	Path to the base of the uts directory tree (usually /usr/src/uts).
3430588217SMike Christensen#
3530588217SMike ChristensenUTSBASE	= ../..
3630588217SMike Christensen
3730588217SMike Christensen#
3830588217SMike Christensen#	Define the module and object file sets.
3930588217SMike Christensen#
4030588217SMike ChristensenMODULE		= vlds
4130588217SMike ChristensenOBJECTS		= $(VLDS_OBJS:%=$(OBJS_DIR)/%)
4230588217SMike ChristensenLINTS		= $(VLDS_OBJS:%.o=$(LINTS_DIR)/%.ln)
4330588217SMike ChristensenROOTMODULE	= $(ROOT_PSM_DRV_DIR)/$(MODULE)
4430588217SMike Christensen
4530588217SMike Christensen#
4630588217SMike Christensen#	Include common rules.
4730588217SMike Christensen#
4830588217SMike Christenseninclude $(UTSBASE)/sun4v/Makefile.sun4v
4930588217SMike Christensen
5030588217SMike Christensen#
5130588217SMike Christensen#	Override defaults to build a unique, local modstubs.o.
5230588217SMike Christensen#
5330588217SMike ChristensenMODSTUBS_DIR	= $(OBJS_DIR)
5430588217SMike Christensen
5530588217SMike ChristensenCLEANFILES	+= $(MODSTUBS_O)
5630588217SMike Christensen
5730588217SMike Christensen#
5830588217SMike Christensen#	Define targets
5930588217SMike Christensen#
6030588217SMike ChristensenALL_TARGET	= $(BINARY)
6130588217SMike ChristensenLINT_TARGET	= $(MODULE).lint
6230588217SMike ChristensenINSTALL_TARGET	= $(BINARY) $(ROOTMODULE)
6330588217SMike Christensen
6430588217SMike Christensen#
6530588217SMike Christensen# lint pass one enforcement
6630588217SMike Christensen#
67*7014882cSRichard LoweCFLAGS += $(CCVERBOSE)
68*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-parentheses
6930588217SMike Christensen
7030588217SMike Christensen#
7130588217SMike Christensen# Module Dependencies
7230588217SMike ChristensenLDFLAGS		+= -dy -Nmisc/ds -Nmisc/platsvc
7330588217SMike Christensen
7430588217SMike Christensen#
7530588217SMike Christensen#	Default build targets.
7630588217SMike Christensen#
7730588217SMike Christensen.KEEP_STATE:
7830588217SMike Christensen
7930588217SMike Christensendef:		$(DEF_DEPS)
8030588217SMike Christensen
8130588217SMike Christensenall:		$(ALL_DEPS)
8230588217SMike Christensen
8330588217SMike Christensenclean:		$(CLEAN_DEPS)
8430588217SMike Christensen
8530588217SMike Christensenclobber:	$(CLOBBER_DEPS)
8630588217SMike Christensen
8730588217SMike Christensenlint:		$(LINT_DEPS)
8830588217SMike Christensen
8930588217SMike Christensenmodlintlib:	$(MODLINTLIB_DEPS)
9030588217SMike Christensen
9130588217SMike Christensenclean.lint:	$(CLEAN_LINT_DEPS)
9230588217SMike Christensen
9330588217SMike Christenseninstall:	$(INSTALL_DEPS)
9430588217SMike Christensen
9530588217SMike Christensen#
9630588217SMike Christensen#	Include common targets.
9730588217SMike Christensen#
9830588217SMike Christenseninclude $(UTSBASE)/$(PLATFORM)/Makefile.targ
99