xref: /titanic_51/usr/src/uts/sparc/zut/Makefile (revision e802abbda8c322f24d47835734f4a793ef15ddc8)
1*e802abbdSTim Haley#
2*e802abbdSTim Haley# CDDL HEADER START
3*e802abbdSTim Haley#
4*e802abbdSTim Haley# The contents of this file are subject to the terms of the
5*e802abbdSTim Haley# Common Development and Distribution License (the "License").
6*e802abbdSTim Haley# You may not use this file except in compliance with the License.
7*e802abbdSTim Haley#
8*e802abbdSTim Haley# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*e802abbdSTim Haley# or http://www.opensolaris.org/os/licensing.
10*e802abbdSTim Haley# See the License for the specific language governing permissions
11*e802abbdSTim Haley# and limitations under the License.
12*e802abbdSTim Haley#
13*e802abbdSTim Haley# When distributing Covered Code, include this CDDL HEADER in each
14*e802abbdSTim Haley# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*e802abbdSTim Haley# If applicable, add the following below this CDDL HEADER, with the
16*e802abbdSTim Haley# fields enclosed by brackets "[]" replaced with your own identifying
17*e802abbdSTim Haley# information: Portions Copyright [yyyy] [name of copyright owner]
18*e802abbdSTim Haley#
19*e802abbdSTim Haley# CDDL HEADER END
20*e802abbdSTim Haley#
21*e802abbdSTim Haley#
22*e802abbdSTim Haley# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
23*e802abbdSTim Haley# Use is subject to license terms.
24*e802abbdSTim Haley#
25*e802abbdSTim Haley#	This makefile drives the production of the zut file system
26*e802abbdSTim Haley#	kernel module.
27*e802abbdSTim Haley
28*e802abbdSTim Haley#
29*e802abbdSTim Haley#	Path to the base of the uts directory tree (usually /usr/src/uts).
30*e802abbdSTim Haley#
31*e802abbdSTim HaleyUTSBASE	= ../..
32*e802abbdSTim Haley
33*e802abbdSTim HaleyARCHDIR:sh = cd ..; basename `pwd`
34*e802abbdSTim Haley
35*e802abbdSTim Haley#
36*e802abbdSTim Haley#	Define the module and object file sets.
37*e802abbdSTim Haley#
38*e802abbdSTim HaleyMODULE		= zut
39*e802abbdSTim HaleyOBJECTS		= $(ZUT_OBJS:%=$(OBJS_DIR)/%)
40*e802abbdSTim HaleyLINTS		= $(ZUT_OBJS:%.o=$(LINTS_DIR)/%.ln)
41*e802abbdSTim HaleyROOTMODULE	= $(ROOT_DRV_DIR)/$(MODULE)
42*e802abbdSTim HaleyCONF_SRCDIR	= $(UTSBASE)/common/fs/zut
43*e802abbdSTim Haley
44*e802abbdSTim Haley#
45*e802abbdSTim Haley#	Include common rules.
46*e802abbdSTim Haley#
47*e802abbdSTim Haleyinclude ../Makefile.$(ARCHDIR)
48*e802abbdSTim Haley
49*e802abbdSTim Haley#
50*e802abbdSTim Haley#	Define targets
51*e802abbdSTim Haley#
52*e802abbdSTim HaleyALL_TARGET	= $(BINARY) $(SRC_CONFILE)
53*e802abbdSTim HaleyLINT_TARGET	= $(MODULE).lint
54*e802abbdSTim HaleyINSTALL_TARGET	= $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
55*e802abbdSTim Haley
56*e802abbdSTim Haley#
57*e802abbdSTim Haley#	Overrides and depends_on
58*e802abbdSTim Haley#
59*e802abbdSTim HaleyMODSTUBS_DIR	 = $(OBJS_DIR)
60*e802abbdSTim HaleyLDFLAGS		+= -dy -Ndrv/smbsrv
61*e802abbdSTim Haley
62*e802abbdSTim HaleyINC_PATH	+= -I$(UTSBASE)/common/fs/zut
63*e802abbdSTim HaleyINC_PATH	+= -I$(SRC)/common
64*e802abbdSTim HaleyINC_PATH	+= -I$(COMMONBASE)/zut
65*e802abbdSTim Haley
66*e802abbdSTim HaleyC99MODE=	-xc99=%all
67*e802abbdSTim HaleyC99LMODE=	-Xc99=%all
68*e802abbdSTim Haley
69*e802abbdSTim Haley#
70*e802abbdSTim Haley# For now, disable these lint checks; maintainers should endeavor
71*e802abbdSTim Haley# to investigate and remove these for maximum lint coverage.
72*e802abbdSTim Haley# Please do not carry these forward to new Makefiles.
73*e802abbdSTim Haley#
74*e802abbdSTim HaleyLINTTAGS	+= -erroff=E_PTRDIFF_OVERFLOW
75*e802abbdSTim Haley
76*e802abbdSTim Haley#
77*e802abbdSTim Haley#	Default build targets.
78*e802abbdSTim Haley#
79*e802abbdSTim Haley.KEEP_STATE:
80*e802abbdSTim Haley
81*e802abbdSTim Haleydef:		$(DEF_DEPS)
82*e802abbdSTim Haley
83*e802abbdSTim Haleyall:		$(ALL_DEPS)
84*e802abbdSTim Haley
85*e802abbdSTim Haleyclean:		$(CLEAN_DEPS)
86*e802abbdSTim Haley
87*e802abbdSTim Haleyclobber:	$(CLOBBER_DEPS)
88*e802abbdSTim Haley
89*e802abbdSTim Haleylint:		$(LINT_DEPS)
90*e802abbdSTim Haley
91*e802abbdSTim Haleymodlintlib:	$(MODLINTLIB_DEPS)
92*e802abbdSTim Haley
93*e802abbdSTim Haleyclean.lint:	$(CLEAN_LINT_DEPS)
94*e802abbdSTim Haley
95*e802abbdSTim Haleyinstall:	$(INSTALL_DEPS)
96*e802abbdSTim Haley
97*e802abbdSTim Haley#
98*e802abbdSTim Haley#	Include common targets.
99*e802abbdSTim Haley#
100*e802abbdSTim Haleyinclude ../Makefile.targ
101