xref: /titanic_50/usr/src/uts/sun4v/drctl/Makefile (revision 1d4b38e0077763e7c9b20768eacb841957e787bc)
1*1d4b38e0Srsmaeda#
2*1d4b38e0Srsmaeda# CDDL HEADER START
3*1d4b38e0Srsmaeda#
4*1d4b38e0Srsmaeda# The contents of this file are subject to the terms of the
5*1d4b38e0Srsmaeda# Common Development and Distribution License (the "License").
6*1d4b38e0Srsmaeda# You may not use this file except in compliance with the License.
7*1d4b38e0Srsmaeda#
8*1d4b38e0Srsmaeda# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*1d4b38e0Srsmaeda# or http://www.opensolaris.org/os/licensing.
10*1d4b38e0Srsmaeda# See the License for the specific language governing permissions
11*1d4b38e0Srsmaeda# and limitations under the License.
12*1d4b38e0Srsmaeda#
13*1d4b38e0Srsmaeda# When distributing Covered Code, include this CDDL HEADER in each
14*1d4b38e0Srsmaeda# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*1d4b38e0Srsmaeda# If applicable, add the following below this CDDL HEADER, with the
16*1d4b38e0Srsmaeda# fields enclosed by brackets "[]" replaced with your own identifying
17*1d4b38e0Srsmaeda# information: Portions Copyright [yyyy] [name of copyright owner]
18*1d4b38e0Srsmaeda#
19*1d4b38e0Srsmaeda# CDDL HEADER END
20*1d4b38e0Srsmaeda#
21*1d4b38e0Srsmaeda
22*1d4b38e0Srsmaeda#
23*1d4b38e0Srsmaeda# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
24*1d4b38e0Srsmaeda# Use is subject to license terms.
25*1d4b38e0Srsmaeda#
26*1d4b38e0Srsmaeda# ident	"%Z%%M%	%I%	%E% SMI"
27*1d4b38e0Srsmaeda#
28*1d4b38e0Srsmaeda# This makefile drives the production of the drctl kernel module.
29*1d4b38e0Srsmaeda#
30*1d4b38e0Srsmaeda# sun4v implementation architecture dependent
31*1d4b38e0Srsmaeda#
32*1d4b38e0Srsmaeda
33*1d4b38e0Srsmaeda#
34*1d4b38e0Srsmaeda# Path to the base of the uts directory tree (usually /usr/src/uts).
35*1d4b38e0Srsmaeda#
36*1d4b38e0SrsmaedaUTSBASE	= ../..
37*1d4b38e0Srsmaeda
38*1d4b38e0Srsmaeda#
39*1d4b38e0Srsmaeda# Define the module and object file sets.
40*1d4b38e0Srsmaeda#
41*1d4b38e0SrsmaedaMODULE		= drctl
42*1d4b38e0SrsmaedaOBJECTS		= $(DRCTL_OBJS:%=$(OBJS_DIR)/%)
43*1d4b38e0SrsmaedaLINTS		= $(DRCTL_OBJS:%.o=$(LINTS_DIR)/%.ln)
44*1d4b38e0SrsmaedaROOTMODULE	= $(ROOT_PSM_DRV_DIR)/$(MODULE)
45*1d4b38e0SrsmaedaCONF_SRCDIR	= $(UTSBASE)/sun4v/io
46*1d4b38e0Srsmaeda
47*1d4b38e0Srsmaeda#
48*1d4b38e0Srsmaeda# Include common rules.
49*1d4b38e0Srsmaeda#
50*1d4b38e0Srsmaedainclude $(UTSBASE)/sun4v/Makefile.sun4v
51*1d4b38e0Srsmaeda
52*1d4b38e0Srsmaeda#
53*1d4b38e0Srsmaeda# Define targets
54*1d4b38e0Srsmaeda#
55*1d4b38e0SrsmaedaALL_TARGET	= $(BINARY)
56*1d4b38e0SrsmaedaLINT_TARGET	= $(MODULE).lint
57*1d4b38e0SrsmaedaINSTALL_TARGET	= $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
58*1d4b38e0Srsmaeda
59*1d4b38e0Srsmaeda#
60*1d4b38e0Srsmaeda# lint pass one enforcement
61*1d4b38e0Srsmaeda#
62*1d4b38e0SrsmaedaCFLAGS		+= -v
63*1d4b38e0Srsmaeda
64*1d4b38e0Srsmaeda#
65*1d4b38e0Srsmaeda# Turn on doubleword alignment for 64 bit registers
66*1d4b38e0Srsmaeda#
67*1d4b38e0SrsmaedaCFLAGS		+= -dalign
68*1d4b38e0Srsmaeda
69*1d4b38e0Srsmaeda#
70*1d4b38e0Srsmaeda# Default build targets.
71*1d4b38e0Srsmaeda#
72*1d4b38e0Srsmaeda.KEEP_STATE:
73*1d4b38e0Srsmaeda
74*1d4b38e0Srsmaedadef:		$(DEF_DEPS)
75*1d4b38e0Srsmaeda
76*1d4b38e0Srsmaedaall:		$(ALL_DEPS)
77*1d4b38e0Srsmaeda
78*1d4b38e0Srsmaedaclean:		$(CLEAN_DEPS)
79*1d4b38e0Srsmaeda
80*1d4b38e0Srsmaedaclobber:	$(CLOBBER_DEPS)
81*1d4b38e0Srsmaeda
82*1d4b38e0Srsmaedalint:		$(LINT_DEPS)
83*1d4b38e0Srsmaeda
84*1d4b38e0Srsmaedamodlintlib:	$(MODLINTLIB_DEPS)
85*1d4b38e0Srsmaeda
86*1d4b38e0Srsmaedaclean.lint:	$(CLEAN_LINT_DEPS)
87*1d4b38e0Srsmaeda
88*1d4b38e0Srsmaedainstall:	$(INSTALL_DEPS)
89*1d4b38e0Srsmaeda
90*1d4b38e0Srsmaeda#
91*1d4b38e0Srsmaeda# Include common targets.
92*1d4b38e0Srsmaeda#
93*1d4b38e0Srsmaedainclude $(UTSBASE)/$(PLATFORM)/Makefile.targ
94