1*56b2bdd1SGireesh Nagabhushana# 2*56b2bdd1SGireesh Nagabhushana# This file and its contents are supplied under the terms of the 3*56b2bdd1SGireesh Nagabhushana# Common Development and Distribution License ("CDDL"), version 1.0. 4*56b2bdd1SGireesh Nagabhushana# You may only use this file in accordance with the terms of version 5*56b2bdd1SGireesh Nagabhushana# 1.0 of the CDDL. 6*56b2bdd1SGireesh Nagabhushana# 7*56b2bdd1SGireesh Nagabhushana# A full copy of the text of the CDDL should have accompanied this 8*56b2bdd1SGireesh Nagabhushana# source. A copy of the CDDL is also available via the Internet at 9*56b2bdd1SGireesh Nagabhushana# http://www.illumos.org/license/CDDL. 10*56b2bdd1SGireesh Nagabhushana# 11*56b2bdd1SGireesh Nagabhushana 12*56b2bdd1SGireesh Nagabhushana# 13*56b2bdd1SGireesh Nagabhushana# Copyright (c) 2013 by Chelsio Communications, Inc. All rights reserved. 14*56b2bdd1SGireesh Nagabhushana# 15*56b2bdd1SGireesh Nagabhushana 16*56b2bdd1SGireesh Nagabhushana# 17*56b2bdd1SGireesh Nagabhushana# This makefile drives the production of the Chelsio Terminator 4 10G Ethernet 18*56b2bdd1SGireesh Nagabhushana# (CXGBE) driver nexus modules on x86 systems. 19*56b2bdd1SGireesh Nagabhushana# 20*56b2bdd1SGireesh Nagabhushana 21*56b2bdd1SGireesh Nagabhushana# 22*56b2bdd1SGireesh Nagabhushana# Paths to the base of the uts directory trees 23*56b2bdd1SGireesh Nagabhushana# 24*56b2bdd1SGireesh NagabhushanaUTSBASE = ../../.. 25*56b2bdd1SGireesh Nagabhushana 26*56b2bdd1SGireesh Nagabhushana# 27*56b2bdd1SGireesh Nagabhushana# Define the module and object file sets. 28*56b2bdd1SGireesh Nagabhushana# 29*56b2bdd1SGireesh NagabhushanaMODULE = t4nex 30*56b2bdd1SGireesh NagabhushanaOBJECTS = $(CXGBE_COM_OBJS:%=$(OBJS_DIR)/%) \ 31*56b2bdd1SGireesh Nagabhushana $(CXGBE_FW_OBJS:%=$(OBJS_DIR)/%) \ 32*56b2bdd1SGireesh Nagabhushana $(CXGBE_NEX_OBJS:%=$(OBJS_DIR)/%) 33*56b2bdd1SGireesh NagabhushanaLINTS = $(CXGBE_COM_OBJS:%.o=$(LINTS_DIR)/%.ln) \ 34*56b2bdd1SGireesh Nagabhushana $(CXGBE_FW_OBJS:%.o=$(LINTS_DIR)/%.ln) \ 35*56b2bdd1SGireesh Nagabhushana $(CXGBE_NEX_OBJS:%.o=$(LINTS_DIR)/%.ln) 36*56b2bdd1SGireesh NagabhushanaROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE) 37*56b2bdd1SGireesh Nagabhushana 38*56b2bdd1SGireesh Nagabhushana# 39*56b2bdd1SGireesh Nagabhushana# Include common rules 40*56b2bdd1SGireesh Nagabhushana# 41*56b2bdd1SGireesh Nagabhushanainclude $(UTSBASE)/intel/Makefile.intel 42*56b2bdd1SGireesh Nagabhushana 43*56b2bdd1SGireesh Nagabhushana# 44*56b2bdd1SGireesh Nagabhushana# Define targets 45*56b2bdd1SGireesh Nagabhushana# 46*56b2bdd1SGireesh NagabhushanaALL_TARGET = $(BINARY) 47*56b2bdd1SGireesh NagabhushanaLINT_TARGET = $(MODULE).lint 48*56b2bdd1SGireesh NagabhushanaINSTALL_TARGET = $(BINARY) $(ROOTMODULE) 49*56b2bdd1SGireesh Nagabhushana 50*56b2bdd1SGireesh NagabhushanaCFLAGS += -g -I$(UTSBASE)/common/io/cxgbe -I$(UTSBASE)/common/io/cxgbe/common \ 51*56b2bdd1SGireesh Nagabhushana -I$(UTSBASE)/common/io/cxgbe/t4nex -I$(UTSBASE)/common/io/cxgbe/shared \ 52*56b2bdd1SGireesh Nagabhushana -I$(UTSBASE)/common/io/cxgbe/firmware 53*56b2bdd1SGireesh NagabhushanaCFLAGS += -xc99=%all 54*56b2bdd1SGireesh Nagabhushana 55*56b2bdd1SGireesh Nagabhushana# 56*56b2bdd1SGireesh Nagabhushana# Driver depends 57*56b2bdd1SGireesh Nagabhushana# 58*56b2bdd1SGireesh NagabhushanaLDFLAGS += -dy -N misc/mac -N drv/ip 59*56b2bdd1SGireesh Nagabhushana 60*56b2bdd1SGireesh Nagabhushana# 61*56b2bdd1SGireesh Nagabhushana# Lint 62*56b2bdd1SGireesh Nagabhushana# 63*56b2bdd1SGireesh NagabhushanaLINTFLAGS += -I$(UTSBASE)/common/io/cxgbe -I$(UTSBASE)/common/io/cxgbe/common \ 64*56b2bdd1SGireesh Nagabhushana -I$(UTSBASE)/common/io/cxgbe/t4nex -I$(UTSBASE)/common/io/cxgbe/shared \ 65*56b2bdd1SGireesh Nagabhushana -I$(UTSBASE)/common/io/cxgbe/firmware 66*56b2bdd1SGireesh NagabhushanaLINTFLAGS += -Xc99=%all 67*56b2bdd1SGireesh Nagabhushana 68*56b2bdd1SGireesh Nagabhushana# 69*56b2bdd1SGireesh Nagabhushana# Default build targets. 70*56b2bdd1SGireesh Nagabhushana# 71*56b2bdd1SGireesh Nagabhushana.KEEP_STATE: 72*56b2bdd1SGireesh Nagabhushana 73*56b2bdd1SGireesh Nagabhushanadef: $(DEF_DEPS) 74*56b2bdd1SGireesh Nagabhushana 75*56b2bdd1SGireesh Nagabhushanaall: $(ALL_DEPS) 76*56b2bdd1SGireesh Nagabhushana 77*56b2bdd1SGireesh Nagabhushanaclean: $(CLEAN_DEPS) 78*56b2bdd1SGireesh Nagabhushana 79*56b2bdd1SGireesh Nagabhushanaclobber: $(CLOBBER_DEPS) 80*56b2bdd1SGireesh Nagabhushana 81*56b2bdd1SGireesh Nagabhushanalint: $(LINT_DEPS) 82*56b2bdd1SGireesh Nagabhushana 83*56b2bdd1SGireesh Nagabhushanamodlintlib: $(MODLINTLIB_DEPS) 84*56b2bdd1SGireesh Nagabhushana 85*56b2bdd1SGireesh Nagabhushanaclean.lint: $(CLEAN_LINT_DEPS) 86*56b2bdd1SGireesh Nagabhushana 87*56b2bdd1SGireesh Nagabhushanainstall: $(INSTALL_DEPS) 88*56b2bdd1SGireesh Nagabhushana 89*56b2bdd1SGireesh Nagabhushana# 90*56b2bdd1SGireesh Nagabhushana# Include common targets. 91*56b2bdd1SGireesh Nagabhushana# 92*56b2bdd1SGireesh Nagabhushanainclude $(UTSBASE)/intel/Makefile.targ 93