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) 2018, Joyent, Inc. 14# 15 16# 17# uts/intel/bnx/Makefile 18# 19# This makefile drives the production of the bnx 20# driver kernel module. 21# 22# intel architecture dependent 23# 24 25# 26# Paths to the base of the uts directory trees 27# 28UTSBASE = ../.. 29 30# 31# Define the module and object file sets. 32# 33MODULE = bnx 34OBJECTS = $(BNX_OBJS:%=$(OBJS_DIR)/%) 35LINTS = $(LINTS_DIR)/bnx_lint.ln 36ROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE) 37SRCDIR = $(UTSBASE)/common/io/bnx 38CONF_SRCDIR = $(SRCDIR) 39 40# 41# Include common rules. 42# 43include $(UTSBASE)/intel/Makefile.intel 44 45# 46# Define targets 47# 48ALL_TARGET = $(BINARY) $(CONFMOD) 49LINT_TARGET = $(MODULE).lint 50INSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE) 51 52C99MODE= -xc99=%all 53C99LMODE= -Xc99=%all 54 55# 56# Driver-specific flags 57# 58CPPFLAGS += \ 59 -D_USE_FRIENDLY_NAME \ 60 -DEXCLUDE_RSS_SUPPORT \ 61 -DEXCLUDE_KQE_SUPPORT \ 62 -DL2_ONLY \ 63 -DSOLARIS \ 64 -D_ANSI_C_ \ 65 -DLM_MAX_MC_TABLE_SIZE=256 \ 66 -DBRCMVERSION="\"7.10.4\"" \ 67 -DLITTLE_ENDIAN \ 68 -DLITTLE_ENDIAN_HOST \ 69 -D__LITTLE_ENDIAN 70 71CPPFLAGS += \ 72 -I$(SRCDIR) \ 73 -I$(SRCDIR)/include \ 74 -I$(SRCDIR)/570x/common/include \ 75 -I$(SRCDIR)/570x/driver/common/lmdev 76 77 78LDFLAGS += -dy -r -Ndrv/ip -Nmisc/mac 79 80# 81# Default build targets. 82# 83.KEEP_STATE: 84 85def: $(DEF_DEPS) 86 87all: $(ALL_DEPS) 88 89clean: $(CLEAN_DEPS) 90 91clobber: $(CLOBBER_DEPS) 92 93lint: $(LINT_DEPS) 94 95modlintlib: $(MODLINTLIB_DEPS) 96 97clean.lint: $(CLEAN_LINT_DEPS) 98 99install: $(INSTALL_DEPS) 100 101# 102# Include common targets. 103# 104include $(UTSBASE)/intel/Makefile.targ 105