xref: /illumos-gate/usr/src/uts/intel/zut/Makefile (revision 0aaef2f550fa500248f59b0b8a14225b5afbd198)
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 HaleyROOTMODULE	= $(ROOT_DRV_DIR)/$(MODULE)
40e802abbdSTim HaleyCONF_SRCDIR	= $(UTSBASE)/common/fs/zut
41e802abbdSTim Haley
42e802abbdSTim Haley#
43e802abbdSTim Haley#	Include common rules.
44e802abbdSTim Haley#
45e802abbdSTim Haleyinclude ../Makefile.$(ARCHDIR)
46e802abbdSTim Haley
47e802abbdSTim Haley#
48e802abbdSTim Haley#	Define targets
49e802abbdSTim Haley#
50e802abbdSTim HaleyALL_TARGET	= $(BINARY) $(SRC_CONFILE)
51e802abbdSTim HaleyINSTALL_TARGET	= $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
52e802abbdSTim Haley
53e802abbdSTim Haley#
54e802abbdSTim Haley#	Overrides and depends_on
55e802abbdSTim Haley#
56e802abbdSTim HaleyMODSTUBS_DIR	 = $(OBJS_DIR)
575203bc32STim HaleyLDFLAGS		+= -dy
58e802abbdSTim Haley
59e802abbdSTim HaleyINC_PATH	+= -I$(UTSBASE)/common/fs/zut
60e802abbdSTim HaleyINC_PATH	+= -I$(SRC)/common
61e802abbdSTim HaleyINC_PATH	+= -I$(COMMONBASE)/zut
62e802abbdSTim Haley
63e802abbdSTim HaleyC99LMODE=	-Xc99=%all
64e802abbdSTim Haley
65e802abbdSTim Haley#
66*0aaef2f5SRichard Lowe# For now, disable these warnings; maintainers should endeavor
67*0aaef2f5SRichard Lowe# to investigate and remove these for maximum coverage.
68e802abbdSTim Haley# Please do not carry these forward to new Makefiles.
69e802abbdSTim Haley#
70e802abbdSTim Haley
717014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-parentheses
72d3b5f563SJohn LevonCERRWARN	+= $(CNOWARN_UNINIT)
737014882cSRichard Lowe
74e802abbdSTim Haley#
75e802abbdSTim Haley#	Default build targets.
76e802abbdSTim Haley#
77e802abbdSTim Haley.KEEP_STATE:
78e802abbdSTim Haley
79e802abbdSTim Haleydef:		$(DEF_DEPS)
80e802abbdSTim Haley
81e802abbdSTim Haleyall:		$(ALL_DEPS)
82e802abbdSTim Haley
83e802abbdSTim Haleyclean:		$(CLEAN_DEPS)
84e802abbdSTim Haley
85e802abbdSTim Haleyclobber:	$(CLOBBER_DEPS)
86e802abbdSTim Haley
87e802abbdSTim Haleyinstall:	$(INSTALL_DEPS)
88e802abbdSTim Haley
89e802abbdSTim Haley#
90e802abbdSTim Haley#	Include common targets.
91e802abbdSTim Haley#
92e802abbdSTim Haleyinclude ../Makefile.targ
93