Makefile revision 56b2bdd1f04d465cfe4a95b88ae5cba5884154e4
56b2bdd1f04d465cfe4a95b88ae5cba5884154e4Gireesh Nagabhushana#
56b2bdd1f04d465cfe4a95b88ae5cba5884154e4Gireesh Nagabhushana# This file and its contents are supplied under the terms of the
56b2bdd1f04d465cfe4a95b88ae5cba5884154e4Gireesh Nagabhushana# Common Development and Distribution License ("CDDL"), version 1.0.
56b2bdd1f04d465cfe4a95b88ae5cba5884154e4Gireesh Nagabhushana# You may only use this file in accordance with the terms of version
56b2bdd1f04d465cfe4a95b88ae5cba5884154e4Gireesh Nagabhushana# 1.0 of the CDDL.
56b2bdd1f04d465cfe4a95b88ae5cba5884154e4Gireesh Nagabhushana#
56b2bdd1f04d465cfe4a95b88ae5cba5884154e4Gireesh Nagabhushana# A full copy of the text of the CDDL should have accompanied this
56b2bdd1f04d465cfe4a95b88ae5cba5884154e4Gireesh Nagabhushana# source. A copy of the CDDL is also available via the Internet at
56b2bdd1f04d465cfe4a95b88ae5cba5884154e4Gireesh Nagabhushana# http://www.illumos.org/license/CDDL.
56b2bdd1f04d465cfe4a95b88ae5cba5884154e4Gireesh Nagabhushana#
56b2bdd1f04d465cfe4a95b88ae5cba5884154e4Gireesh Nagabhushana
56b2bdd1f04d465cfe4a95b88ae5cba5884154e4Gireesh Nagabhushana#
56b2bdd1f04d465cfe4a95b88ae5cba5884154e4Gireesh Nagabhushana# Copyright (c) 2013 by Chelsio Communications, Inc. All rights reserved.
56b2bdd1f04d465cfe4a95b88ae5cba5884154e4Gireesh Nagabhushana#
56b2bdd1f04d465cfe4a95b88ae5cba5884154e4Gireesh Nagabhushana
56b2bdd1f04d465cfe4a95b88ae5cba5884154e4Gireesh Nagabhushana#
56b2bdd1f04d465cfe4a95b88ae5cba5884154e4Gireesh Nagabhushana# This makefile drives the production of the Chelsio Terminator 4 10G Ethernet
56b2bdd1f04d465cfe4a95b88ae5cba5884154e4Gireesh Nagabhushana# (CXGBE) driver nexus modules on x86 systems.
56b2bdd1f04d465cfe4a95b88ae5cba5884154e4Gireesh Nagabhushana#
56b2bdd1f04d465cfe4a95b88ae5cba5884154e4Gireesh Nagabhushana
56b2bdd1f04d465cfe4a95b88ae5cba5884154e4Gireesh Nagabhushana#
56b2bdd1f04d465cfe4a95b88ae5cba5884154e4Gireesh Nagabhushana# Paths to the base of the uts directory trees
56b2bdd1f04d465cfe4a95b88ae5cba5884154e4Gireesh Nagabhushana#
56b2bdd1f04d465cfe4a95b88ae5cba5884154e4Gireesh NagabhushanaUTSBASE = ../../..
56b2bdd1f04d465cfe4a95b88ae5cba5884154e4Gireesh Nagabhushana
56b2bdd1f04d465cfe4a95b88ae5cba5884154e4Gireesh Nagabhushana#
56b2bdd1f04d465cfe4a95b88ae5cba5884154e4Gireesh Nagabhushana# Define the module and object file sets.
56b2bdd1f04d465cfe4a95b88ae5cba5884154e4Gireesh Nagabhushana#
56b2bdd1f04d465cfe4a95b88ae5cba5884154e4Gireesh NagabhushanaMODULE = t4nex
56b2bdd1f04d465cfe4a95b88ae5cba5884154e4Gireesh NagabhushanaOBJECTS = $(CXGBE_COM_OBJS:%=$(OBJS_DIR)/%) \
56b2bdd1f04d465cfe4a95b88ae5cba5884154e4Gireesh Nagabhushana $(CXGBE_FW_OBJS:%=$(OBJS_DIR)/%) \
56b2bdd1f04d465cfe4a95b88ae5cba5884154e4Gireesh Nagabhushana $(CXGBE_NEX_OBJS:%=$(OBJS_DIR)/%)
56b2bdd1f04d465cfe4a95b88ae5cba5884154e4Gireesh NagabhushanaLINTS = $(CXGBE_COM_OBJS:%.o=$(LINTS_DIR)/%.ln) \
56b2bdd1f04d465cfe4a95b88ae5cba5884154e4Gireesh Nagabhushana $(CXGBE_FW_OBJS:%.o=$(LINTS_DIR)/%.ln) \
56b2bdd1f04d465cfe4a95b88ae5cba5884154e4Gireesh Nagabhushana $(CXGBE_NEX_OBJS:%.o=$(LINTS_DIR)/%.ln)
56b2bdd1f04d465cfe4a95b88ae5cba5884154e4Gireesh NagabhushanaROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
56b2bdd1f04d465cfe4a95b88ae5cba5884154e4Gireesh Nagabhushana
56b2bdd1f04d465cfe4a95b88ae5cba5884154e4Gireesh Nagabhushana#
56b2bdd1f04d465cfe4a95b88ae5cba5884154e4Gireesh Nagabhushana# Include common rules
56b2bdd1f04d465cfe4a95b88ae5cba5884154e4Gireesh Nagabhushana#
56b2bdd1f04d465cfe4a95b88ae5cba5884154e4Gireesh Nagabhushanainclude $(UTSBASE)/intel/Makefile.intel
56b2bdd1f04d465cfe4a95b88ae5cba5884154e4Gireesh Nagabhushana
56b2bdd1f04d465cfe4a95b88ae5cba5884154e4Gireesh Nagabhushana#
56b2bdd1f04d465cfe4a95b88ae5cba5884154e4Gireesh Nagabhushana# Define targets
56b2bdd1f04d465cfe4a95b88ae5cba5884154e4Gireesh Nagabhushana#
56b2bdd1f04d465cfe4a95b88ae5cba5884154e4Gireesh NagabhushanaALL_TARGET = $(BINARY)
56b2bdd1f04d465cfe4a95b88ae5cba5884154e4Gireesh NagabhushanaLINT_TARGET = $(MODULE).lint
56b2bdd1f04d465cfe4a95b88ae5cba5884154e4Gireesh NagabhushanaINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
56b2bdd1f04d465cfe4a95b88ae5cba5884154e4Gireesh Nagabhushana
56b2bdd1f04d465cfe4a95b88ae5cba5884154e4Gireesh NagabhushanaCFLAGS += -g -I$(UTSBASE)/common/io/cxgbe -I$(UTSBASE)/common/io/cxgbe/common \
56b2bdd1f04d465cfe4a95b88ae5cba5884154e4Gireesh Nagabhushana -I$(UTSBASE)/common/io/cxgbe/t4nex -I$(UTSBASE)/common/io/cxgbe/shared \
56b2bdd1f04d465cfe4a95b88ae5cba5884154e4Gireesh Nagabhushana -I$(UTSBASE)/common/io/cxgbe/firmware
56b2bdd1f04d465cfe4a95b88ae5cba5884154e4Gireesh NagabhushanaCFLAGS += -xc99=%all
56b2bdd1f04d465cfe4a95b88ae5cba5884154e4Gireesh Nagabhushana
56b2bdd1f04d465cfe4a95b88ae5cba5884154e4Gireesh Nagabhushana#
56b2bdd1f04d465cfe4a95b88ae5cba5884154e4Gireesh Nagabhushana# Driver depends
56b2bdd1f04d465cfe4a95b88ae5cba5884154e4Gireesh Nagabhushana#
56b2bdd1f04d465cfe4a95b88ae5cba5884154e4Gireesh NagabhushanaLDFLAGS += -dy -N misc/mac -N drv/ip
56b2bdd1f04d465cfe4a95b88ae5cba5884154e4Gireesh Nagabhushana
56b2bdd1f04d465cfe4a95b88ae5cba5884154e4Gireesh Nagabhushana#
56b2bdd1f04d465cfe4a95b88ae5cba5884154e4Gireesh Nagabhushana# Lint
56b2bdd1f04d465cfe4a95b88ae5cba5884154e4Gireesh Nagabhushana#
56b2bdd1f04d465cfe4a95b88ae5cba5884154e4Gireesh NagabhushanaLINTFLAGS += -I$(UTSBASE)/common/io/cxgbe -I$(UTSBASE)/common/io/cxgbe/common \
56b2bdd1f04d465cfe4a95b88ae5cba5884154e4Gireesh Nagabhushana -I$(UTSBASE)/common/io/cxgbe/t4nex -I$(UTSBASE)/common/io/cxgbe/shared \
56b2bdd1f04d465cfe4a95b88ae5cba5884154e4Gireesh Nagabhushana -I$(UTSBASE)/common/io/cxgbe/firmware
56b2bdd1f04d465cfe4a95b88ae5cba5884154e4Gireesh NagabhushanaLINTFLAGS += -Xc99=%all
56b2bdd1f04d465cfe4a95b88ae5cba5884154e4Gireesh Nagabhushana
56b2bdd1f04d465cfe4a95b88ae5cba5884154e4Gireesh Nagabhushana#
56b2bdd1f04d465cfe4a95b88ae5cba5884154e4Gireesh Nagabhushana# Default build targets.
56b2bdd1f04d465cfe4a95b88ae5cba5884154e4Gireesh Nagabhushana#
56b2bdd1f04d465cfe4a95b88ae5cba5884154e4Gireesh Nagabhushana.KEEP_STATE:
56b2bdd1f04d465cfe4a95b88ae5cba5884154e4Gireesh Nagabhushana
56b2bdd1f04d465cfe4a95b88ae5cba5884154e4Gireesh Nagabhushanadef: $(DEF_DEPS)
56b2bdd1f04d465cfe4a95b88ae5cba5884154e4Gireesh Nagabhushana
56b2bdd1f04d465cfe4a95b88ae5cba5884154e4Gireesh Nagabhushanaall: $(ALL_DEPS)
56b2bdd1f04d465cfe4a95b88ae5cba5884154e4Gireesh Nagabhushana
56b2bdd1f04d465cfe4a95b88ae5cba5884154e4Gireesh Nagabhushanaclean: $(CLEAN_DEPS)
56b2bdd1f04d465cfe4a95b88ae5cba5884154e4Gireesh Nagabhushana
56b2bdd1f04d465cfe4a95b88ae5cba5884154e4Gireesh Nagabhushanaclobber: $(CLOBBER_DEPS)
56b2bdd1f04d465cfe4a95b88ae5cba5884154e4Gireesh Nagabhushana
56b2bdd1f04d465cfe4a95b88ae5cba5884154e4Gireesh Nagabhushanalint: $(LINT_DEPS)
56b2bdd1f04d465cfe4a95b88ae5cba5884154e4Gireesh Nagabhushana
56b2bdd1f04d465cfe4a95b88ae5cba5884154e4Gireesh Nagabhushanamodlintlib: $(MODLINTLIB_DEPS)
56b2bdd1f04d465cfe4a95b88ae5cba5884154e4Gireesh Nagabhushana
56b2bdd1f04d465cfe4a95b88ae5cba5884154e4Gireesh Nagabhushanaclean.lint: $(CLEAN_LINT_DEPS)
56b2bdd1f04d465cfe4a95b88ae5cba5884154e4Gireesh Nagabhushana
56b2bdd1f04d465cfe4a95b88ae5cba5884154e4Gireesh Nagabhushanainstall: $(INSTALL_DEPS)
56b2bdd1f04d465cfe4a95b88ae5cba5884154e4Gireesh Nagabhushana
56b2bdd1f04d465cfe4a95b88ae5cba5884154e4Gireesh Nagabhushana#
56b2bdd1f04d465cfe4a95b88ae5cba5884154e4Gireesh Nagabhushana# Include common targets.
56b2bdd1f04d465cfe4a95b88ae5cba5884154e4Gireesh Nagabhushana#
56b2bdd1f04d465cfe4a95b88ae5cba5884154e4Gireesh Nagabhushanainclude $(UTSBASE)/intel/Makefile.targ