xref: /titanic_50/usr/src/uts/sparc/dev/Makefile (revision 0a0e9771ca0211c15f3ac4466b661c145feeb9e4)
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#
21681d9761SEric Taylor# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
22facf4a8dSllai1# Use is subject to license terms.
23facf4a8dSllai1#
24facf4a8dSllai1# uts/sparc/dev/Makefile
25facf4a8dSllai1#	This makefile drives the production of the /dev file system
26facf4a8dSllai1#	kernel module.
27facf4a8dSllai1#
28facf4a8dSllai1#	sparc implementation architecture dependent
29facf4a8dSllai1#
30facf4a8dSllai1
31facf4a8dSllai1#
32facf4a8dSllai1#	Path to the base of the uts directory tree (usually /usr/src/uts).
33facf4a8dSllai1#
34facf4a8dSllai1UTSBASE	= ../..
35facf4a8dSllai1
36facf4a8dSllai1#
37facf4a8dSllai1#	Define the module and object file sets.
38facf4a8dSllai1#
39facf4a8dSllai1MODULE		= dev
40facf4a8dSllai1OBJECTS		= $(DEV_OBJS:%=$(OBJS_DIR)/%)
41facf4a8dSllai1LINTS		= $(DEV_OBJS:%.o=$(LINTS_DIR)/%.ln)
42facf4a8dSllai1ROOTMODULE	= $(ROOT_FS_DIR)/$(MODULE)
43facf4a8dSllai1
44facf4a8dSllai1#
45facf4a8dSllai1#	Include common rules.
46facf4a8dSllai1#
47facf4a8dSllai1include $(UTSBASE)/sparc/Makefile.sparc
48facf4a8dSllai1
49facf4a8dSllai1#
50facf4a8dSllai1#	Define targets
51facf4a8dSllai1#
52facf4a8dSllai1ALL_TARGET	= $(BINARY)
53facf4a8dSllai1LINT_TARGET	= $(MODULE).lint
54facf4a8dSllai1INSTALL_TARGET	= $(BINARY) $(ROOTMODULE)
55facf4a8dSllai1
56facf4a8dSllai1#
57facf4a8dSllai1#	Overrides.
58facf4a8dSllai1#
59facf4a8dSllai1MODSTUBS_DIR	 = $(OBJS_DIR)
60facf4a8dSllai1# $(MODSTUBS_O)	:= AS_CPPFLAGS += -DDEVFS_MODULE
61facf4a8dSllai1# CLEANFILES	+= $(MODSTUBS_O)
62bb25c06cSjgCFLAGS		+= $(CCVERBOSE)
63d62bc4baSyz147064LDFLAGS		+= -dy -Nfs/devfs -Nmisc/dls
64681d9761SEric TaylorINC_PATH	+= -I$(UTSBASE)/common/fs/zfs
65*0a0e9771SDarren ReedINC_PATH	+= -I$(UTSBASE)/common/io/bpf
66facf4a8dSllai1
67facf4a8dSllai1#
68facf4a8dSllai1#	Default build targets.
69facf4a8dSllai1#
70facf4a8dSllai1.KEEP_STATE:
71facf4a8dSllai1
72facf4a8dSllai1def:		$(DEF_DEPS)
73facf4a8dSllai1
74facf4a8dSllai1all:		$(ALL_DEPS)
75facf4a8dSllai1
76facf4a8dSllai1clean:		$(CLEAN_DEPS)
77facf4a8dSllai1
78facf4a8dSllai1clobber:	$(CLOBBER_DEPS)
79facf4a8dSllai1
80facf4a8dSllai1lint:		$(LINT_DEPS)
81facf4a8dSllai1
82facf4a8dSllai1modlintlib:	$(MODLINTLIB_DEPS)
83facf4a8dSllai1
84facf4a8dSllai1clean.lint:	$(CLEAN_LINT_DEPS)
85facf4a8dSllai1
86facf4a8dSllai1install:	$(INSTALL_DEPS)
87facf4a8dSllai1
88facf4a8dSllai1#
89facf4a8dSllai1#	Include common targets.
90facf4a8dSllai1#
91facf4a8dSllai1include $(UTSBASE)/sparc/Makefile.targ
92