xref: /titanic_52/usr/src/uts/intel/iprb/Makefile (revision 7014882c6a3672fd0e5d60200af8643ae53c5928)
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'AmoreLINTS		= $(IPRB_OBJS:%.o=$(LINTS_DIR)/%.ln)
3982743679SGarrett D'AmoreROOTMODULE	= $(ROOT_DRV_DIR)/$(MODULE)
4082743679SGarrett D'Amore
4182743679SGarrett D'Amore#
4282743679SGarrett D'Amore#	Include common rules.
4382743679SGarrett D'Amore#
4482743679SGarrett D'Amoreinclude $(UTSBASE)/intel/Makefile.intel
4582743679SGarrett D'Amore
4682743679SGarrett D'Amore#
4782743679SGarrett D'Amore#	Define targets
4882743679SGarrett D'Amore#
4982743679SGarrett D'AmoreALL_TARGET	= $(BINARY)
5082743679SGarrett D'AmoreLINT_TARGET	= $(MODULE).lint
5182743679SGarrett D'AmoreINSTALL_TARGET	= $(BINARY) $(ROOTMODULE)
5282743679SGarrett D'Amore
5382743679SGarrett D'Amore#
5482743679SGarrett D'Amore#	Overrides
5582743679SGarrett D'Amore#
5682743679SGarrett D'Amore
57*7014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-switch
58*7014882cSRichard Lowe
5982743679SGarrett D'Amore#
6082743679SGarrett D'Amore# Driver depends on GLD
6182743679SGarrett D'Amore#
6282743679SGarrett D'AmoreLDFLAGS		+= -dy -N misc/mac -Nmisc/mii
6382743679SGarrett D'Amore
6482743679SGarrett D'Amore#
6582743679SGarrett D'Amore#	Default build targets.
6682743679SGarrett D'Amore#
6782743679SGarrett D'Amore.KEEP_STATE:
6882743679SGarrett D'Amore
6982743679SGarrett D'Amoredef:		$(DEF_DEPS)
7082743679SGarrett D'Amore
7182743679SGarrett D'Amoreall:		$(ALL_DEPS)
7282743679SGarrett D'Amore
7382743679SGarrett D'Amoreclean:		$(CLEAN_DEPS)
7482743679SGarrett D'Amore
7582743679SGarrett D'Amoreclobber:	$(CLOBBER_DEPS)
7682743679SGarrett D'Amore
7782743679SGarrett D'Amorelint:		$(LINT_DEPS)
7882743679SGarrett D'Amore
7982743679SGarrett D'Amoremodlintlib:	$(MODLINTLIB_DEPS)
8082743679SGarrett D'Amore
8182743679SGarrett D'Amoreclean.lint:	$(CLEAN_LINT_DEPS)
8282743679SGarrett D'Amore
8382743679SGarrett D'Amoreinstall:	$(INSTALL_DEPS)
8482743679SGarrett D'Amore
8582743679SGarrett D'Amore#
8682743679SGarrett D'Amore#	Include common targets.
8782743679SGarrett D'Amore#
8882743679SGarrett D'Amoreinclude $(UTSBASE)/intel/Makefile.targ
89