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