xref: /titanic_52/usr/src/uts/intel/nge/Makefile (revision 7014882c6a3672fd0e5d60200af8643ae53c5928)
16f3e57acSmx205022#
247693af9Smx205022# CDDL HEADER START
347693af9Smx205022#
447693af9Smx205022# The contents of this file are subject to the terms of the
547693af9Smx205022# Common Development and Distribution License (the "License").
647693af9Smx205022# You may not use this file except in compliance with the License.
747693af9Smx205022#
847693af9Smx205022# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
947693af9Smx205022# or http://www.opensolaris.org/os/licensing.
1047693af9Smx205022# See the License for the specific language governing permissions
1147693af9Smx205022# and limitations under the License.
1247693af9Smx205022#
1347693af9Smx205022# When distributing Covered Code, include this CDDL HEADER in each
1447693af9Smx205022# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1547693af9Smx205022# If applicable, add the following below this CDDL HEADER, with the
1647693af9Smx205022# fields enclosed by brackets "[]" replaced with your own identifying
1747693af9Smx205022# information: Portions Copyright [yyyy] [name of copyright owner]
1847693af9Smx205022#
1947693af9Smx205022# CDDL HEADER END
2047693af9Smx205022#
2147693af9Smx205022#
224045d941Ssowmini# Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
236f3e57acSmx205022# Use is subject to license terms.
246f3e57acSmx205022#
256f3e57acSmx205022#	This makefile drives the production of the nvidia toe/ge
266f3e57acSmx205022#	driver.
276f3e57acSmx205022#
286f3e57acSmx205022
296f3e57acSmx205022#
306f3e57acSmx205022#	Path to the base of the uts directory tree (usually /usr/src/uts).
316f3e57acSmx205022#
326f3e57acSmx205022UTSBASE   = ../..
336f3e57acSmx205022
346f3e57acSmx205022#
356f3e57acSmx205022#	Define the module and object file sets.
366f3e57acSmx205022#
376f3e57acSmx205022MODULE		= nge
386f3e57acSmx205022OBJECTS		= $(NGE_OBJS:%=$(OBJS_DIR)/%)
396f3e57acSmx205022LINTS		= $(NGE_OBJS:%.o=$(LINTS_DIR)/%.ln)
406f3e57acSmx205022ROOTMODULE	= $(ROOT_DRV_DIR)/$(MODULE)
416f3e57acSmx205022CONF_SRCDIR     = $(UTSBASE)/common/io/nge
426f3e57acSmx205022
436f3e57acSmx205022#
446f3e57acSmx205022#	Include common rules.
456f3e57acSmx205022#
466f3e57acSmx205022include $(UTSBASE)/intel/Makefile.intel
476f3e57acSmx205022
486f3e57acSmx205022#
496f3e57acSmx205022#	Define targets
506f3e57acSmx205022#
516f3e57acSmx205022ALL_TARGET	= $(BINARY) $(SRC_CONFILE)
526f3e57acSmx205022LINT_TARGET	= $(MODULE).lint
536f3e57acSmx205022INSTALL_TARGET	= $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
546f3e57acSmx205022
556f3e57acSmx205022#
566f3e57acSmx205022#	Override defaults
576f3e57acSmx205022#
586f3e57acSmx205022INC_PATH	+= -I$(CONF_SRCDIR)
596f3e57acSmx205022
606f3e57acSmx205022# CFLAGS += $(CINLINEFLAGS)
616f3e57acSmx205022
626f3e57acSmx205022#
634045d941Ssowmini# Driver depends on GLD
646f3e57acSmx205022#
654045d941SsowminiLDFLAGS		+= -dy -N misc/mac
666f3e57acSmx205022
676f3e57acSmx205022#
686f3e57acSmx205022# For now, disable these lint checks; maintainers should endeavor
696f3e57acSmx205022# to investigate and remove these for maximum lint coverage.
706f3e57acSmx205022# Please do not carry these forward to new Makefiles.
716f3e57acSmx205022#
726f3e57acSmx205022LINTTAGS	+= -erroff=E_BAD_PTR_CAST_ALIGN
736f3e57acSmx205022
74*7014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-switch
75*7014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-uninitialized
76*7014882cSRichard Lowe
776f3e57acSmx205022#
786f3e57acSmx205022#	Default build targets.
796f3e57acSmx205022#
806f3e57acSmx205022.KEEP_STATE:
816f3e57acSmx205022
826f3e57acSmx205022def:		$(DEF_DEPS)
836f3e57acSmx205022
846f3e57acSmx205022all:		$(ALL_DEPS)
856f3e57acSmx205022
866f3e57acSmx205022clean:		$(CLEAN_DEPS)
876f3e57acSmx205022
886f3e57acSmx205022clobber:	$(CLOBBER_DEPS)
896f3e57acSmx205022
906f3e57acSmx205022lint:		$(LINT_DEPS)
916f3e57acSmx205022
926f3e57acSmx205022modlintlib:	$(MODLINTLIB_DEPS)
936f3e57acSmx205022
946f3e57acSmx205022clean.lint:	$(CLEAN_LINT_DEPS)
956f3e57acSmx205022
966f3e57acSmx205022install:	$(INSTALL_DEPS)
976f3e57acSmx205022
986f3e57acSmx205022#
996f3e57acSmx205022#	Include common targets.
1006f3e57acSmx205022#
1016f3e57acSmx205022include $(UTSBASE)/intel/Makefile.targ
102