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