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