6f3e57ac9d0b054c3169579f3422080b8ba10105mx#
47693af92e50a1ad81825eb01b7157a211269613mx# CDDL HEADER START
47693af92e50a1ad81825eb01b7157a211269613mx#
47693af92e50a1ad81825eb01b7157a211269613mx# The contents of this file are subject to the terms of the
47693af92e50a1ad81825eb01b7157a211269613mx# Common Development and Distribution License (the "License").
47693af92e50a1ad81825eb01b7157a211269613mx# You may not use this file except in compliance with the License.
47693af92e50a1ad81825eb01b7157a211269613mx#
47693af92e50a1ad81825eb01b7157a211269613mx# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
47693af92e50a1ad81825eb01b7157a211269613mx# or http://www.opensolaris.org/os/licensing.
47693af92e50a1ad81825eb01b7157a211269613mx# See the License for the specific language governing permissions
47693af92e50a1ad81825eb01b7157a211269613mx# and limitations under the License.
47693af92e50a1ad81825eb01b7157a211269613mx#
47693af92e50a1ad81825eb01b7157a211269613mx# When distributing Covered Code, include this CDDL HEADER in each
47693af92e50a1ad81825eb01b7157a211269613mx# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
47693af92e50a1ad81825eb01b7157a211269613mx# If applicable, add the following below this CDDL HEADER, with the
47693af92e50a1ad81825eb01b7157a211269613mx# fields enclosed by brackets "[]" replaced with your own identifying
47693af92e50a1ad81825eb01b7157a211269613mx# information: Portions Copyright [yyyy] [name of copyright owner]
47693af92e50a1ad81825eb01b7157a211269613mx#
47693af92e50a1ad81825eb01b7157a211269613mx# CDDL HEADER END
47693af92e50a1ad81825eb01b7157a211269613mx#
47693af92e50a1ad81825eb01b7157a211269613mx#
4045d94132614e1de2073685a6cdd4fbd86bec33sowmini# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
6f3e57ac9d0b054c3169579f3422080b8ba10105mx# Use is subject to license terms.
6f3e57ac9d0b054c3169579f3422080b8ba10105mx#
6f3e57ac9d0b054c3169579f3422080b8ba10105mx# This makefile drives the production of the nvidia toe/ge
6f3e57ac9d0b054c3169579f3422080b8ba10105mx# driver.
6f3e57ac9d0b054c3169579f3422080b8ba10105mx#
6f3e57ac9d0b054c3169579f3422080b8ba10105mx
6f3e57ac9d0b054c3169579f3422080b8ba10105mx#
6f3e57ac9d0b054c3169579f3422080b8ba10105mx# Path to the base of the uts directory tree (usually /usr/src/uts).
6f3e57ac9d0b054c3169579f3422080b8ba10105mx#
6f3e57ac9d0b054c3169579f3422080b8ba10105mxUTSBASE = ../..
6f3e57ac9d0b054c3169579f3422080b8ba10105mx
6f3e57ac9d0b054c3169579f3422080b8ba10105mx#
6f3e57ac9d0b054c3169579f3422080b8ba10105mx# Define the module and object file sets.
6f3e57ac9d0b054c3169579f3422080b8ba10105mx#
6f3e57ac9d0b054c3169579f3422080b8ba10105mxMODULE = nge
6f3e57ac9d0b054c3169579f3422080b8ba10105mxOBJECTS = $(NGE_OBJS:%=$(OBJS_DIR)/%)
6f3e57ac9d0b054c3169579f3422080b8ba10105mxLINTS = $(NGE_OBJS:%.o=$(LINTS_DIR)/%.ln)
6f3e57ac9d0b054c3169579f3422080b8ba10105mxROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
6f3e57ac9d0b054c3169579f3422080b8ba10105mxCONF_SRCDIR = $(UTSBASE)/common/io/nge
6f3e57ac9d0b054c3169579f3422080b8ba10105mx
6f3e57ac9d0b054c3169579f3422080b8ba10105mx#
6f3e57ac9d0b054c3169579f3422080b8ba10105mx# Include common rules.
6f3e57ac9d0b054c3169579f3422080b8ba10105mx#
6f3e57ac9d0b054c3169579f3422080b8ba10105mxinclude $(UTSBASE)/intel/Makefile.intel
6f3e57ac9d0b054c3169579f3422080b8ba10105mx
6f3e57ac9d0b054c3169579f3422080b8ba10105mx#
6f3e57ac9d0b054c3169579f3422080b8ba10105mx# Define targets
6f3e57ac9d0b054c3169579f3422080b8ba10105mx#
6f3e57ac9d0b054c3169579f3422080b8ba10105mxALL_TARGET = $(BINARY) $(SRC_CONFILE)
6f3e57ac9d0b054c3169579f3422080b8ba10105mxLINT_TARGET = $(MODULE).lint
6f3e57ac9d0b054c3169579f3422080b8ba10105mxINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
6f3e57ac9d0b054c3169579f3422080b8ba10105mx
6f3e57ac9d0b054c3169579f3422080b8ba10105mx#
6f3e57ac9d0b054c3169579f3422080b8ba10105mx# Override defaults
6f3e57ac9d0b054c3169579f3422080b8ba10105mx#
6f3e57ac9d0b054c3169579f3422080b8ba10105mxINC_PATH += -I$(CONF_SRCDIR)
6f3e57ac9d0b054c3169579f3422080b8ba10105mx
6f3e57ac9d0b054c3169579f3422080b8ba10105mx# CFLAGS += $(CINLINEFLAGS)
6f3e57ac9d0b054c3169579f3422080b8ba10105mx
6f3e57ac9d0b054c3169579f3422080b8ba10105mx#
4045d94132614e1de2073685a6cdd4fbd86bec33sowmini# Driver depends on GLD
6f3e57ac9d0b054c3169579f3422080b8ba10105mx#
4045d94132614e1de2073685a6cdd4fbd86bec33sowminiLDFLAGS += -dy -N misc/mac
6f3e57ac9d0b054c3169579f3422080b8ba10105mx
6f3e57ac9d0b054c3169579f3422080b8ba10105mx#
6f3e57ac9d0b054c3169579f3422080b8ba10105mx# For now, disable these lint checks; maintainers should endeavor
6f3e57ac9d0b054c3169579f3422080b8ba10105mx# to investigate and remove these for maximum lint coverage.
6f3e57ac9d0b054c3169579f3422080b8ba10105mx# Please do not carry these forward to new Makefiles.
6f3e57ac9d0b054c3169579f3422080b8ba10105mx#
6f3e57ac9d0b054c3169579f3422080b8ba10105mxLINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
6f3e57ac9d0b054c3169579f3422080b8ba10105mx
7014882c6a3672fd0e5d60200af8643ae53c5928Richard LoweCERRWARN += -_gcc=-Wno-switch
7014882c6a3672fd0e5d60200af8643ae53c5928Richard LoweCERRWARN += -_gcc=-Wno-uninitialized
7014882c6a3672fd0e5d60200af8643ae53c5928Richard Lowe
6f3e57ac9d0b054c3169579f3422080b8ba10105mx#
6f3e57ac9d0b054c3169579f3422080b8ba10105mx# Default build targets.
6f3e57ac9d0b054c3169579f3422080b8ba10105mx#
6f3e57ac9d0b054c3169579f3422080b8ba10105mx.KEEP_STATE:
6f3e57ac9d0b054c3169579f3422080b8ba10105mx
6f3e57ac9d0b054c3169579f3422080b8ba10105mxdef: $(DEF_DEPS)
6f3e57ac9d0b054c3169579f3422080b8ba10105mx
6f3e57ac9d0b054c3169579f3422080b8ba10105mxall: $(ALL_DEPS)
6f3e57ac9d0b054c3169579f3422080b8ba10105mx
6f3e57ac9d0b054c3169579f3422080b8ba10105mxclean: $(CLEAN_DEPS)
6f3e57ac9d0b054c3169579f3422080b8ba10105mx
6f3e57ac9d0b054c3169579f3422080b8ba10105mxclobber: $(CLOBBER_DEPS)
6f3e57ac9d0b054c3169579f3422080b8ba10105mx
6f3e57ac9d0b054c3169579f3422080b8ba10105mxlint: $(LINT_DEPS)
6f3e57ac9d0b054c3169579f3422080b8ba10105mx
6f3e57ac9d0b054c3169579f3422080b8ba10105mxmodlintlib: $(MODLINTLIB_DEPS)
6f3e57ac9d0b054c3169579f3422080b8ba10105mx
6f3e57ac9d0b054c3169579f3422080b8ba10105mxclean.lint: $(CLEAN_LINT_DEPS)
6f3e57ac9d0b054c3169579f3422080b8ba10105mx
6f3e57ac9d0b054c3169579f3422080b8ba10105mxinstall: $(INSTALL_DEPS)
6f3e57ac9d0b054c3169579f3422080b8ba10105mx
6f3e57ac9d0b054c3169579f3422080b8ba10105mx#
6f3e57ac9d0b054c3169579f3422080b8ba10105mx# Include common targets.
6f3e57ac9d0b054c3169579f3422080b8ba10105mx#
6f3e57ac9d0b054c3169579f3422080b8ba10105mxinclude $(UTSBASE)/intel/Makefile.targ