1da5577f0SRobert Mustacchi# 2da5577f0SRobert Mustacchi# This file and its contents are supplied under the terms of the 3da5577f0SRobert Mustacchi# Common Development and Distribution License ("CDDL"), version 1.0. 4da5577f0SRobert Mustacchi# You may only use this file in accordance with the terms of version 5da5577f0SRobert Mustacchi# 1.0 of the CDDL. 6da5577f0SRobert Mustacchi# 7da5577f0SRobert Mustacchi# A full copy of the text of the CDDL should have accompanied this 8da5577f0SRobert Mustacchi# source. A copy of the CDDL is also available via the Internet at 9da5577f0SRobert Mustacchi# http://www.illumos.org/license/CDDL. 10da5577f0SRobert Mustacchi# 11da5577f0SRobert Mustacchi 12da5577f0SRobert Mustacchi# 13*422542c1SRobert Mustacchi# Copyright 2017 Joyent, Inc. 14da5577f0SRobert Mustacchi# 15da5577f0SRobert Mustacchi 16da5577f0SRobert MustacchiUTSBASE = ../.. 17da5577f0SRobert Mustacchi 18da5577f0SRobert MustacchiMODULE = i40e 19da5577f0SRobert MustacchiOBJECTS = $(I40E_OBJS:%=$(OBJS_DIR)/%) $(I40E_INTC_OBJS:%=$(OBJS_DIR)/%) 20da5577f0SRobert MustacchiLINTS = $(I40E_OBJS:%.o=$(LINTS_DIR)/%.ln) 21da5577f0SRobert MustacchiROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE) 22da5577f0SRobert MustacchiCONF_SRCDIR = $(UTSBASE)/common/io/i40e 23da5577f0SRobert Mustacchi 24da5577f0SRobert Mustacchiinclude $(UTSBASE)/intel/Makefile.intel 25da5577f0SRobert Mustacchi 26da5577f0SRobert MustacchiCPPFLAGS += -I$(UTSBASE)/common/io/i40e 27da5577f0SRobert MustacchiCPPFLAGS += -I$(UTSBASE)/common/io/i40e/core 28da5577f0SRobert Mustacchi 29da5577f0SRobert MustacchiALL_TARGET = $(BINARY) $(CONFMOD) 30da5577f0SRobert MustacchiLINT_TARGET = $(MODULE).lint 31da5577f0SRobert MustacchiINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE) 32da5577f0SRobert Mustacchi 33da5577f0SRobert Mustacchi# 34da5577f0SRobert Mustacchi# The Intel common code defines some values in header files that end up in all 35da5577f0SRobert Mustacchi# of our objects. Therefore we don't try to lint for that. 36da5577f0SRobert Mustacchi# 37da5577f0SRobert MustacchiLINTTAGS += -erroff=E_STATIC_UNUSED 38*422542c1SRobert MustacchiLINTTAGS += -erroff=E_ENUM_VAL_OVERFLOWS_INT_MAX 39*422542c1SRobert Mustacchi 40*422542c1SRobert Mustacchi# 41*422542c1SRobert Mustacchi# The Intel common code defines some enums which are valid unsigned ints that 42*422542c1SRobert Mustacchi# GCC is fine with, but not Studio. 43*422542c1SRobert Mustacchi# 44*422542c1SRobert MustacchiCERRWARN += -_cc=-erroff=E_ENUM_VAL_OVERFLOWS_INT_MAX 45da5577f0SRobert Mustacchi 46da5577f0SRobert MustacchiLDFLAGS += -dy -N misc/mac 47da5577f0SRobert Mustacchi 48da5577f0SRobert Mustacchi.KEEP_STATE: 49da5577f0SRobert Mustacchi 50da5577f0SRobert Mustacchidef: $(DEF_DEPS) 51da5577f0SRobert Mustacchi 52da5577f0SRobert Mustacchiall: $(ALL_DEPS) 53da5577f0SRobert Mustacchi 54da5577f0SRobert Mustacchiclean: $(CLEAN_DEPS) 55da5577f0SRobert Mustacchi 56da5577f0SRobert Mustacchiclobber: $(CLOBBER_DEPS) 57da5577f0SRobert Mustacchi 58da5577f0SRobert Mustacchilint: $(LINT_DEPS) 59da5577f0SRobert Mustacchi 60da5577f0SRobert Mustacchimodlintlib: $(MODLINTLIB_DEPS) 61da5577f0SRobert Mustacchi 62da5577f0SRobert Mustacchiclean.lint: $(CLEAN_LINT_DEPS) 63da5577f0SRobert Mustacchi 64da5577f0SRobert Mustacchiinstall: $(INSTALL_DEPS) 65da5577f0SRobert Mustacchi 66da5577f0SRobert Mustacchiinclude $(UTSBASE)/intel/Makefile.targ 67