xref: /illumos-gate/usr/src/uts/intel/vscan/Makefile (revision 41e0a469)
1911106dfSjm#
2911106dfSjm# CDDL HEADER START
3911106dfSjm#
4911106dfSjm# The contents of this file are subject to the terms of the
5911106dfSjm# Common Development and Distribution License (the "License").
6911106dfSjm# You may not use this file except in compliance with the License.
7911106dfSjm#
8911106dfSjm# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9911106dfSjm# or http://www.opensolaris.org/os/licensing.
10911106dfSjm# See the License for the specific language governing permissions
11911106dfSjm# and limitations under the License.
12911106dfSjm#
13911106dfSjm# When distributing Covered Code, include this CDDL HEADER in each
14911106dfSjm# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15911106dfSjm# If applicable, add the following below this CDDL HEADER, with the
16911106dfSjm# fields enclosed by brackets "[]" replaced with your own identifying
17911106dfSjm# information: Portions Copyright [yyyy] [name of copyright owner]
18911106dfSjm#
19911106dfSjm# CDDL HEADER END
20911106dfSjm#
21911106dfSjm#
22911106dfSjm# Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
23911106dfSjm# Use is subject to license terms.
24911106dfSjm#
250aaef2f5SRichard Lowe
26911106dfSjm#
27911106dfSjm#	This makefile drives the production of the vscan service
28911106dfSjm#	kernel module.
29911106dfSjm#
30911106dfSjm#	intel implementation architecture dependent
31911106dfSjm#
32911106dfSjm
33911106dfSjm#
34911106dfSjm#	Path to the base of the uts directory tree (usually /usr/src/uts).
35911106dfSjm#
36911106dfSjmUTSBASE	= ../..
37911106dfSjm
38911106dfSjm#
39911106dfSjm#	Define the module and object file sets.
40911106dfSjm#
41911106dfSjmMODULE		= vscan
42911106dfSjmOBJECTS		= $(VSCAN_OBJS:%=$(OBJS_DIR)/%)
43911106dfSjmROOTMODULE	= $(ROOT_DRV_DIR)/$(MODULE)
44911106dfSjmCONF_SRCDIR	= $(UTSBASE)/common/io/vscan
45911106dfSjm
46911106dfSjm#
47911106dfSjm#	Include common rules.
48911106dfSjm#
49911106dfSjminclude $(UTSBASE)/intel/Makefile.intel
50911106dfSjm
51911106dfSjm#
52911106dfSjm#	Module dependencies
53911106dfSjm#
54*82d0151aSRichard LoweLDFLAGS += -Nfs/sockfs -Nsys/doorfs
55911106dfSjm
56911106dfSjm#
57911106dfSjm#	Define targets
58911106dfSjm#
59911106dfSjmALL_TARGET	= $(BINARY)
60911106dfSjmINSTALL_TARGET	= $(BINARY) $(ROOTMODULE) $(ROOTLINK) $(ROOT_CONFFILE)
61911106dfSjm
62911106dfSjm#
63911106dfSjm#	Default build targets.
64911106dfSjm#
65911106dfSjm.KEEP_STATE:
66911106dfSjm
67911106dfSjmdef:		$(DEF_DEPS)
68911106dfSjm
69911106dfSjmall:		$(ALL_DEPS)
70911106dfSjm
71911106dfSjmclean:		$(CLEAN_DEPS)
72911106dfSjm
73911106dfSjmclobber:	$(CLOBBER_DEPS)
74911106dfSjm
75911106dfSjminstall:	$(INSTALL_DEPS)
76911106dfSjm
77911106dfSjm$(ROOTLINK):	$(ROOT_SYS_DIR) $(ROOTMODULE)
78911106dfSjm	-$(RM) $@; ln $(ROOTMODULE) $@
79911106dfSjm
80911106dfSjm#
81911106dfSjm#	Include common targets.
82911106dfSjm#
83911106dfSjminclude $(UTSBASE)/intel/Makefile.targ
84