xref: /titanic_54/usr/src/uts/intel/dev/Makefile (revision bb25c06cca41ca78e5fb87fbb8e81d55beb18c95)
1facf4a8dSllai1#
2facf4a8dSllai1# CDDL HEADER START
3facf4a8dSllai1#
4facf4a8dSllai1# The contents of this file are subject to the terms of the
5facf4a8dSllai1# Common Development and Distribution License (the "License").
6facf4a8dSllai1# You may not use this file except in compliance with the License.
7facf4a8dSllai1#
8facf4a8dSllai1# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9facf4a8dSllai1# or http://www.opensolaris.org/os/licensing.
10facf4a8dSllai1# See the License for the specific language governing permissions
11facf4a8dSllai1# and limitations under the License.
12facf4a8dSllai1#
13facf4a8dSllai1# When distributing Covered Code, include this CDDL HEADER in each
14facf4a8dSllai1# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15facf4a8dSllai1# If applicable, add the following below this CDDL HEADER, with the
16facf4a8dSllai1# fields enclosed by brackets "[]" replaced with your own identifying
17facf4a8dSllai1# information: Portions Copyright [yyyy] [name of copyright owner]
18facf4a8dSllai1#
19facf4a8dSllai1# CDDL HEADER END
20facf4a8dSllai1#
21facf4a8dSllai1# uts/intel/dev/Makefile
22facf4a8dSllai1#
23facf4a8dSllai1# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
24facf4a8dSllai1# Use is subject to license terms.
25facf4a8dSllai1#
26*bb25c06cSjg#ident	"%Z%%M%	%I%	%E% SMI"
27facf4a8dSllai1#
28facf4a8dSllai1#	This makefile drives the production of the dev file system
29facf4a8dSllai1#	kernel module.
30facf4a8dSllai1#
31facf4a8dSllai1#	intel architecture dependent
32facf4a8dSllai1#
33facf4a8dSllai1
34facf4a8dSllai1#
35facf4a8dSllai1#	Path to the base of the uts directory tree (usually /usr/src/uts).
36facf4a8dSllai1#
37facf4a8dSllai1UTSBASE	= ../..
38facf4a8dSllai1
39facf4a8dSllai1#
40facf4a8dSllai1#	Define the module and object file sets.
41facf4a8dSllai1#
42facf4a8dSllai1MODULE		= dev
43facf4a8dSllai1OBJECTS		= $(DEV_OBJS:%=$(OBJS_DIR)/%)
44facf4a8dSllai1LINTS		= $(DEV_OBJS:%.o=$(LINTS_DIR)/%.ln)
45facf4a8dSllai1ROOTMODULE	= $(ROOT_FS_DIR)/$(MODULE)
46facf4a8dSllai1
47facf4a8dSllai1#
48facf4a8dSllai1#	Include common rules.
49facf4a8dSllai1#
50facf4a8dSllai1include $(UTSBASE)/intel/Makefile.intel
51facf4a8dSllai1
52facf4a8dSllai1#
53facf4a8dSllai1#	Define targets
54facf4a8dSllai1#
55facf4a8dSllai1ALL_TARGET	= $(BINARY)
56facf4a8dSllai1LINT_TARGET	= $(MODULE).lint
57facf4a8dSllai1INSTALL_TARGET	= $(BINARY) $(ROOTMODULE)
58facf4a8dSllai1
59facf4a8dSllai1#
60facf4a8dSllai1#	Override defaults to build a unique, local modstubs.o.
61facf4a8dSllai1#
62facf4a8dSllai1MODSTUBS_DIR	 = $(OBJS_DIR)
63*bb25c06cSjgCFLAGS		+= $(CCVERBOSE)
64facf4a8dSllai1LDFLAGS		+= -dy -Nfs/devfs
65facf4a8dSllai1
66facf4a8dSllai1#
67*bb25c06cSjg# For now, disable these lint checks; maintainers should endeavor
68*bb25c06cSjg# to investigate and remove these for maximum lint coverage.
69*bb25c06cSjg# Please do not carry these forward to new Makefiles.
70*bb25c06cSjg#
71*bb25c06cSjgLINTTAGS	+= -erroff=E_BAD_PTR_CAST_ALIGN
72*bb25c06cSjgLINTTAGS	+= -erroff=E_STATIC_UNUSED
73*bb25c06cSjgLINTTAGS	+= -erroff=E_ASSIGN_NARROW_CONV
74*bb25c06cSjg
75*bb25c06cSjg#
76facf4a8dSllai1#	Default build targets.
77facf4a8dSllai1#
78facf4a8dSllai1.KEEP_STATE:
79facf4a8dSllai1
80facf4a8dSllai1def:		$(DEF_DEPS)
81facf4a8dSllai1
82facf4a8dSllai1all:		$(ALL_DEPS)
83facf4a8dSllai1
84facf4a8dSllai1clean:		$(CLEAN_DEPS)
85facf4a8dSllai1
86facf4a8dSllai1clobber:	$(CLOBBER_DEPS)
87facf4a8dSllai1
88facf4a8dSllai1lint:		$(LINT_DEPS)
89facf4a8dSllai1
90facf4a8dSllai1modlintlib:	$(MODLINTLIB_DEPS)
91facf4a8dSllai1
92facf4a8dSllai1clean.lint:	$(CLEAN_LINT_DEPS)
93facf4a8dSllai1
94facf4a8dSllai1install:	$(INSTALL_DEPS)
95facf4a8dSllai1
96facf4a8dSllai1#
97facf4a8dSllai1#	Include common targets.
98facf4a8dSllai1#
99facf4a8dSllai1include $(UTSBASE)/intel/Makefile.targ
100