1c869993eSxy150489# 2c869993eSxy150489# CDDL HEADER START 3c869993eSxy150489# 4c869993eSxy150489# The contents of this file are subject to the terms of the 5c869993eSxy150489# Common Development and Distribution License (the "License"). 6c869993eSxy150489# You may not use this file except in compliance with the License. 7c869993eSxy150489# 8c869993eSxy150489# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9c869993eSxy150489# or http://www.opensolaris.org/os/licensing. 10c869993eSxy150489# See the License for the specific language governing permissions 11c869993eSxy150489# and limitations under the License. 12c869993eSxy150489# 13c869993eSxy150489# When distributing Covered Code, include this CDDL HEADER in each 14c869993eSxy150489# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15c869993eSxy150489# If applicable, add the following below this CDDL HEADER, with the 16c869993eSxy150489# fields enclosed by brackets "[]" replaced with your own identifying 17c869993eSxy150489# information: Portions Copyright [yyyy] [name of copyright owner] 18c869993eSxy150489# 19c869993eSxy150489# CDDL HEADER END 20c869993eSxy150489# 21c869993eSxy150489# 22ac7f5757Schenlu chen - Sun Microsystems - Beijing China# Copyright 2010 Sun Microsystems, Inc. All rights reserved. 23c869993eSxy150489# Use is subject to license terms. 24c869993eSxy150489# 25b6b206fcSJohn Levon# Copyright (c) 2018, Joyent, Inc. 26c869993eSxy150489 27c869993eSxy150489# 28c869993eSxy150489# Paths to the base of the uts directory trees 29c869993eSxy150489# 30c869993eSxy150489UTSBASE = ../.. 31c869993eSxy150489 32c869993eSxy150489# 33c869993eSxy150489# Define the module and object file sets. 34c869993eSxy150489# 35c869993eSxy150489MODULE = igb 36c869993eSxy150489OBJECTS = $(IGB_OBJS:%=$(OBJS_DIR)/%) 3775eba5b6SRobert MustacchiOBJECTS += $(E1000API_OBJS:%=$(OBJS_DIR)/%) 38c869993eSxy150489ROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE) 39c869993eSxy150489CONF_SRCDIR = $(UTSBASE)/common/io/igb 40c869993eSxy150489 41c869993eSxy150489# 42c869993eSxy150489# Include common rules. 43c869993eSxy150489# 44c869993eSxy150489include $(UTSBASE)/intel/Makefile.intel 45c869993eSxy150489 460aaef2f5SRichard Lowe# 470aaef2f5SRichard Lowe# For now, disable these warnings; maintainers should endeavor 480aaef2f5SRichard Lowe# to investigate and remove these for maximum coverage. 490aaef2f5SRichard Lowe# Please do not carry these forward to new Makefiles. 500aaef2f5SRichard Lowe# 517014882cSRichard LoweCERRWARN += -_gcc=-Wno-switch 52d3b5f563SJohn LevonCERRWARN += $(CNOWARN_UNINIT) 5375eba5b6SRobert Mustacchi 54b6b206fcSJohn Levon# needs work 55b6b206fcSJohn LevonSMOFF += all_func_returns,indenting 56b6b206fcSJohn Levon 5775eba5b6SRobert MustacchiCFLAGS += -I$(UTSBASE)/common/io/e1000api 5875eba5b6SRobert MustacchiCFLAGS += -I$(UTSBASE)/common/io/igb 597014882cSRichard Lowe 60c869993eSxy150489# 61c869993eSxy150489# Define targets 62c869993eSxy150489# 63c869993eSxy150489ALL_TARGET = $(BINARY) $(CONFMOD) 64c869993eSxy150489INSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE) 65c869993eSxy150489 66c869993eSxy150489# 67ac7f5757Schenlu chen - Sun Microsystems - Beijing China# Driver depends on MAC 68c869993eSxy150489# 69*82d0151aSRichard LoweLDFLAGS += -N misc/mac 702509632aSRobert MustacchiMAPFILES += ddi mac random kernel ksensor 71c869993eSxy150489 72c869993eSxy150489# 73c869993eSxy150489# Default build targets. 74c869993eSxy150489# 75c869993eSxy150489.KEEP_STATE: 76c869993eSxy150489 77c869993eSxy150489def: $(DEF_DEPS) 78c869993eSxy150489 79c869993eSxy150489all: $(ALL_DEPS) 80c869993eSxy150489 81c869993eSxy150489clean: $(CLEAN_DEPS) 82c869993eSxy150489 83c869993eSxy150489clobber: $(CLOBBER_DEPS) 84c869993eSxy150489 85c869993eSxy150489install: $(INSTALL_DEPS) 86c869993eSxy150489 87c869993eSxy150489# 88c869993eSxy150489# Include common targets. 89c869993eSxy150489# 903e3ca1ceSRobert Mustacchiinclude $(UTSBASE)/Makefile.mapfile 91c869993eSxy150489include $(UTSBASE)/intel/Makefile.targ 92