xref: /illumos-gate/usr/src/uts/intel/nge/Makefile (revision 47693af9)
16f3e57acSmx205022#
2*47693af9Smx205022# CDDL HEADER START
3*47693af9Smx205022#
4*47693af9Smx205022# The contents of this file are subject to the terms of the
5*47693af9Smx205022# Common Development and Distribution License (the "License").
6*47693af9Smx205022# You may not use this file except in compliance with the License.
7*47693af9Smx205022#
8*47693af9Smx205022# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*47693af9Smx205022# or http://www.opensolaris.org/os/licensing.
10*47693af9Smx205022# See the License for the specific language governing permissions
11*47693af9Smx205022# and limitations under the License.
12*47693af9Smx205022#
13*47693af9Smx205022# When distributing Covered Code, include this CDDL HEADER in each
14*47693af9Smx205022# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*47693af9Smx205022# If applicable, add the following below this CDDL HEADER, with the
16*47693af9Smx205022# fields enclosed by brackets "[]" replaced with your own identifying
17*47693af9Smx205022# information: Portions Copyright [yyyy] [name of copyright owner]
18*47693af9Smx205022#
19*47693af9Smx205022# CDDL HEADER END
20*47693af9Smx205022#
21*47693af9Smx205022#
226f3e57acSmx205022# Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
236f3e57acSmx205022# Use is subject to license terms.
246f3e57acSmx205022#
256f3e57acSmx205022#
266f3e57acSmx205022#ident	"%Z%%M%	%I%	%E% SMI"
276f3e57acSmx205022#
286f3e57acSmx205022#	This makefile drives the production of the nvidia toe/ge
296f3e57acSmx205022#	driver.
306f3e57acSmx205022#
316f3e57acSmx205022
326f3e57acSmx205022#
336f3e57acSmx205022#	Path to the base of the uts directory tree (usually /usr/src/uts).
346f3e57acSmx205022#
356f3e57acSmx205022UTSBASE   = ../..
366f3e57acSmx205022
376f3e57acSmx205022#
386f3e57acSmx205022#	Define the module and object file sets.
396f3e57acSmx205022#
406f3e57acSmx205022MODULE		= nge
416f3e57acSmx205022OBJECTS		= $(NGE_OBJS:%=$(OBJS_DIR)/%)
426f3e57acSmx205022LINTS		= $(NGE_OBJS:%.o=$(LINTS_DIR)/%.ln)
436f3e57acSmx205022ROOTMODULE	= $(ROOT_DRV_DIR)/$(MODULE)
446f3e57acSmx205022CONF_SRCDIR     = $(UTSBASE)/common/io/nge
456f3e57acSmx205022
466f3e57acSmx205022#
476f3e57acSmx205022#	Include common rules.
486f3e57acSmx205022#
496f3e57acSmx205022include $(UTSBASE)/intel/Makefile.intel
506f3e57acSmx205022
516f3e57acSmx205022#
526f3e57acSmx205022#	Define targets
536f3e57acSmx205022#
546f3e57acSmx205022ALL_TARGET	= $(BINARY) $(SRC_CONFILE)
556f3e57acSmx205022LINT_TARGET	= $(MODULE).lint
566f3e57acSmx205022INSTALL_TARGET	= $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
576f3e57acSmx205022
586f3e57acSmx205022#
596f3e57acSmx205022#	Override defaults
606f3e57acSmx205022#
616f3e57acSmx205022INC_PATH	+= -I$(CONF_SRCDIR)
626f3e57acSmx205022
636f3e57acSmx205022# CFLAGS += $(CINLINEFLAGS)
646f3e57acSmx205022
656f3e57acSmx205022#
666f3e57acSmx205022# Driver depends on GLD & IP
676f3e57acSmx205022#
686f3e57acSmx205022LDFLAGS		+= -dy -N misc/mac -N drv/ip
696f3e57acSmx205022
706f3e57acSmx205022#
716f3e57acSmx205022# For now, disable these lint checks; maintainers should endeavor
726f3e57acSmx205022# to investigate and remove these for maximum lint coverage.
736f3e57acSmx205022# Please do not carry these forward to new Makefiles.
746f3e57acSmx205022#
756f3e57acSmx205022LINTTAGS	+= -erroff=E_BAD_PTR_CAST_ALIGN
766f3e57acSmx205022LINTTAGS	+= -erroff=E_PTRDIFF_OVERFLOW
776f3e57acSmx205022LINTTAGS	+= -erroff=E_ASSIGN_NARROW_CONV
786f3e57acSmx205022LINTTAGS	+= -erroff=E_STATIC_UNUSED
796f3e57acSmx205022
806f3e57acSmx205022#
816f3e57acSmx205022#	Default build targets.
826f3e57acSmx205022#
836f3e57acSmx205022.KEEP_STATE:
846f3e57acSmx205022
856f3e57acSmx205022def:		$(DEF_DEPS)
866f3e57acSmx205022
876f3e57acSmx205022all:		$(ALL_DEPS)
886f3e57acSmx205022
896f3e57acSmx205022clean:		$(CLEAN_DEPS)
906f3e57acSmx205022
916f3e57acSmx205022clobber:	$(CLOBBER_DEPS)
926f3e57acSmx205022
936f3e57acSmx205022lint:		$(LINT_DEPS)
946f3e57acSmx205022
956f3e57acSmx205022modlintlib:	$(MODLINTLIB_DEPS)
966f3e57acSmx205022
976f3e57acSmx205022clean.lint:	$(CLEAN_LINT_DEPS)
986f3e57acSmx205022
996f3e57acSmx205022install:	$(INSTALL_DEPS)
1006f3e57acSmx205022
1016f3e57acSmx205022#
1026f3e57acSmx205022#	Include common targets.
1036f3e57acSmx205022#
1046f3e57acSmx205022include $(UTSBASE)/intel/Makefile.targ
105