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