xref: /titanic_44/usr/src/uts/intel/socksdp/Makefile (revision 0f1702c5201310f0529cd5abb77652e5e9b241b6)
1*0f1702c5SYu Xiangning#
2*0f1702c5SYu Xiangning# CDDL HEADER START
3*0f1702c5SYu Xiangning#
4*0f1702c5SYu Xiangning# The contents of this file are subject to the terms of the
5*0f1702c5SYu Xiangning# Common Development and Distribution License (the "License").
6*0f1702c5SYu Xiangning# You may not use this file except in compliance with the License.
7*0f1702c5SYu Xiangning#
8*0f1702c5SYu Xiangning# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*0f1702c5SYu Xiangning# or http://www.opensolaris.org/os/licensing.
10*0f1702c5SYu Xiangning# See the License for the specific language governing permissions
11*0f1702c5SYu Xiangning# and limitations under the License.
12*0f1702c5SYu Xiangning#
13*0f1702c5SYu Xiangning# When distributing Covered Code, include this CDDL HEADER in each
14*0f1702c5SYu Xiangning# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*0f1702c5SYu Xiangning# If applicable, add the following below this CDDL HEADER, with the
16*0f1702c5SYu Xiangning# fields enclosed by brackets "[]" replaced with your own identifying
17*0f1702c5SYu Xiangning# information: Portions Copyright [yyyy] [name of copyright owner]
18*0f1702c5SYu Xiangning#
19*0f1702c5SYu Xiangning# CDDL HEADER END
20*0f1702c5SYu Xiangning#
21*0f1702c5SYu Xiangning#
22*0f1702c5SYu Xiangning# Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
23*0f1702c5SYu Xiangning# Use is subject to license terms.
24*0f1702c5SYu Xiangning#
25*0f1702c5SYu Xiangning#	This makefile drives the production of the nca driver
26*0f1702c5SYu Xiangning#	kernel module.
27*0f1702c5SYu Xiangning#
28*0f1702c5SYu Xiangning#	intel architecture dependent
29*0f1702c5SYu Xiangning#
30*0f1702c5SYu Xiangning
31*0f1702c5SYu Xiangning#
32*0f1702c5SYu Xiangning#	Path to the base of the uts directory tree (usually /usr/src/uts).
33*0f1702c5SYu Xiangning#
34*0f1702c5SYu XiangningUTSBASE	= ../..
35*0f1702c5SYu Xiangning
36*0f1702c5SYu Xiangning#
37*0f1702c5SYu Xiangning#	Define the module and object file sets.
38*0f1702c5SYu Xiangning#
39*0f1702c5SYu XiangningMODULE		= socksdp
40*0f1702c5SYu XiangningOBJECTS		= $(SDP_SOCK_MOD_OBJS:%=$(OBJS_DIR)/%)
41*0f1702c5SYu XiangningLINTS		= $(SDP_SOCK_MOD_OBJS:%.o=$(LINTS_DIR)/%.ln)
42*0f1702c5SYu XiangningROOTMODULE	= $(ROOT_SOCK_DIR)/$(MODULE)
43*0f1702c5SYu Xiangning
44*0f1702c5SYu Xiangning#
45*0f1702c5SYu Xiangning#	Include common rules.
46*0f1702c5SYu Xiangning#
47*0f1702c5SYu Xiangninginclude $(UTSBASE)/intel/Makefile.intel
48*0f1702c5SYu Xiangning
49*0f1702c5SYu Xiangning#
50*0f1702c5SYu Xiangning#	Define targets
51*0f1702c5SYu Xiangning#
52*0f1702c5SYu XiangningALL_TARGET	= $(BINARY)
53*0f1702c5SYu XiangningLINT_TARGET	= $(MODULE).lint
54*0f1702c5SYu XiangningINSTALL_TARGET	= $(BINARY) $(ROOTMODULE)
55*0f1702c5SYu Xiangning
56*0f1702c5SYu Xiangning#
57*0f1702c5SYu Xiangning# lint pass one enforcement and OS version
58*0f1702c5SYu Xiangning#
59*0f1702c5SYu XiangningCFLAGS += $(CCVERBOSE)
60*0f1702c5SYu Xiangning
61*0f1702c5SYu XiangningLDFLAGS += -dy -Nfs/sockfs -Ndrv/ip -Ndrv/sdpib
62*0f1702c5SYu Xiangning
63*0f1702c5SYu Xiangning#
64*0f1702c5SYu Xiangning#	Default build targets.
65*0f1702c5SYu Xiangning#
66*0f1702c5SYu Xiangning.KEEP_STATE:
67*0f1702c5SYu Xiangning
68*0f1702c5SYu Xiangningdef:		$(DEF_DEPS)
69*0f1702c5SYu Xiangning
70*0f1702c5SYu Xiangningall:		$(ALL_DEPS)
71*0f1702c5SYu Xiangning
72*0f1702c5SYu Xiangningclean:		$(CLEAN_DEPS)
73*0f1702c5SYu Xiangning
74*0f1702c5SYu Xiangningclobber:	$(CLOBBER_DEPS)
75*0f1702c5SYu Xiangning
76*0f1702c5SYu Xiangninglint:		$(LINT_DEPS)
77*0f1702c5SYu Xiangning
78*0f1702c5SYu Xiangningmodlintlib:	$(MODLINTLIB_DEPS)
79*0f1702c5SYu Xiangning
80*0f1702c5SYu Xiangningclean.lint:	$(CLEAN_LINT_DEPS)
81*0f1702c5SYu Xiangning
82*0f1702c5SYu Xiangninginstall:	$(INSTALL_DEPS)
83*0f1702c5SYu Xiangning
84*0f1702c5SYu Xiangning#
85*0f1702c5SYu Xiangning#	Include common targets.
86*0f1702c5SYu Xiangning#
87*0f1702c5SYu Xiangninginclude $(UTSBASE)/intel/Makefile.targ
88