xref: /titanic_50/usr/src/uts/sun4v/vds/Makefile (revision 1ae0874509b6811fdde1dfd46f0d93fd09867a3f)
1*1ae08745Sheppo#
2*1ae08745Sheppo# CDDL HEADER START
3*1ae08745Sheppo#
4*1ae08745Sheppo# The contents of this file are subject to the terms of the
5*1ae08745Sheppo# Common Development and Distribution License (the "License").
6*1ae08745Sheppo# You may not use this file except in compliance with the License.
7*1ae08745Sheppo#
8*1ae08745Sheppo# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*1ae08745Sheppo# or http://www.opensolaris.org/os/licensing.
10*1ae08745Sheppo# See the License for the specific language governing permissions
11*1ae08745Sheppo# and limitations under the License.
12*1ae08745Sheppo#
13*1ae08745Sheppo# When distributing Covered Code, include this CDDL HEADER in each
14*1ae08745Sheppo# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*1ae08745Sheppo# If applicable, add the following below this CDDL HEADER, with the
16*1ae08745Sheppo# fields enclosed by brackets "[]" replaced with your own identifying
17*1ae08745Sheppo# information: Portions Copyright [yyyy] [name of copyright owner]
18*1ae08745Sheppo#
19*1ae08745Sheppo# CDDL HEADER END
20*1ae08745Sheppo#
21*1ae08745Sheppo
22*1ae08745Sheppo#
23*1ae08745Sheppo# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
24*1ae08745Sheppo# Use is subject to license terms.
25*1ae08745Sheppo#
26*1ae08745Sheppo# uts/sun4v/vds/Makefile
27*1ae08745Sheppo#
28*1ae08745Sheppo#pragma ident	"%Z%%M%	%I%	%E% SMI"
29*1ae08745Sheppo#
30*1ae08745Sheppo#	This makefile drives the production of the vds driver module.
31*1ae08745Sheppo#
32*1ae08745Sheppo#	sun4v implementation architecture dependent
33*1ae08745Sheppo#
34*1ae08745Sheppo
35*1ae08745Sheppo#
36*1ae08745Sheppo#	Path to the base of the uts directory tree (usually /usr/src/uts).
37*1ae08745Sheppo#
38*1ae08745SheppoUTSBASE	= ../..
39*1ae08745Sheppo
40*1ae08745Sheppo#
41*1ae08745Sheppo#	Define the module and object file sets.
42*1ae08745Sheppo#
43*1ae08745SheppoMODULE		= vds
44*1ae08745SheppoOBJECTS		= $(VDS_OBJS:%=$(OBJS_DIR)/%)
45*1ae08745SheppoLINTS		= $(VDS_OBJS:%.o=$(LINTS_DIR)/%.ln)
46*1ae08745SheppoROOTMODULE	= $(ROOT_PSM_DRV_DIR)/$(MODULE)
47*1ae08745Sheppo
48*1ae08745Sheppo#
49*1ae08745Sheppo#	Include common rules.
50*1ae08745Sheppo#
51*1ae08745Sheppoinclude $(UTSBASE)/sun4v/Makefile.sun4v
52*1ae08745Sheppo
53*1ae08745Sheppo#
54*1ae08745Sheppo#	Override defaults to build a unique, local modstubs.o.
55*1ae08745Sheppo#
56*1ae08745SheppoMODSTUBS_DIR	= $(OBJS_DIR)
57*1ae08745Sheppo
58*1ae08745SheppoCLEANFILES	+= $(MODSTUBS_O)
59*1ae08745Sheppo
60*1ae08745Sheppo#
61*1ae08745Sheppo#	Define targets
62*1ae08745Sheppo#
63*1ae08745SheppoALL_TARGET	= $(BINARY)
64*1ae08745SheppoLINT_TARGET	= $(MODULE).lint
65*1ae08745SheppoINSTALL_TARGET	= $(BINARY) $(ROOTMODULE)
66*1ae08745Sheppo
67*1ae08745Sheppo#
68*1ae08745Sheppo# lint pass one enforcement
69*1ae08745Sheppo#
70*1ae08745SheppoCFLAGS += $(CCVERBOSE)
71*1ae08745Sheppo
72*1ae08745Sheppo#
73*1ae08745Sheppo# module dependencies
74*1ae08745Sheppo#
75*1ae08745SheppoLDFLAGS += -dy -Nmisc/ldc -Nmisc/platsvc
76*1ae08745Sheppo
77*1ae08745Sheppo#
78*1ae08745Sheppo# Manually turn on C99 compilation until the sync with snv_38 re-enables it
79*1ae08745Sheppo#
80*1ae08745SheppoC99MODE = $(C99_ENABLE)
81*1ae08745Sheppo
82*1ae08745Sheppo#
83*1ae08745Sheppo#	Default build targets.
84*1ae08745Sheppo#
85*1ae08745Sheppo.KEEP_STATE:
86*1ae08745Sheppo
87*1ae08745Sheppodef:		$(DEF_DEPS)
88*1ae08745Sheppo
89*1ae08745Sheppoall:		$(ALL_DEPS)
90*1ae08745Sheppo
91*1ae08745Sheppoclean:		$(CLEAN_DEPS)
92*1ae08745Sheppo
93*1ae08745Sheppoclobber:	$(CLOBBER_DEPS)
94*1ae08745Sheppo
95*1ae08745Sheppolint:		$(LINT_DEPS)
96*1ae08745Sheppo
97*1ae08745Sheppomodlintlib:	$(MODLINTLIB_DEPS)
98*1ae08745Sheppo
99*1ae08745Sheppoclean.lint:	$(CLEAN_LINT_DEPS)
100*1ae08745Sheppo
101*1ae08745Sheppoinstall:	$(INSTALL_DEPS)
102*1ae08745Sheppo
103*1ae08745Sheppo#
104*1ae08745Sheppo#	Include common targets.
105*1ae08745Sheppo#
106*1ae08745Sheppoinclude $(UTSBASE)/$(PLATFORM)/Makefile.targ
107