Makefile revision 9d26e4fc021e249c93c2861629cc665e4f5bd4d6
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe#
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# This file and its contents are supplied under the terms of the
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# Common Development and Distribution License ("CDDL"), version 1.0.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# You may only use this file in accordance with the terms of version
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# 1.0 of the CDDL.
ed22c7109fc5dd9e1b7a5d0333bdc7ad2718e2abYuri Pankov#
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# A full copy of the text of the CDDL should have accompanied this
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# source. A copy of the CDDL is also available via the Internet at
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# http://www.illumos.org/license/CDDL.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe#
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe#
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# Copyright 2016 Joyent, Inc.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe#
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweUTSBASE = ../..
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweMODULE = i40e
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweOBJECTS = $(I40E_OBJS:%=$(OBJS_DIR)/%) $(I40E_INTC_OBJS:%=$(OBJS_DIR)/%)
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweLINTS = $(I40E_OBJS:%.o=$(LINTS_DIR)/%.ln)
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweCONF_SRCDIR = $(UTSBASE)/common/io/i40e
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Loweinclude $(UTSBASE)/intel/Makefile.intel
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweCPPFLAGS += -I$(UTSBASE)/common/io/i40e
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweCPPFLAGS += -I$(UTSBASE)/common/io/i40e/core
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweALL_TARGET = $(BINARY) $(CONFMOD)
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweLINT_TARGET = $(MODULE).lint
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe#
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# The Intel common code defines some values in header files that end up in all
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# of our objects. Therefore we don't try to lint for that.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe#
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweLINTTAGS += -erroff=E_STATIC_UNUSED
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweLDFLAGS += -dy -N misc/mac
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe.KEEP_STATE:
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowedef: $(DEF_DEPS)
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Loweall: $(ALL_DEPS)
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Loweclean: $(CLEAN_DEPS)
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Loweclobber: $(CLOBBER_DEPS)
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowelint: $(LINT_DEPS)
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowemodlintlib: $(MODLINTLIB_DEPS)
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Loweclean.lint: $(CLEAN_LINT_DEPS)
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Loweinstall: $(INSTALL_DEPS)
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Loweinclude $(UTSBASE)/intel/Makefile.targ
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe