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