xref: /titanic_51/usr/src/uts/sparc/smbsrv/Makefile (revision da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0)
1*da6c28aaSamw#
2*da6c28aaSamw# CDDL HEADER START
3*da6c28aaSamw#
4*da6c28aaSamw# The contents of this file are subject to the terms of the
5*da6c28aaSamw# Common Development and Distribution License (the "License").
6*da6c28aaSamw# You may not use this file except in compliance with the License.
7*da6c28aaSamw#
8*da6c28aaSamw# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*da6c28aaSamw# or http://www.opensolaris.org/os/licensing.
10*da6c28aaSamw# See the License for the specific language governing permissions
11*da6c28aaSamw# and limitations under the License.
12*da6c28aaSamw#
13*da6c28aaSamw# When distributing Covered Code, include this CDDL HEADER in each
14*da6c28aaSamw# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*da6c28aaSamw# If applicable, add the following below this CDDL HEADER, with the
16*da6c28aaSamw# fields enclosed by brackets "[]" replaced with your own identifying
17*da6c28aaSamw# information: Portions Copyright [yyyy] [name of copyright owner]
18*da6c28aaSamw#
19*da6c28aaSamw# CDDL HEADER END
20*da6c28aaSamw#
21*da6c28aaSamw#
22*da6c28aaSamw#
23*da6c28aaSamw# Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
24*da6c28aaSamw# Use is subject to license terms.
25*da6c28aaSamw#
26*da6c28aaSamw#ident	"%Z%%M%	%I%	%E% SMI"
27*da6c28aaSamw
28*da6c28aaSamw#
29*da6c28aaSamw#	This makefile drives the production of the cifs server file system
30*da6c28aaSamw#	kernel module.
31*da6c28aaSamw#
32*da6c28aaSamw
33*da6c28aaSamw#
34*da6c28aaSamw#	Path to the base of the uts directory tree (usually /usr/src/uts).
35*da6c28aaSamw#
36*da6c28aaSamwUTSBASE	= ../..
37*da6c28aaSamw
38*da6c28aaSamw#
39*da6c28aaSamw#	Define the module and object file sets.
40*da6c28aaSamw#
41*da6c28aaSamwMODULE		= smbsrv
42*da6c28aaSamwOBJECTS		= $(SMBSRV_OBJS:%=$(OBJS_DIR)/%)
43*da6c28aaSamwLINTS		= $(SMBSRV_OBJS:%.o=$(LINTS_DIR)/%.ln)
44*da6c28aaSamwROOTMODULE	= $(ROOT_DRV_DIR)/$(MODULE)
45*da6c28aaSamwCONF_SRCDIR	= $(UTSBASE)/common/fs/smbsrv
46*da6c28aaSamw
47*da6c28aaSamw#
48*da6c28aaSamw#	Include common rules.
49*da6c28aaSamw#
50*da6c28aaSamwinclude $(UTSBASE)/sparc/Makefile.sparc
51*da6c28aaSamw
52*da6c28aaSamw#
53*da6c28aaSamw#	Module dependencies
54*da6c28aaSamw#
55*da6c28aaSamwLDFLAGS += -dy -Nfs/sockfs -Ndrv/ip -Nstrmod/rpcmod -Nsys/doorfs -Nmisc/kcf
56*da6c28aaSamw
57*da6c28aaSamw#
58*da6c28aaSamw#	Define targets
59*da6c28aaSamw#
60*da6c28aaSamwALL_TARGET	= $(BINARY)
61*da6c28aaSamwLINT_TARGET	= $(MODULE).lint
62*da6c28aaSamwINSTALL_TARGET	= $(BINARY) $(ROOTMODULE) $(ROOTLINK) $(ROOT_CONFFILE)
63*da6c28aaSamw
64*da6c28aaSamw#
65*da6c28aaSamw#	Overrides.
66*da6c28aaSamw#
67*da6c28aaSamwMODSTUBS_DIR	 = $(OBJS_DIR)
68*da6c28aaSamwCLEANFILES	+= $(MODSTUBS_O)
69*da6c28aaSamw
70*da6c28aaSamwINC_PATH	+= -I$(SRC)/common
71*da6c28aaSamw
72*da6c28aaSamw#
73*da6c28aaSamw#	Default build targets.
74*da6c28aaSamw#
75*da6c28aaSamw.KEEP_STATE:
76*da6c28aaSamw
77*da6c28aaSamwdef:		$(DEF_DEPS)
78*da6c28aaSamw
79*da6c28aaSamwall:		$(ALL_DEPS)
80*da6c28aaSamw
81*da6c28aaSamwclean:		$(CLEAN_DEPS)
82*da6c28aaSamw
83*da6c28aaSamwclobber:	$(CLOBBER_DEPS)
84*da6c28aaSamw
85*da6c28aaSamwlint:		$(LINT_DEPS)
86*da6c28aaSamw
87*da6c28aaSamwmodlintlib:	$(MODLINTLIB_DEPS)
88*da6c28aaSamw
89*da6c28aaSamwclean.lint:	$(CLEAN_LINT_DEPS)
90*da6c28aaSamw
91*da6c28aaSamwinstall:	$(INSTALL_DEPS)
92*da6c28aaSamw
93*da6c28aaSamw$(ROOTLINK):	$(ROOT_SYS_DIR) $(ROOTMODULE)
94*da6c28aaSamw	-$(RM) $@; ln $(ROOTMODULE) $@
95*da6c28aaSamw
96*da6c28aaSamw#
97*da6c28aaSamw#	Include common targets.
98*da6c28aaSamw#
99*da6c28aaSamwinclude $(UTSBASE)/sparc/Makefile.targ
100