xref: /onnv-gate/usr/src/uts/intel/mac_ib/Makefile (revision 10639:368f1335a058)
15766Sgg161487#
25766Sgg161487# CDDL HEADER START
35766Sgg161487#
45766Sgg161487# The contents of this file are subject to the terms of the
55766Sgg161487# Common Development and Distribution License (the "License").
65766Sgg161487# You may not use this file except in compliance with the License.
75766Sgg161487#
85766Sgg161487# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
95766Sgg161487# or http://www.opensolaris.org/os/licensing.
105766Sgg161487# See the License for the specific language governing permissions
115766Sgg161487# and limitations under the License.
125766Sgg161487#
135766Sgg161487# When distributing Covered Code, include this CDDL HEADER in each
145766Sgg161487# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
155766Sgg161487# If applicable, add the following below this CDDL HEADER, with the
165766Sgg161487# fields enclosed by brackets "[]" replaced with your own identifying
175766Sgg161487# information: Portions Copyright [yyyy] [name of copyright owner]
185766Sgg161487#
195766Sgg161487# CDDL HEADER END
205766Sgg161487#
215766Sgg161487#
22*10639SDarren.Reed@Sun.COM# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
235766Sgg161487# Use is subject to license terms.
245766Sgg161487#
255766Sgg161487#	This makefile drives the production of the mac_ib MAC-Type plugin
265766Sgg161487#	kernel module.
275766Sgg161487#
285766Sgg161487
295766Sgg161487#
305766Sgg161487#	Path to the base of the uts directory tree (usually /usr/src/uts).
315766Sgg161487#
325766Sgg161487UTSBASE	= ../..
335766Sgg161487
345766Sgg161487#
355766Sgg161487#	Define the module and object file sets.
365766Sgg161487#
375766Sgg161487MODULE		= mac_ib
385766Sgg161487OBJECTS		= $(MAC_IB_OBJS:%=$(OBJS_DIR)/%)
395766Sgg161487LINTS		= $(MAC_IB_OBJS:%.o=$(LINTS_DIR)/%.ln)
405766Sgg161487ROOTMODULE	= $(ROOT_MAC_DIR)/$(MODULE)
415766Sgg161487
425766Sgg161487#
435766Sgg161487#	Include common rules.
445766Sgg161487#
455766Sgg161487include $(UTSBASE)/intel/Makefile.intel
465766Sgg161487
475766Sgg161487#
485766Sgg161487#	Define targets
495766Sgg161487#
505766Sgg161487ALL_TARGET	= $(BINARY)
515766Sgg161487LINT_TARGET	= $(MODULE).lint
525766Sgg161487INSTALL_TARGET	= $(BINARY) $(ROOTMODULE)
535766Sgg161487
545766Sgg161487#
555766Sgg161487#	Overrides.
565766Sgg161487#
575766Sgg161487CFLAGS		+= $(CCVERBOSE)
585766Sgg161487LDFLAGS		+= -dy -N misc/mac
59*10639SDarren.Reed@Sun.COMINC_PATH	+= -I$(UTSBASE)/common/io/bpf
605766Sgg161487
615766Sgg161487#
625766Sgg161487#	Default build targets.
635766Sgg161487#
645766Sgg161487.KEEP_STATE:
655766Sgg161487
665766Sgg161487def:		$(DEF_DEPS)
675766Sgg161487
685766Sgg161487all:		$(ALL_DEPS)
695766Sgg161487
705766Sgg161487clean:		$(CLEAN_DEPS)
715766Sgg161487
725766Sgg161487clobber:	$(CLOBBER_DEPS)
735766Sgg161487
745766Sgg161487lint:		$(LINT_DEPS)
755766Sgg161487
765766Sgg161487modlintlib:	$(MODLINTLIB_DEPS)
775766Sgg161487
785766Sgg161487clean.lint:	$(CLEAN_LINT_DEPS)
795766Sgg161487
805766Sgg161487install:	$(INSTALL_DEPS)
815766Sgg161487
825766Sgg161487#
835766Sgg161487#	Include common targets.
845766Sgg161487#
855766Sgg161487include $(UTSBASE)/intel/Makefile.targ
86