xref: /titanic_44/usr/src/uts/sun4v/n2rng/Makefile (revision fec509a05ddbf645268fe2e537314def7d1b67c8)
1*fec509a0Sgm89044#
2*fec509a0Sgm89044# CDDL HEADER START
3*fec509a0Sgm89044#
4*fec509a0Sgm89044# The contents of this file are subject to the terms of the
5*fec509a0Sgm89044# Common Development and Distribution License (the "License").
6*fec509a0Sgm89044# You may not use this file except in compliance with the License.
7*fec509a0Sgm89044#
8*fec509a0Sgm89044# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*fec509a0Sgm89044# or http://www.opensolaris.org/os/licensing.
10*fec509a0Sgm89044# See the License for the specific language governing permissions
11*fec509a0Sgm89044# and limitations under the License.
12*fec509a0Sgm89044#
13*fec509a0Sgm89044# When distributing Covered Code, include this CDDL HEADER in each
14*fec509a0Sgm89044# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*fec509a0Sgm89044# If applicable, add the following below this CDDL HEADER, with the
16*fec509a0Sgm89044# fields enclosed by brackets "[]" replaced with your own identifying
17*fec509a0Sgm89044# information: Portions Copyright [yyyy] [name of copyright owner]
18*fec509a0Sgm89044#
19*fec509a0Sgm89044# CDDL HEADER END
20*fec509a0Sgm89044#
21*fec509a0Sgm89044# uts/sun4v/n2rng/Makefile
22*fec509a0Sgm89044#
23*fec509a0Sgm89044# Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
24*fec509a0Sgm89044# Use is subject to license terms.
25*fec509a0Sgm89044#
26*fec509a0Sgm89044#
27*fec509a0Sgm89044#ident	"%Z%%M%	%I%	%E% SMI"
28*fec509a0Sgm89044#
29*fec509a0Sgm89044#	This makefile drives the production of the n2rng driver kernel module.
30*fec509a0Sgm89044#
31*fec509a0Sgm89044#	sun4v implementation architecture dependent
32*fec509a0Sgm89044#
33*fec509a0Sgm89044
34*fec509a0Sgm89044#
35*fec509a0Sgm89044#	Path to the base of the uts directory tree (usually /usr/src/uts).
36*fec509a0Sgm89044#
37*fec509a0Sgm89044UTSBASE = ../..
38*fec509a0Sgm89044
39*fec509a0Sgm89044#
40*fec509a0Sgm89044#	Define the module and object file sets.
41*fec509a0Sgm89044#
42*fec509a0Sgm89044MODULE		= n2rng
43*fec509a0Sgm89044OBJECTS		= $(N2RNG_OBJS:%=$(OBJS_DIR)/%)
44*fec509a0Sgm89044LINTS		= $(N2RNG_OBJS:%.o=$(LINTS_DIR)/%.ln)
45*fec509a0Sgm89044ROOTMODULE	= $(ROOT_PSM_DRV_DIR)/$(MODULE)
46*fec509a0Sgm89044CONF_SRCDIR     = $(UTSBASE)/sun4v/io/n2rng
47*fec509a0Sgm89044
48*fec509a0Sgm89044#
49*fec509a0Sgm89044#	Include common rules.
50*fec509a0Sgm89044#
51*fec509a0Sgm89044include $(UTSBASE)/sun4v/Makefile.sun4v
52*fec509a0Sgm89044
53*fec509a0Sgm89044#
54*fec509a0Sgm89044#	Override defaults to build a unique, local modstubs.o.
55*fec509a0Sgm89044#
56*fec509a0Sgm89044MODSTUBS_DIR	= $(OBJS_DIR)
57*fec509a0Sgm89044
58*fec509a0Sgm89044CLEANFILES	+= $(MODSTUBS_O)
59*fec509a0Sgm89044
60*fec509a0Sgm89044#
61*fec509a0Sgm89044#	Define targets
62*fec509a0Sgm89044#
63*fec509a0Sgm89044ALL_TARGET	= $(BINARY)
64*fec509a0Sgm89044LINT_TARGET	= $(MODULE).lint
65*fec509a0Sgm89044INSTALL_TARGET	= $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
66*fec509a0Sgm89044
67*fec509a0Sgm89044#
68*fec509a0Sgm89044# lint pass one enforcement
69*fec509a0Sgm89044#
70*fec509a0Sgm89044CFLAGS += -v -DN2
71*fec509a0Sgm89044LINTFLAGS += -DN2
72*fec509a0Sgm89044
73*fec509a0Sgm89044#
74*fec509a0Sgm89044#	Default build targets.
75*fec509a0Sgm89044#
76*fec509a0Sgm89044.KEEP_STATE:
77*fec509a0Sgm89044
78*fec509a0Sgm89044def:		$(DEF_DEPS)
79*fec509a0Sgm89044
80*fec509a0Sgm89044all:		$(ALL_DEPS)
81*fec509a0Sgm89044
82*fec509a0Sgm89044clean:		$(CLEAN_DEPS)
83*fec509a0Sgm89044
84*fec509a0Sgm89044clobber:	$(CLOBBER_DEPS)
85*fec509a0Sgm89044
86*fec509a0Sgm89044lint:		$(LINT_DEPS)
87*fec509a0Sgm89044
88*fec509a0Sgm89044modlintlib:	$(MODLINTLIB_DEPS)
89*fec509a0Sgm89044
90*fec509a0Sgm89044clean.lint:	$(CLEAN_LINT_DEPS)
91*fec509a0Sgm89044
92*fec509a0Sgm89044install:	$(INSTALL_DEPS)
93*fec509a0Sgm89044
94*fec509a0Sgm89044#
95*fec509a0Sgm89044#	Include common targets.
96*fec509a0Sgm89044#
97*fec509a0Sgm89044include $(UTSBASE)/sun4v/Makefile.targ
98