xref: /titanic_52/usr/src/uts/sparc/ksocket/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#
26*0f1702c5SYu Xiangning#	This makefile drives the production of the kernel socket module
27*0f1702c5SYu Xiangning#
28*0f1702c5SYu Xiangning
29*0f1702c5SYu Xiangning#
30*0f1702c5SYu Xiangning#	Path to the base of the uts directory tree (usually /usr/src/uts).
31*0f1702c5SYu Xiangning#
32*0f1702c5SYu XiangningUTSBASE	= ../..
33*0f1702c5SYu Xiangning
34*0f1702c5SYu Xiangning#
35*0f1702c5SYu Xiangning#	Define the module and object file sets.
36*0f1702c5SYu Xiangning#
37*0f1702c5SYu XiangningMODULE		= ksocket
38*0f1702c5SYu XiangningOBJECTS		= $(KSOCKET_OBJS:%=$(OBJS_DIR)/%)
39*0f1702c5SYu XiangningLINTS		= $(KSOCKET_OBJS:%.o=$(LINTS_DIR)/%.ln)
40*0f1702c5SYu XiangningROOTMODULE	= $(ROOT_MISC_DIR)/$(MODULE)
41*0f1702c5SYu Xiangning
42*0f1702c5SYu Xiangning#
43*0f1702c5SYu Xiangning#	Include common rules.
44*0f1702c5SYu Xiangning#
45*0f1702c5SYu Xiangninginclude $(UTSBASE)/sparc/Makefile.sparc
46*0f1702c5SYu Xiangning
47*0f1702c5SYu Xiangning#
48*0f1702c5SYu Xiangning#	Define targets
49*0f1702c5SYu Xiangning#
50*0f1702c5SYu XiangningALL_TARGET	= $(BINARY)
51*0f1702c5SYu XiangningLINT_TARGET	= $(MODULE).lint
52*0f1702c5SYu XiangningINSTALL_TARGET	= $(BINARY) $(ROOTMODULE)
53*0f1702c5SYu Xiangning
54*0f1702c5SYu Xiangning#
55*0f1702c5SYu Xiangning#	Overrides.
56*0f1702c5SYu Xiangning#
57*0f1702c5SYu XiangningCFLAGS		+= $(CCVERBOSE)
58*0f1702c5SYu XiangningLDFLAGS		+= -dy -Nfs/sockfs
59*0f1702c5SYu Xiangning
60*0f1702c5SYu Xiangning#
61*0f1702c5SYu Xiangning#	Default build targets.
62*0f1702c5SYu Xiangning#
63*0f1702c5SYu Xiangning.KEEP_STATE:
64*0f1702c5SYu Xiangning
65*0f1702c5SYu Xiangningdef:		$(DEF_DEPS)
66*0f1702c5SYu Xiangning
67*0f1702c5SYu Xiangningall:		$(ALL_DEPS)
68*0f1702c5SYu Xiangning
69*0f1702c5SYu Xiangningclean:		$(CLEAN_DEPS)
70*0f1702c5SYu Xiangning
71*0f1702c5SYu Xiangningclobber:	$(CLOBBER_DEPS)
72*0f1702c5SYu Xiangning
73*0f1702c5SYu Xiangninglint:		$(LINT_DEPS)
74*0f1702c5SYu Xiangning
75*0f1702c5SYu Xiangningmodlintlib:	$(MODLINTLIB_DEPS)
76*0f1702c5SYu Xiangning
77*0f1702c5SYu Xiangningclean.lint:	$(CLEAN_LINT_DEPS)
78*0f1702c5SYu Xiangning
79*0f1702c5SYu Xiangninginstall:	$(INSTALL_DEPS)
80*0f1702c5SYu Xiangning
81*0f1702c5SYu Xiangning#
82*0f1702c5SYu Xiangning#	Include common targets.
83*0f1702c5SYu Xiangning#
84*0f1702c5SYu Xiangninginclude $(UTSBASE)/intel/Makefile.targ
85