xref: /titanic_50/usr/src/uts/intel/mac_ib/Makefile (revision 0a0e9771ca0211c15f3ac4466b661c145feeb9e4)
187ba907dSgg161487#
287ba907dSgg161487# CDDL HEADER START
387ba907dSgg161487#
487ba907dSgg161487# The contents of this file are subject to the terms of the
587ba907dSgg161487# Common Development and Distribution License (the "License").
687ba907dSgg161487# You may not use this file except in compliance with the License.
787ba907dSgg161487#
887ba907dSgg161487# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
987ba907dSgg161487# or http://www.opensolaris.org/os/licensing.
1087ba907dSgg161487# See the License for the specific language governing permissions
1187ba907dSgg161487# and limitations under the License.
1287ba907dSgg161487#
1387ba907dSgg161487# When distributing Covered Code, include this CDDL HEADER in each
1487ba907dSgg161487# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1587ba907dSgg161487# If applicable, add the following below this CDDL HEADER, with the
1687ba907dSgg161487# fields enclosed by brackets "[]" replaced with your own identifying
1787ba907dSgg161487# information: Portions Copyright [yyyy] [name of copyright owner]
1887ba907dSgg161487#
1987ba907dSgg161487# CDDL HEADER END
2087ba907dSgg161487#
2187ba907dSgg161487#
22*0a0e9771SDarren Reed# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
2387ba907dSgg161487# Use is subject to license terms.
2487ba907dSgg161487#
2587ba907dSgg161487#	This makefile drives the production of the mac_ib MAC-Type plugin
2687ba907dSgg161487#	kernel module.
2787ba907dSgg161487#
2887ba907dSgg161487
2987ba907dSgg161487#
3087ba907dSgg161487#	Path to the base of the uts directory tree (usually /usr/src/uts).
3187ba907dSgg161487#
3287ba907dSgg161487UTSBASE	= ../..
3387ba907dSgg161487
3487ba907dSgg161487#
3587ba907dSgg161487#	Define the module and object file sets.
3687ba907dSgg161487#
3787ba907dSgg161487MODULE		= mac_ib
3887ba907dSgg161487OBJECTS		= $(MAC_IB_OBJS:%=$(OBJS_DIR)/%)
3987ba907dSgg161487LINTS		= $(MAC_IB_OBJS:%.o=$(LINTS_DIR)/%.ln)
4087ba907dSgg161487ROOTMODULE	= $(ROOT_MAC_DIR)/$(MODULE)
4187ba907dSgg161487
4287ba907dSgg161487#
4387ba907dSgg161487#	Include common rules.
4487ba907dSgg161487#
4587ba907dSgg161487include $(UTSBASE)/intel/Makefile.intel
4687ba907dSgg161487
4787ba907dSgg161487#
4887ba907dSgg161487#	Define targets
4987ba907dSgg161487#
5087ba907dSgg161487ALL_TARGET	= $(BINARY)
5187ba907dSgg161487LINT_TARGET	= $(MODULE).lint
5287ba907dSgg161487INSTALL_TARGET	= $(BINARY) $(ROOTMODULE)
5387ba907dSgg161487
5487ba907dSgg161487#
5587ba907dSgg161487#	Overrides.
5687ba907dSgg161487#
5787ba907dSgg161487CFLAGS		+= $(CCVERBOSE)
5887ba907dSgg161487LDFLAGS		+= -dy -N misc/mac
59*0a0e9771SDarren ReedINC_PATH	+= -I$(UTSBASE)/common/io/bpf
6087ba907dSgg161487
6187ba907dSgg161487#
6287ba907dSgg161487#	Default build targets.
6387ba907dSgg161487#
6487ba907dSgg161487.KEEP_STATE:
6587ba907dSgg161487
6687ba907dSgg161487def:		$(DEF_DEPS)
6787ba907dSgg161487
6887ba907dSgg161487all:		$(ALL_DEPS)
6987ba907dSgg161487
7087ba907dSgg161487clean:		$(CLEAN_DEPS)
7187ba907dSgg161487
7287ba907dSgg161487clobber:	$(CLOBBER_DEPS)
7387ba907dSgg161487
7487ba907dSgg161487lint:		$(LINT_DEPS)
7587ba907dSgg161487
7687ba907dSgg161487modlintlib:	$(MODLINTLIB_DEPS)
7787ba907dSgg161487
7887ba907dSgg161487clean.lint:	$(CLEAN_LINT_DEPS)
7987ba907dSgg161487
8087ba907dSgg161487install:	$(INSTALL_DEPS)
8187ba907dSgg161487
8287ba907dSgg161487#
8387ba907dSgg161487#	Include common targets.
8487ba907dSgg161487#
8587ba907dSgg161487include $(UTSBASE)/intel/Makefile.targ
86