xref: /illumos-gate/usr/src/uts/intel/cmlb/Makefile (revision 0aaef2f550fa500248f59b0b8a14225b5afbd198)
13ccda647Slclee#
2bf56214cSstevel# CDDL HEADER START
33ccda647Slclee#
4bf56214cSstevel# The contents of this file are subject to the terms of the
5bf56214cSstevel# Common Development and Distribution License (the "License").
6bf56214cSstevel# You may not use this file except in compliance with the License.
7bf56214cSstevel#
8bf56214cSstevel# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9bf56214cSstevel# or http://www.opensolaris.org/os/licensing.
10bf56214cSstevel# See the License for the specific language governing permissions
11bf56214cSstevel# and limitations under the License.
12bf56214cSstevel#
13bf56214cSstevel# When distributing Covered Code, include this CDDL HEADER in each
14bf56214cSstevel# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15bf56214cSstevel# If applicable, add the following below this CDDL HEADER, with the
16bf56214cSstevel# fields enclosed by brackets "[]" replaced with your own identifying
17bf56214cSstevel# information: Portions Copyright [yyyy] [name of copyright owner]
18bf56214cSstevel#
19bf56214cSstevel# CDDL HEADER END
20bf56214cSstevel#
21bf56214cSstevel
22bf56214cSstevel#
23342440ecSPrasad Singamsetty# Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
243ccda647Slclee# Use is subject to license terms.
253ccda647Slclee#
26b6b206fcSJohn Levon# Copyright (c) 2018, Joyent, Inc.
27b6b206fcSJohn Levon
283ccda647Slclee
293ccda647Slclee#
303ccda647Slclee#	Path to the base of the uts directory tree (usually /usr/src/uts).
313ccda647Slclee#
323ccda647SlcleeUTSBASE	= ../..
333ccda647Slclee
343ccda647Slclee#
353ccda647Slclee#	Define the module and object file sets.
363ccda647Slclee#
373ccda647SlcleeMODULE		= cmlb
383ccda647SlcleeOBJECTS		= $(CMLB_OBJS:%=$(OBJS_DIR)/%)
393ccda647SlcleeROOTMODULE	= $(ROOT_MISC_DIR)/$(MODULE)
403ccda647Slclee
413ccda647Slclee#
423ccda647Slclee#	Include common rules.
433ccda647Slclee#
443ccda647Slcleeinclude $(UTSBASE)/intel/Makefile.intel
453ccda647Slclee
463ccda647Slclee#
473ccda647Slclee#	Define targets
483ccda647Slclee#
493ccda647SlcleeALL_TARGET	= $(BINARY)
503ccda647SlcleeINSTALL_TARGET	= $(BINARY) $(ROOTMODULE)
513ccda647Slclee
523ccda647Slclee#
533ccda647Slclee#	Overrides.
543ccda647Slclee#
553ccda647SlcleeDEBUG_FLGS	=
563ccda647SlcleeDEBUG_DEFS	+= $(DEBUG_FLGS)
573ccda647Slclee
58342440ecSPrasad Singamsetty# enable larger than 1TB VTOC support
59342440ecSPrasad Singamsetty
60342440ecSPrasad SingamsettyCPPFLAGS	+= -D_EXTVTOC
61342440ecSPrasad Singamsetty
623ccda647Slclee#
63*0aaef2f5SRichard Lowe# For now, disable these warnings; maintainers should endeavor
64*0aaef2f5SRichard Lowe# to investigate and remove these for maximum coverage.
65bb25c06cSjg# Please do not carry these forward to new Makefiles.
66bb25c06cSjg#
67bb25c06cSjg
687014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-unused-label
697014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-type-limits
707014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-parentheses
717014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-unused-function
72d3b5f563SJohn LevonCERRWARN	+= $(CNOWARN_UNINIT)
737014882cSRichard Lowe
74b6b206fcSJohn Levon# needs work
75b6b206fcSJohn Levon$(OBJS_DIR)/cmlb.o := SMOFF += signed
76b6b206fcSJohn Levon
77bb25c06cSjg#
783ccda647Slclee#	Default build targets.
793ccda647Slclee#
803ccda647Slclee.KEEP_STATE:
813ccda647Slclee
823ccda647Slcleedef:		$(DEF_DEPS)
833ccda647Slclee
843ccda647Slcleeall:		$(ALL_DEPS)
853ccda647Slclee
863ccda647Slcleeclean:		$(CLEAN_DEPS)
873ccda647Slclee
883ccda647Slcleeclobber:	$(CLOBBER_DEPS)
893ccda647Slclee
903ccda647Slcleeinstall:	$(INSTALL_DEPS)
913ccda647Slclee
923ccda647Slclee#
933ccda647Slclee#	Include common targets.
943ccda647Slclee#
953ccda647Slcleeinclude $(UTSBASE)/intel/Makefile.targ
96