xref: /illumos-gate/usr/src/uts/intel/iprb/Makefile (revision 82d0151a507442720a3aea34c8925041894ab173)
182743679SGarrett D'Amore#
282743679SGarrett D'Amore# CDDL HEADER START
382743679SGarrett D'Amore#
482743679SGarrett D'Amore# The contents of this file are subject to the terms of the
582743679SGarrett D'Amore# Common Development and Distribution License (the "License").
682743679SGarrett D'Amore# You may not use this file except in compliance with the License.
782743679SGarrett D'Amore#
882743679SGarrett D'Amore# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
982743679SGarrett D'Amore# or http://www.opensolaris.org/os/licensing.
1082743679SGarrett D'Amore# See the License for the specific language governing permissions
1182743679SGarrett D'Amore# and limitations under the License.
1282743679SGarrett D'Amore#
1382743679SGarrett D'Amore# When distributing Covered Code, include this CDDL HEADER in each
1482743679SGarrett D'Amore# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1582743679SGarrett D'Amore# If applicable, add the following below this CDDL HEADER, with the
1682743679SGarrett D'Amore# fields enclosed by brackets "[]" replaced with your own identifying
1782743679SGarrett D'Amore# information: Portions Copyright [yyyy] [name of copyright owner]
1882743679SGarrett D'Amore#
1982743679SGarrett D'Amore# CDDL HEADER END
2082743679SGarrett D'Amore#
2182743679SGarrett D'Amore#
2282743679SGarrett D'Amore# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
2382743679SGarrett D'Amore# Use is subject to license terms.
2482743679SGarrett D'Amore#
2582743679SGarrett D'Amore# Copyright 2010 Nexenta Systems, Inc.  All rights reserved.
2682743679SGarrett D'Amore#
2782743679SGarrett D'Amore
2882743679SGarrett D'Amore#
2982743679SGarrett D'Amore#	Path to the base of the uts directory tree (usually /usr/src/uts).
3082743679SGarrett D'Amore#
3182743679SGarrett D'AmoreUTSBASE		= ../..
3282743679SGarrett D'Amore
3382743679SGarrett D'Amore#
3482743679SGarrett D'Amore#	Define the module and object file sets.
3582743679SGarrett D'Amore#
3682743679SGarrett D'AmoreMODULE		= iprb
3782743679SGarrett D'AmoreOBJECTS		= $(IPRB_OBJS:%=$(OBJS_DIR)/%)
3882743679SGarrett D'AmoreROOTMODULE	= $(ROOT_DRV_DIR)/$(MODULE)
3982743679SGarrett D'Amore
4082743679SGarrett D'Amore#
4182743679SGarrett D'Amore#	Include common rules.
4282743679SGarrett D'Amore#
4382743679SGarrett D'Amoreinclude $(UTSBASE)/intel/Makefile.intel
4482743679SGarrett D'Amore
4582743679SGarrett D'Amore#
4682743679SGarrett D'Amore#	Define targets
4782743679SGarrett D'Amore#
4882743679SGarrett D'AmoreALL_TARGET	= $(BINARY)
4982743679SGarrett D'AmoreINSTALL_TARGET	= $(BINARY) $(ROOTMODULE)
5082743679SGarrett D'Amore
5182743679SGarrett D'Amore#
5282743679SGarrett D'Amore#	Overrides
5382743679SGarrett D'Amore#
5482743679SGarrett D'Amore
557014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-switch
567014882cSRichard Lowe
5782743679SGarrett D'Amore#
5882743679SGarrett D'Amore# Driver depends on GLD
5982743679SGarrett D'Amore#
60*82d0151aSRichard LoweLDFLAGS		+= -N misc/mac -Nmisc/mii
6182743679SGarrett D'Amore
6282743679SGarrett D'Amore#
6382743679SGarrett D'Amore#	Default build targets.
6482743679SGarrett D'Amore#
6582743679SGarrett D'Amore.KEEP_STATE:
6682743679SGarrett D'Amore
6782743679SGarrett D'Amoredef:		$(DEF_DEPS)
6882743679SGarrett D'Amore
6982743679SGarrett D'Amoreall:		$(ALL_DEPS)
7082743679SGarrett D'Amore
7182743679SGarrett D'Amoreclean:		$(CLEAN_DEPS)
7282743679SGarrett D'Amore
7382743679SGarrett D'Amoreclobber:	$(CLOBBER_DEPS)
7482743679SGarrett D'Amore
7582743679SGarrett D'Amoreinstall:	$(INSTALL_DEPS)
7682743679SGarrett D'Amore
7782743679SGarrett D'Amore#
7882743679SGarrett D'Amore#	Include common targets.
7982743679SGarrett D'Amore#
8082743679SGarrett D'Amoreinclude $(UTSBASE)/intel/Makefile.targ
81