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