xref: /illumos-gate/usr/src/uts/i86xpv/rootnex/Makefile (revision 0aaef2f5)
15cff7825Smh#
25cff7825Smh# CDDL HEADER START
35cff7825Smh#
45cff7825Smh# The contents of this file are subject to the terms of the
55cff7825Smh# Common Development and Distribution License (the "License").
65cff7825Smh# You may not use this file except in compliance with the License.
75cff7825Smh#
85cff7825Smh# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
95cff7825Smh# or http://www.opensolaris.org/os/licensing.
105cff7825Smh# See the License for the specific language governing permissions
115cff7825Smh# and limitations under the License.
125cff7825Smh#
135cff7825Smh# When distributing Covered Code, include this CDDL HEADER in each
145cff7825Smh# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
155cff7825Smh# If applicable, add the following below this CDDL HEADER, with the
165cff7825Smh# fields enclosed by brackets "[]" replaced with your own identifying
175cff7825Smh# information: Portions Copyright [yyyy] [name of copyright owner]
185cff7825Smh#
195cff7825Smh# CDDL HEADER END
205cff7825Smh#
21843e1988Sjohnlev
225cff7825Smh#
235cff7825Smh# Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
245cff7825Smh# Use is subject to license terms.
255cff7825Smh#
267b1019a6SJerry Jelinek# Copyright 2016 Joyent, Inc.
277b1019a6SJerry Jelinek#
287014882cSRichard Lowe
29843e1988Sjohnlev#
30843e1988Sjohnlev#	This makefile drives the production of the rootnex driver
315cff7825Smh#
32843e1988Sjohnlev#	i86xpv implementation architecture dependent
335cff7825Smh#
345cff7825Smh
355cff7825Smh#
365cff7825Smh#	Path to the base of the uts directory tree (usually /usr/src/uts).
375cff7825Smh#
38843e1988SjohnlevUTSBASE	= ../..
395cff7825Smh
405cff7825Smh#
415cff7825Smh#	Define the module and object file sets.
425cff7825Smh#
43843e1988SjohnlevMODULE		= rootnex
44843e1988SjohnlevOBJECTS		= $(ROOTNEX_OBJS:%=$(OBJS_DIR)/%)
455cff7825SmhROOTMODULE	= $(ROOT_PSM_DRV_DIR)/$(MODULE)
465cff7825Smh
475cff7825Smh#
485cff7825Smh#	Include common rules.
495cff7825Smh#
50843e1988Sjohnlevinclude $(UTSBASE)/i86xpv/Makefile.i86xpv
515cff7825Smh
525cff7825Smh#
535cff7825Smh#	Define targets
545cff7825Smh#
555cff7825SmhALL_TARGET	= $(BINARY)
565cff7825SmhINSTALL_TARGET	= $(BINARY) $(ROOTMODULE)
575cff7825Smh
58843e1988Sjohnlev#
59843e1988Sjohnlev#	Overrides.
60843e1988Sjohnlev#
61843e1988SjohnlevLDFLAGS		+= -dy
62843e1988Sjohnlev
63843e1988Sjohnlev
64*d3b5f563SJohn LevonCERRWARN	+= $(CNOWARN_UNINIT)
657014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-unused-label
667014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-parentheses
677b1019a6SJerry JelinekCERRWARN	+= -_gcc=-Wno-unused-function
687014882cSRichard Lowe
695cff7825Smh#
705cff7825Smh#	Default build targets.
715cff7825Smh#
725cff7825Smh.KEEP_STATE:
735cff7825Smh
745cff7825Smhdef:		$(DEF_DEPS)
755cff7825Smh
765cff7825Smhall:		$(ALL_DEPS)
775cff7825Smh
785cff7825Smhclean:		$(CLEAN_DEPS)
795cff7825Smh
805cff7825Smhclobber:	$(CLOBBER_DEPS)
815cff7825Smh
825cff7825Smhinstall:	$(INSTALL_DEPS)
835cff7825Smh
845cff7825Smh#
855cff7825Smh#	Include common targets.
865cff7825Smh#
87843e1988Sjohnlevinclude $(UTSBASE)/i86xpv/Makefile.targ
88