1# 2# This file and its contents are supplied under the terms of the 3# Common Development and Distribution License ("CDDL"), version 1.0. 4# You may only use this file in accordance with the terms of version 5# 1.0 of the CDDL. 6# 7# A full copy of the text of the CDDL should have accompanied this 8# source. A copy of the CDDL is also available via the Internet at 9# http://www.illumos.org/license/CDDL. 10# 11 12# 13# Copyright (c) 2013 by Chelsio Communications, Inc. All rights reserved. 14# 15# Copyright (c) 2018, Joyent, Inc. 16 17# 18# This makefile drives the production of the Chelsio Terminator 4 10G Ethernet 19# (CXGBE) driver nexus modules on x86 systems. 20# 21 22# 23# Paths to the base of the uts directory trees 24# 25UTSBASE = ../../.. 26 27# 28# Define the module and object file sets. 29# 30MODULE = t4nex 31OBJECTS = $(CXGBE_COM_OBJS:%=$(OBJS_DIR)/%) \ 32 $(CXGBE_FW_OBJS:%=$(OBJS_DIR)/%) \ 33 $(CXGBE_NEX_OBJS:%=$(OBJS_DIR)/%) 34ROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE) 35 36# 37# Include common rules 38# 39include $(UTSBASE)/intel/Makefile.intel 40 41# 42# Define targets 43# 44ALL_TARGET = $(BINARY) 45INSTALL_TARGET = $(BINARY) $(ROOTMODULE) 46 47CFLAGS += -I$(UTSBASE)/common/io/cxgbe -I$(UTSBASE)/common/io/cxgbe/common \ 48 -I$(UTSBASE)/common/io/cxgbe/t4nex -I$(UTSBASE)/common/io/cxgbe/shared \ 49 -I$(UTSBASE)/common/io/cxgbe/firmware 50 51# 52# Driver depends 53# 54LDFLAGS += -dy -N misc/mac -N drv/ip 55 56# needs work 57SMATCH=off 58 59# 60# Default build targets. 61# 62.KEEP_STATE: 63 64def: $(DEF_DEPS) 65 66all: $(ALL_DEPS) 67 68clean: $(CLEAN_DEPS) 69 70clobber: $(CLOBBER_DEPS) 71 72install: $(INSTALL_DEPS) 73 74# 75# Include common targets. 76# 77include $(UTSBASE)/intel/Makefile.targ 78