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