xref: /illumos-gate/usr/src/uts/intel/i40e/Makefile (revision d17be682a2c70b4505d43c830bbd2603da11918d)
19d26e4fcSRobert Mustacchi#
29d26e4fcSRobert Mustacchi# This file and its contents are supplied under the terms of the
39d26e4fcSRobert Mustacchi# Common Development and Distribution License ("CDDL"), version 1.0.
49d26e4fcSRobert Mustacchi# You may only use this file in accordance with the terms of version
59d26e4fcSRobert Mustacchi# 1.0 of the CDDL.
69d26e4fcSRobert Mustacchi#
79d26e4fcSRobert Mustacchi# A full copy of the text of the CDDL should have accompanied this
89d26e4fcSRobert Mustacchi# source.  A copy of the CDDL is also available via the Internet at
99d26e4fcSRobert Mustacchi# http://www.illumos.org/license/CDDL.
109d26e4fcSRobert Mustacchi#
119d26e4fcSRobert Mustacchi
129d26e4fcSRobert Mustacchi#
13b6b206fcSJohn Levon# Copyright (c) 2018, Joyent, Inc.
149d26e4fcSRobert Mustacchi#
159d26e4fcSRobert Mustacchi
169d26e4fcSRobert MustacchiUTSBASE = ../..
179d26e4fcSRobert Mustacchi
189d26e4fcSRobert MustacchiMODULE		= i40e
199d26e4fcSRobert MustacchiOBJECTS		= $(I40E_OBJS:%=$(OBJS_DIR)/%) $(I40E_INTC_OBJS:%=$(OBJS_DIR)/%)
209d26e4fcSRobert MustacchiROOTMODULE	= $(ROOT_DRV_DIR)/$(MODULE)
219d26e4fcSRobert MustacchiCONF_SRCDIR	= $(UTSBASE)/common/io/i40e
229d26e4fcSRobert Mustacchi
239d26e4fcSRobert Mustacchiinclude $(UTSBASE)/intel/Makefile.intel
249d26e4fcSRobert Mustacchi
259d26e4fcSRobert MustacchiCPPFLAGS	+= -I$(UTSBASE)/common/io/i40e
269d26e4fcSRobert MustacchiCPPFLAGS	+= -I$(UTSBASE)/common/io/i40e/core
279d26e4fcSRobert Mustacchi
289d26e4fcSRobert MustacchiALL_TARGET	= $(BINARY) $(CONFMOD)
299d26e4fcSRobert MustacchiINSTALL_TARGET	= $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
309d26e4fcSRobert Mustacchi
31b6b206fcSJohn Levon# 3rd party code
32b6b206fcSJohn LevonSMOFF += all_func_returns
33b6b206fcSJohn Levon
34*82d0151aSRichard LoweLDFLAGS		+= -N misc/mac
359d26e4fcSRobert Mustacchi
363e3ca1ceSRobert MustacchiMAPFILES	+= ddi mac random
373e3ca1ceSRobert Mustacchi
389d26e4fcSRobert Mustacchi.KEEP_STATE:
399d26e4fcSRobert Mustacchi
409d26e4fcSRobert Mustacchidef:		$(DEF_DEPS)
419d26e4fcSRobert Mustacchi
429d26e4fcSRobert Mustacchiall:		$(ALL_DEPS)
439d26e4fcSRobert Mustacchi
449d26e4fcSRobert Mustacchiclean:		$(CLEAN_DEPS)
459d26e4fcSRobert Mustacchi
469d26e4fcSRobert Mustacchiclobber:	$(CLOBBER_DEPS)
479d26e4fcSRobert Mustacchi
489d26e4fcSRobert Mustacchiinstall:	$(INSTALL_DEPS)
499d26e4fcSRobert Mustacchi
503e3ca1ceSRobert Mustacchiinclude $(UTSBASE)/Makefile.mapfile
519d26e4fcSRobert Mustacchiinclude $(UTSBASE)/intel/Makefile.targ
52