xref: /titanic_41/usr/src/uts/intel/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# Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
23*da6c28aaSamw# Use is subject to license terms.
24*da6c28aaSamw#
25*da6c28aaSamw#ident	"%Z%%M%	%I%	%E% SMI"
26*da6c28aaSamw#
27*da6c28aaSamw#	This makefile drives the production of the cifs server file system
28*da6c28aaSamw#	kernel module.
29*da6c28aaSamw#
30*da6c28aaSamw#	intel implementation architecture dependent
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)/intel/Makefile.intel
51*da6c28aaSamw
52*da6c28aaSamw#
53*da6c28aaSamw#	Module dependencies
54*da6c28aaSamw#
55*da6c28aaSamw#
56*da6c28aaSamwLDFLAGS += -dy -Nfs/sockfs -Ndrv/ip -Nstrmod/rpcmod -Nsys/doorfs -Nmisc/kcf
57*da6c28aaSamw
58*da6c28aaSamw#
59*da6c28aaSamw#	Define targets
60*da6c28aaSamw#
61*da6c28aaSamwALL_TARGET	= $(BINARY)
62*da6c28aaSamwLINT_TARGET	= $(MODULE).lint
63*da6c28aaSamwINSTALL_TARGET	= $(BINARY) $(ROOTMODULE) $(ROOTLINK) $(ROOT_CONFFILE)
64*da6c28aaSamw
65*da6c28aaSamw#
66*da6c28aaSamw#	Overrides.
67*da6c28aaSamw#
68*da6c28aaSamwMODSTUBS_DIR	 = $(OBJS_DIR)
69*da6c28aaSamwCLEANFILES	+= $(MODSTUBS_O)
70*da6c28aaSamw
71*da6c28aaSamwINC_PATH	+= -I$(SRC)/common
72*da6c28aaSamw
73*da6c28aaSamw#
74*da6c28aaSamw#	Default build targets.
75*da6c28aaSamw#
76*da6c28aaSamw.KEEP_STATE:
77*da6c28aaSamw
78*da6c28aaSamwdef:		$(DEF_DEPS)
79*da6c28aaSamw
80*da6c28aaSamwall:		$(ALL_DEPS)
81*da6c28aaSamw
82*da6c28aaSamwclean:		$(CLEAN_DEPS)
83*da6c28aaSamw
84*da6c28aaSamwclobber:	$(CLOBBER_DEPS)
85*da6c28aaSamw
86*da6c28aaSamwlint:		$(LINT_DEPS)
87*da6c28aaSamw
88*da6c28aaSamwmodlintlib:	$(MODLINTLIB_DEPS)
89*da6c28aaSamw
90*da6c28aaSamwclean.lint:	$(CLEAN_LINT_DEPS)
91*da6c28aaSamw
92*da6c28aaSamwinstall:	$(INSTALL_DEPS)
93*da6c28aaSamw
94*da6c28aaSamw$(ROOTLINK):	$(ROOT_SYS_DIR) $(ROOTMODULE)
95*da6c28aaSamw	-$(RM) $@; ln $(ROOTMODULE) $@
96*da6c28aaSamw
97*da6c28aaSamw#
98*da6c28aaSamw#	Include common targets.
99*da6c28aaSamw#
100*da6c28aaSamwinclude $(UTSBASE)/intel/Makefile.targ
101