108057504Sxy150489# 208057504Sxy150489# CDDL HEADER START 308057504Sxy150489# 408057504Sxy150489# The contents of this file are subject to the terms of the 508057504Sxy150489# Common Development and Distribution License (the "License"). 608057504Sxy150489# You may not use this file except in compliance with the License. 708057504Sxy150489# 808057504Sxy150489# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 908057504Sxy150489# or http://www.opensolaris.org/os/licensing. 1008057504Sxy150489# See the License for the specific language governing permissions 1108057504Sxy150489# and limitations under the License. 1208057504Sxy150489# 1308057504Sxy150489# When distributing Covered Code, include this CDDL HEADER in each 1408057504Sxy150489# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 1508057504Sxy150489# If applicable, add the following below this CDDL HEADER, with the 1608057504Sxy150489# fields enclosed by brackets "[]" replaced with your own identifying 1708057504Sxy150489# information: Portions Copyright [yyyy] [name of copyright owner] 1808057504Sxy150489# 1908057504Sxy150489# CDDL HEADER END 2008057504Sxy150489# 2108057504Sxy150489# 224045d941Ssowmini# Copyright 2008 Sun Microsystems, Inc. All rights reserved. 2308057504Sxy150489# Use is subject to license terms. 2408057504Sxy150489# 25b6b206fcSJohn Levon# Copyright (c) 2018, Joyent, Inc. 2608057504Sxy150489 2708057504Sxy150489# 2808057504Sxy150489# Paths to the base of the uts directory trees 2908057504Sxy150489# 3008057504Sxy150489UTSBASE = ../.. 3108057504Sxy150489 3208057504Sxy150489# 3308057504Sxy150489# Define the module and object file sets. 3408057504Sxy150489# 3508057504Sxy150489MODULE = e1000g 3608057504Sxy150489OBJECTS = $(E1000G_OBJS:%=$(OBJS_DIR)/%) 3775eba5b6SRobert MustacchiOBJECTS += $(E1000API_OBJS:%=$(OBJS_DIR)/%) 3808057504Sxy150489ROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE) 3908057504Sxy150489CONF_SRCDIR = $(UTSBASE)/common/io/e1000g 4008057504Sxy150489 4108057504Sxy150489# 4208057504Sxy150489# Include common rules. 4308057504Sxy150489# 4408057504Sxy150489include $(UTSBASE)/intel/Makefile.intel 4508057504Sxy150489 4608057504Sxy150489CFLAGS += -D_KERNEL -Di386 -DNEWSTAT -DNOMUT -DRCVWORKAROUND \ 4708057504Sxy150489 -DINTEL_IP \ 4808057504Sxy150489 -DPAXSON -DBAY_CITY \ 4975eba5b6SRobert Mustacchi -DTANAX_WORKAROUND -I$(UTSBASE)/common/io/e1000g \ 5075eba5b6SRobert Mustacchi -I$(UTSBASE)/common/io/e1000api 5175eba5b6SRobert Mustacchi 52d3b5f563SJohn LevonCERRWARN += $(CNOWARN_UNINIT) 537014882cSRichard LoweCERRWARN += -_gcc=-Wno-parentheses 547014882cSRichard LoweCERRWARN += -_gcc=-Wno-switch 557014882cSRichard LoweCERRWARN += -_gcc=-Wno-unused-label 567014882cSRichard LoweCERRWARN += -_gcc=-Wno-unused-variable 577014882cSRichard Lowe 58b6b206fcSJohn LevonSMOFF += all_func_returns,indenting,shift_to_zero 59b6b206fcSJohn Levon 6049b78600SRobert Mustacchi 6108057504Sxy150489# 6208057504Sxy150489# Define targets 6308057504Sxy150489# 6408057504Sxy150489ALL_TARGET = $(BINARY) $(CONFMOD) 6508057504Sxy150489INSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE) 6608057504Sxy150489 6708057504Sxy150489# 684045d941Ssowmini# Driver depends on MAC 6908057504Sxy150489# 70*82d0151aSRichard LoweLDFLAGS += -N misc/mac 713e3ca1ceSRobert MustacchiMAPFILES += ddi mac 7208057504Sxy150489 7308057504Sxy150489# 7408057504Sxy150489# Default build targets. 7508057504Sxy150489# 7608057504Sxy150489.KEEP_STATE: 7708057504Sxy150489 7808057504Sxy150489def: $(DEF_DEPS) 7908057504Sxy150489 8008057504Sxy150489all: $(ALL_DEPS) 8108057504Sxy150489 8208057504Sxy150489clean: $(CLEAN_DEPS) 8308057504Sxy150489 8408057504Sxy150489clobber: $(CLOBBER_DEPS) 8508057504Sxy150489 8608057504Sxy150489 8708057504Sxy150489 8808057504Sxy150489install: $(INSTALL_DEPS) 8908057504Sxy150489 9008057504Sxy150489# 9108057504Sxy150489# Include common targets. 9208057504Sxy150489# 933e3ca1ceSRobert Mustacchiinclude $(UTSBASE)/Makefile.mapfile 9408057504Sxy150489include $(UTSBASE)/intel/Makefile.targ 95