xref: /titanic_44/usr/src/uts/sun4v/n2rng/Makefile (revision fe54a78e1aacf39261ad56e9903bce02e3fb6d21)
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#
23*fe54a78eSHai-May Chao# Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
24fec509a0Sgm89044# Use is subject to license terms.
25fec509a0Sgm89044#
26fec509a0Sgm89044#
27fec509a0Sgm89044#
28fec509a0Sgm89044#	This makefile drives the production of the n2rng driver kernel module.
29fec509a0Sgm89044#
30fec509a0Sgm89044#	sun4v implementation architecture dependent
31fec509a0Sgm89044#
32fec509a0Sgm89044
33fec509a0Sgm89044#
34fec509a0Sgm89044#	Path to the base of the uts directory tree (usually /usr/src/uts).
35fec509a0Sgm89044#
36fec509a0Sgm89044UTSBASE = ../..
37*fe54a78eSHai-May ChaoCOM_DIR   = $(COMMONBASE)/crypto
38fec509a0Sgm89044
39fec509a0Sgm89044#
40fec509a0Sgm89044#	Define the module and object file sets.
41fec509a0Sgm89044#
42fec509a0Sgm89044MODULE		= n2rng
43fec509a0Sgm89044OBJECTS		= $(N2RNG_OBJS:%=$(OBJS_DIR)/%)
44fec509a0Sgm89044LINTS		= $(N2RNG_OBJS:%.o=$(LINTS_DIR)/%.ln)
45fec509a0Sgm89044ROOTMODULE	= $(ROOT_PSM_DRV_DIR)/$(MODULE)
46fec509a0Sgm89044CONF_SRCDIR     = $(UTSBASE)/sun4v/io/n2rng
47fec509a0Sgm89044
48fec509a0Sgm89044#
49fec509a0Sgm89044#	Include common rules.
50fec509a0Sgm89044#
51fec509a0Sgm89044include $(UTSBASE)/sun4v/Makefile.sun4v
52fec509a0Sgm89044
53fec509a0Sgm89044#
54fec509a0Sgm89044#	Override defaults to build a unique, local modstubs.o.
55fec509a0Sgm89044#
56fec509a0Sgm89044MODSTUBS_DIR	= $(OBJS_DIR)
57fec509a0Sgm89044
58fec509a0Sgm89044CLEANFILES	+= $(MODSTUBS_O)
59fec509a0Sgm89044
60fec509a0Sgm89044#
61fec509a0Sgm89044#	Define targets
62fec509a0Sgm89044#
63fec509a0Sgm89044ALL_TARGET	= $(BINARY)
64fec509a0Sgm89044LINT_TARGET	= $(MODULE).lint
65fec509a0Sgm89044INSTALL_TARGET	= $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
66fec509a0Sgm89044
67fec509a0Sgm89044#
68fec509a0Sgm89044# lint pass one enforcement
69fec509a0Sgm89044#
70*fe54a78eSHai-May ChaoCFLAGS += -v -DN2 -I$(COM_DIR)
71*fe54a78eSHai-May ChaoLINTFLAGS += -DN2 -I$(COM_DIR)
72*fe54a78eSHai-May Chao
73*fe54a78eSHai-May Chao#
74*fe54a78eSHai-May Chao# module dependencies
75*fe54a78eSHai-May Chao#
76*fe54a78eSHai-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