xref: /titanic_50/usr/src/uts/intel/idm/Makefile (revision a6d42e7d71324c5193c3b94d57d96ba2925d52e1)
1*a6d42e7dSPeter Dunlap#
2*a6d42e7dSPeter Dunlap# CDDL HEADER START
3*a6d42e7dSPeter Dunlap#
4*a6d42e7dSPeter Dunlap# The contents of this file are subject to the terms of the
5*a6d42e7dSPeter Dunlap# Common Development and Distribution License (the "License").
6*a6d42e7dSPeter Dunlap# You may not use this file except in compliance with the License.
7*a6d42e7dSPeter Dunlap#
8*a6d42e7dSPeter Dunlap# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*a6d42e7dSPeter Dunlap# or http://www.opensolaris.org/os/licensing.
10*a6d42e7dSPeter Dunlap# See the License for the specific language governing permissions
11*a6d42e7dSPeter Dunlap# and limitations under the License.
12*a6d42e7dSPeter Dunlap#
13*a6d42e7dSPeter Dunlap# When distributing Covered Code, include this CDDL HEADER in each
14*a6d42e7dSPeter Dunlap# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*a6d42e7dSPeter Dunlap# If applicable, add the following below this CDDL HEADER, with the
16*a6d42e7dSPeter Dunlap# fields enclosed by brackets "[]" replaced with your own identifying
17*a6d42e7dSPeter Dunlap# information: Portions Copyright [yyyy] [name of copyright owner]
18*a6d42e7dSPeter Dunlap#
19*a6d42e7dSPeter Dunlap# CDDL HEADER END
20*a6d42e7dSPeter Dunlap#
21*a6d42e7dSPeter Dunlap#
22*a6d42e7dSPeter Dunlap# uts/intel/io/idm/Makefile
23*a6d42e7dSPeter Dunlap#
24*a6d42e7dSPeter Dunlap# Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
25*a6d42e7dSPeter Dunlap# Use is subject to license terms.
26*a6d42e7dSPeter Dunlap#
27*a6d42e7dSPeter Dunlap#
28*a6d42e7dSPeter Dunlap#	This makefile drives the production of the idm kernel module.
29*a6d42e7dSPeter Dunlap#
30*a6d42e7dSPeter Dunlap#	intel architecture dependent
31*a6d42e7dSPeter Dunlap#
32*a6d42e7dSPeter Dunlap
33*a6d42e7dSPeter Dunlap#
34*a6d42e7dSPeter Dunlap#	Path to the base of the uts directory tree (usually /usr/src/uts).
35*a6d42e7dSPeter Dunlap#
36*a6d42e7dSPeter DunlapUTSBASE	= ../..
37*a6d42e7dSPeter Dunlap
38*a6d42e7dSPeter Dunlap#
39*a6d42e7dSPeter Dunlap#	Define the module and object file sets.
40*a6d42e7dSPeter Dunlap#
41*a6d42e7dSPeter DunlapMODULE		= idm
42*a6d42e7dSPeter DunlapOBJECTS		= $(IDM_OBJS:%=$(OBJS_DIR)/%)
43*a6d42e7dSPeter DunlapLINTS		= $(IDM_OBJS:%.o=$(LINTS_DIR)/%.ln)
44*a6d42e7dSPeter DunlapROOTMODULE	= $(ROOT_MISC_DIR)/$(MODULE)
45*a6d42e7dSPeter Dunlap
46*a6d42e7dSPeter Dunlap#
47*a6d42e7dSPeter Dunlap#	Include common rules.
48*a6d42e7dSPeter Dunlap#
49*a6d42e7dSPeter Dunlapinclude $(UTSBASE)/intel/Makefile.intel
50*a6d42e7dSPeter Dunlap
51*a6d42e7dSPeter Dunlap#
52*a6d42e7dSPeter Dunlap#	Define targets
53*a6d42e7dSPeter Dunlap#
54*a6d42e7dSPeter DunlapALL_TARGET	= $(BINARY)
55*a6d42e7dSPeter DunlapLINT_TARGET	= $(MODULE).lint
56*a6d42e7dSPeter DunlapINSTALL_TARGET	= $(BINARY) $(ROOTMODULE)
57*a6d42e7dSPeter Dunlap
58*a6d42e7dSPeter Dunlap#
59*a6d42e7dSPeter Dunlap#	Overrides.
60*a6d42e7dSPeter Dunlap#
61*a6d42e7dSPeter DunlapDEBUG_FLGS	=
62*a6d42e7dSPeter DunlapDEBUG_DEFS	+= $(DEBUG_FLGS)
63*a6d42e7dSPeter DunlapLDFLAGS		+= -dy -Nfs/sockfs
64*a6d42e7dSPeter Dunlap
65*a6d42e7dSPeter Dunlap#
66*a6d42e7dSPeter Dunlap#	Default build targets.
67*a6d42e7dSPeter Dunlap#
68*a6d42e7dSPeter Dunlap.KEEP_STATE:
69*a6d42e7dSPeter Dunlap
70*a6d42e7dSPeter Dunlapdef:		$(DEF_DEPS)
71*a6d42e7dSPeter Dunlap
72*a6d42e7dSPeter Dunlapall:		$(ALL_DEPS)
73*a6d42e7dSPeter Dunlap
74*a6d42e7dSPeter Dunlapclean:		$(CLEAN_DEPS)
75*a6d42e7dSPeter Dunlap
76*a6d42e7dSPeter Dunlapclobber:	$(CLOBBER_DEPS)
77*a6d42e7dSPeter Dunlap
78*a6d42e7dSPeter Dunlaplint:		$(LINT_DEPS)
79*a6d42e7dSPeter Dunlap
80*a6d42e7dSPeter Dunlapmodlintlib:	$(MODLINTLIB_DEPS)
81*a6d42e7dSPeter Dunlap
82*a6d42e7dSPeter Dunlapclean.lint:	$(CLEAN_LINT_DEPS)
83*a6d42e7dSPeter Dunlap
84*a6d42e7dSPeter Dunlapinstall:	$(INSTALL_DEPS)
85*a6d42e7dSPeter Dunlap
86*a6d42e7dSPeter Dunlap#
87*a6d42e7dSPeter Dunlap#	Include common targets.
88*a6d42e7dSPeter Dunlap#
89*a6d42e7dSPeter Dunlapinclude $(UTSBASE)/intel/Makefile.targ
90