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) 2019, Joyent, Inc. 14# 15 16# 17# uts/intel/bnxe/Makefile 18# 19# This makefile drives the production of the bnxe 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 = bnxe 34OBJECTS = $(BNXE_OBJS:%=$(OBJS_DIR)/%) 35ROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE) 36SRCDIR = $(UTSBASE)/common/io/bnxe 37CONF_SRCDIR = $(SRCDIR) 38 39# 40# Include common rules. 41# 42include $(UTSBASE)/intel/Makefile.intel 43 44# 45# Define targets 46# 47ALL_TARGET = $(BINARY) $(CONFMOD) 48INSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE) 49 50C99LMODE= -Xc99=%all 51 52# 53# Driver-specific flags 54# XXX inline bits were originally set to inline 55# 56CPPFLAGS += -DLM_RXPKT_NON_CONTIGUOUS \ 57 -DELINK_ENHANCEMENTS \ 58 -DELINK_57711E_SUPPORT \ 59 -DELINK_DEBUG \ 60 -D__inline= \ 61 -D_inline= \ 62 -D__BASENAME__=\"bnxe\" \ 63 -D__SunOS \ 64 -D__S11 \ 65 -DILLUMOS \ 66 -DLITTLE_ENDIAN \ 67 -DLITTLE_ENDIAN_HOST \ 68 -D__LITTLE_ENDIAN \ 69 -I$(SRCDIR)/577xx/include \ 70 -I$(SRCDIR)/577xx/drivers/common/ecore \ 71 -I$(SRCDIR)/577xx/drivers/common/include \ 72 -I$(SRCDIR)/577xx/drivers/common/include/l4 \ 73 -I$(SRCDIR)/577xx/drivers/common/include/l5 \ 74 -I$(SRCDIR)/577xx/drivers/common/lm/device \ 75 -I$(SRCDIR)/577xx/drivers/common/lm/fw \ 76 -I$(SRCDIR)/577xx/drivers/common/lm/include \ 77 -I$(SRCDIR)/577xx/drivers/common/lm/l4 \ 78 -I$(SRCDIR)/577xx/drivers/common/lm/l4/include \ 79 -I$(SRCDIR)/577xx/drivers/common/lm/l5 \ 80 -I$(SRCDIR)/577xx/drivers/common/lm/l5/include \ 81 -I$(SRCDIR)/577xx/hsi/hw/include \ 82 -I$(SRCDIR)/577xx/hsi/mcp \ 83 -I$(SRCDIR) 84 85LDFLAGS += -dy -r -Ndrv/ip -Nmisc/mac 86CERRWARN += -_gcc=-Wno-switch 87CERRWARN += $(CNOWARN_UNINIT) 88CERRWARN += -_gcc=-Wno-parentheses 89CERRWARN += -_gcc=-Wno-unused-function 90CERRWARN += -_gcc=-Wno-unused-value 91CERRWARN += -_gcc=-Wno-unused-variable 92CERRWARN += -_gcc=-Wno-unused-but-set-variable 93CERRWARN += -_cc=-erroff=E_STATEMENT_NOT_REACHED 94CERRWARN += -_cc=-erroff=E_ARGUEMENT_MISMATCH 95CERRWARN += -_cc=-erroff=E_INTEGER_OVERFLOW_DETECTED 96CERRWARN += -_cc=-erroff=E_CONST_PROMOTED_UNSIGNED_LL 97CERRWARN += -_cc=-erroff=E_ENUM_VAL_OVERFLOWS_INT_MAX 98 99# a whole mess 100SMATCH=off 101 102 103# 104# Default build targets. 105# 106.KEEP_STATE: 107 108def: $(DEF_DEPS) 109 110all: $(ALL_DEPS) 111 112clean: $(CLEAN_DEPS) 113 114clobber: $(CLOBBER_DEPS) 115 116install: $(INSTALL_DEPS) 117 118# 119# Include common targets. 120# 121include $(UTSBASE)/intel/Makefile.targ 122