summaryrefslogtreecommitdiff
path: root/usr/src/uts/intel
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/uts/intel')
-rw-r--r--usr/src/uts/intel/e1000g/Makefile9
-rw-r--r--usr/src/uts/intel/igb/Makefile9
2 files changed, 17 insertions, 1 deletions
diff --git a/usr/src/uts/intel/e1000g/Makefile b/usr/src/uts/intel/e1000g/Makefile
index 503e3f91dc..636a19ce35 100644
--- a/usr/src/uts/intel/e1000g/Makefile
+++ b/usr/src/uts/intel/e1000g/Makefile
@@ -40,6 +40,7 @@ UTSBASE = ../..
#
MODULE = e1000g
OBJECTS = $(E1000G_OBJS:%=$(OBJS_DIR)/%)
+OBJECTS += $(E1000API_OBJS:%=$(OBJS_DIR)/%)
LINTS = $(E1000G_OBJS:%.o=$(LINTS_DIR)/%.ln)
ROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
CONF_SRCDIR = $(UTSBASE)/common/io/e1000g
@@ -52,7 +53,12 @@ include $(UTSBASE)/intel/Makefile.intel
CFLAGS += -D_KERNEL -Di386 -DNEWSTAT -DNOMUT -DRCVWORKAROUND \
-DINTEL_IP \
-DPAXSON -DBAY_CITY \
- -DTANAX_WORKAROUND -I$(UTSBASE)/common/io/e1000g
+ -DTANAX_WORKAROUND -I$(UTSBASE)/common/io/e1000g \
+ -I$(UTSBASE)/common/io/e1000api
+
+LINTFLAGS += \
+ -I$(UTSBASE)/common/io/e1000g \
+ -I$(UTSBASE)/common/io/e1000api
CFLAGS_CPP_COMMENTS = -xCC
@@ -63,6 +69,7 @@ CERRWARN += -_gcc=-Wno-parentheses
CERRWARN += -_gcc=-Wno-switch
CERRWARN += -_gcc=-Wno-unused-label
CERRWARN += -_gcc=-Wno-unused-variable
+CERRWARN += -_cc=-erroff=E_STATEMENT_NOT_REACHED
#
# Define targets
diff --git a/usr/src/uts/intel/igb/Makefile b/usr/src/uts/intel/igb/Makefile
index b14088fedc..2d4a1f3556 100644
--- a/usr/src/uts/intel/igb/Makefile
+++ b/usr/src/uts/intel/igb/Makefile
@@ -40,6 +40,7 @@ UTSBASE = ../..
#
MODULE = igb
OBJECTS = $(IGB_OBJS:%=$(OBJS_DIR)/%)
+OBJECTS += $(E1000API_OBJS:%=$(OBJS_DIR)/%)
LINTS = $(IGB_OBJS:%.o=$(LINTS_DIR)/%.ln)
ROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
CONF_SRCDIR = $(UTSBASE)/common/io/igb
@@ -49,8 +50,16 @@ CONF_SRCDIR = $(UTSBASE)/common/io/igb
#
include $(UTSBASE)/intel/Makefile.intel
+LINTFLAGS += \
+ -I$(UTSBASE)/common/io/igb \
+ -I$(UTSBASE)/common/io/e1000api
+
CERRWARN += -_gcc=-Wno-switch
CERRWARN += -_gcc=-Wno-uninitialized
+CERRWARN += -_cc=-erroff=E_STATEMENT_NOT_REACHED
+
+CFLAGS += -I$(UTSBASE)/common/io/e1000api
+CFLAGS += -I$(UTSBASE)/common/io/igb
#
# Define targets