xref: /illumos-gate/usr/src/uts/intel/zut/Makefile (revision 41e0a469)
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 HaleyINC_PATH	+= -I$(UTSBASE)/common/fs/zut
54e802abbdSTim HaleyINC_PATH	+= -I$(SRC)/common
55e802abbdSTim HaleyINC_PATH	+= -I$(COMMONBASE)/zut
56e802abbdSTim Haley
57e802abbdSTim Haley#
58*0aaef2f5SRichard Lowe# For now, disable these warnings; maintainers should endeavor
59*0aaef2f5SRichard Lowe# to investigate and remove these for maximum coverage.
60e802abbdSTim Haley# Please do not carry these forward to new Makefiles.
61e802abbdSTim Haley#
62e802abbdSTim Haley
637014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-parentheses
64d3b5f563SJohn LevonCERRWARN	+= $(CNOWARN_UNINIT)
657014882cSRichard Lowe
66e802abbdSTim Haley#
67e802abbdSTim Haley#	Default build targets.
68e802abbdSTim Haley#
69e802abbdSTim Haley.KEEP_STATE:
70e802abbdSTim Haley
71e802abbdSTim Haleydef:		$(DEF_DEPS)
72e802abbdSTim Haley
73e802abbdSTim Haleyall:		$(ALL_DEPS)
74e802abbdSTim Haley
75e802abbdSTim Haleyclean:		$(CLEAN_DEPS)
76e802abbdSTim Haley
77e802abbdSTim Haleyclobber:	$(CLOBBER_DEPS)
78e802abbdSTim Haley
79e802abbdSTim Haleyinstall:	$(INSTALL_DEPS)
80e802abbdSTim Haley
81e802abbdSTim Haley#
82e802abbdSTim Haley#	Include common targets.
83e802abbdSTim Haley#
84e802abbdSTim Haleyinclude ../Makefile.targ
85