xref: /illumos-gate/usr/src/uts/intel/vscan/Makefile (revision 911106dfb16696472af8c1b7b4c554a829354fa8)
1*911106dfSjm199354#
2*911106dfSjm199354# CDDL HEADER START
3*911106dfSjm199354#
4*911106dfSjm199354# The contents of this file are subject to the terms of the
5*911106dfSjm199354# Common Development and Distribution License (the "License").
6*911106dfSjm199354# You may not use this file except in compliance with the License.
7*911106dfSjm199354#
8*911106dfSjm199354# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*911106dfSjm199354# or http://www.opensolaris.org/os/licensing.
10*911106dfSjm199354# See the License for the specific language governing permissions
11*911106dfSjm199354# and limitations under the License.
12*911106dfSjm199354#
13*911106dfSjm199354# When distributing Covered Code, include this CDDL HEADER in each
14*911106dfSjm199354# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*911106dfSjm199354# If applicable, add the following below this CDDL HEADER, with the
16*911106dfSjm199354# fields enclosed by brackets "[]" replaced with your own identifying
17*911106dfSjm199354# information: Portions Copyright [yyyy] [name of copyright owner]
18*911106dfSjm199354#
19*911106dfSjm199354# CDDL HEADER END
20*911106dfSjm199354#
21*911106dfSjm199354#
22*911106dfSjm199354# Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
23*911106dfSjm199354# Use is subject to license terms.
24*911106dfSjm199354#
25*911106dfSjm199354#pragma ident	"%Z%%M%	%I%	%E% SMI"
26*911106dfSjm199354#
27*911106dfSjm199354#	This makefile drives the production of the vscan service
28*911106dfSjm199354#	kernel module.
29*911106dfSjm199354#
30*911106dfSjm199354#	intel implementation architecture dependent
31*911106dfSjm199354#
32*911106dfSjm199354
33*911106dfSjm199354#
34*911106dfSjm199354#	Path to the base of the uts directory tree (usually /usr/src/uts).
35*911106dfSjm199354#
36*911106dfSjm199354UTSBASE	= ../..
37*911106dfSjm199354
38*911106dfSjm199354#
39*911106dfSjm199354#	Define the module and object file sets.
40*911106dfSjm199354#
41*911106dfSjm199354MODULE		= vscan
42*911106dfSjm199354OBJECTS		= $(VSCAN_OBJS:%=$(OBJS_DIR)/%)
43*911106dfSjm199354LINTS		= $(VSCAN_OBJS:%.o=$(LINTS_DIR)/%.ln)
44*911106dfSjm199354ROOTMODULE	= $(ROOT_DRV_DIR)/$(MODULE)
45*911106dfSjm199354CONF_SRCDIR	= $(UTSBASE)/common/io/vscan
46*911106dfSjm199354
47*911106dfSjm199354#
48*911106dfSjm199354#	Include common rules.
49*911106dfSjm199354#
50*911106dfSjm199354include $(UTSBASE)/intel/Makefile.intel
51*911106dfSjm199354
52*911106dfSjm199354#
53*911106dfSjm199354#	Module dependencies
54*911106dfSjm199354#
55*911106dfSjm199354LDFLAGS += -dy -N"fs/sockfs" -N"sys/doorfs"
56*911106dfSjm199354
57*911106dfSjm199354#
58*911106dfSjm199354#	Define targets
59*911106dfSjm199354#
60*911106dfSjm199354ALL_TARGET	= $(BINARY)
61*911106dfSjm199354LINT_TARGET	= $(MODULE).lint
62*911106dfSjm199354INSTALL_TARGET	= $(BINARY) $(ROOTMODULE) $(ROOTLINK) $(ROOT_CONFFILE)
63*911106dfSjm199354
64*911106dfSjm199354#
65*911106dfSjm199354#	Overrides.
66*911106dfSjm199354#
67*911106dfSjm199354MODSTUBS_DIR	 = $(OBJS_DIR)
68*911106dfSjm199354CLEANFILES	+= $(MODSTUBS_O)
69*911106dfSjm199354
70*911106dfSjm199354#
71*911106dfSjm199354#	Default build targets.
72*911106dfSjm199354#
73*911106dfSjm199354.KEEP_STATE:
74*911106dfSjm199354
75*911106dfSjm199354def:		$(DEF_DEPS)
76*911106dfSjm199354
77*911106dfSjm199354all:		$(ALL_DEPS)
78*911106dfSjm199354
79*911106dfSjm199354clean:		$(CLEAN_DEPS)
80*911106dfSjm199354
81*911106dfSjm199354clobber:	$(CLOBBER_DEPS)
82*911106dfSjm199354
83*911106dfSjm199354lint:		$(LINT_DEPS)
84*911106dfSjm199354
85*911106dfSjm199354modlintlib:	$(MODLINTLIB_DEPS)
86*911106dfSjm199354
87*911106dfSjm199354clean.lint:	$(CLEAN_LINT_DEPS)
88*911106dfSjm199354
89*911106dfSjm199354install:	$(INSTALL_DEPS)
90*911106dfSjm199354
91*911106dfSjm199354$(ROOTLINK):	$(ROOT_SYS_DIR) $(ROOTMODULE)
92*911106dfSjm199354	-$(RM) $@; ln $(ROOTMODULE) $@
93*911106dfSjm199354
94*911106dfSjm199354#
95*911106dfSjm199354#	Include common targets.
96*911106dfSjm199354#
97*911106dfSjm199354include $(UTSBASE)/intel/Makefile.targ
98