8354 sync regcomp(3C) with upstream (fix make catalog)
[unleashed/tickless.git] / usr / src / uts / intel / bnxe / Makefile
blobcbe06319bed9453fb290ab4a2d9e5e2a4f7610d1
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.
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.
13 # Copyright (c) 2014, Joyent, Inc. All rights reserved.
17 # uts/intel/bnxe/Makefile
19 # This makefile drives the production of the bnxe
20 # driver kernel module.
22 # intel architecture dependent
26 # Paths to the base of the uts directory trees
28 UTSBASE = ../..
31 # Define the module and object file sets.
33 MODULE = bnxe
34 OBJECTS = $(BNXE_OBJS:%=$(OBJS_DIR)/%)
35 LINTS = $(LINTS_DIR)/bnxe_lint.ln
36 ROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
37 SRCDIR = $(UTSBASE)/common/io/bnxe
38 CONF_SRCDIR = $(SRCDIR)
41 # Include common rules.
43 include $(UTSBASE)/intel/Makefile.intel
46 # Define targets
48 ALL_TARGET = $(BINARY) $(CONFMOD)
49 LINT_TARGET = $(MODULE).lint
50 INSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
52 C99MODE= -xc99=%all
53 C99LMODE= -Xc99=%all
56 # Driver-specific flags
57 # XXX inline bits were originally set to inline
59 CPPFLAGS += -DLM_RXPKT_NON_CONTIGUOUS \
60 -DELINK_ENHANCEMENTS \
61 -DELINK_57711E_SUPPORT \
62 -DELINK_DEBUG \
63 -D__inline= \
64 -D_inline= \
65 -D__BASENAME__=\"bnxe\" \
66 -D__SunOS \
67 -D__S11 \
68 -DILLUMOS \
69 -DLITTLE_ENDIAN \
70 -DLITTLE_ENDIAN_HOST \
71 -D__LITTLE_ENDIAN \
72 -I$(SRCDIR)/577xx/include \
73 -I$(SRCDIR)/577xx/drivers/common/ecore \
74 -I$(SRCDIR)/577xx/drivers/common/include \
75 -I$(SRCDIR)/577xx/drivers/common/include/l4 \
76 -I$(SRCDIR)/577xx/drivers/common/include/l5 \
77 -I$(SRCDIR)/577xx/drivers/common/lm/device \
78 -I$(SRCDIR)/577xx/drivers/common/lm/fw \
79 -I$(SRCDIR)/577xx/drivers/common/lm/include \
80 -I$(SRCDIR)/577xx/drivers/common/lm/l4 \
81 -I$(SRCDIR)/577xx/drivers/common/lm/l4/include \
82 -I$(SRCDIR)/577xx/drivers/common/lm/l5 \
83 -I$(SRCDIR)/577xx/drivers/common/lm/l5/include \
84 -I$(SRCDIR)/577xx/hsi/hw/include \
85 -I$(SRCDIR)/577xx/hsi/mcp \
86 -I$(SRCDIR)
88 LDFLAGS += -dy -r -Ndrv/ip -Nmisc/mac
89 #CERRWARN += -_gcc=-Wno-old-style-declaration
90 CERRWARN += -_gcc=-Wno-switch
91 CERRWARN += -_gcc=-Wno-uninitialized
92 CERRWARN += -_gcc=-Wno-parentheses
93 CERRWARN += -_gcc=-Wno-unused-function
94 CERRWARN += -_gcc=-Wno-unused-value
95 CERRWARN += -_gcc=-Wno-unused-variable
96 CERRWARN += -_cc=-erroff=E_STATEMENT_NOT_REACHED
97 CERRWARN += -_cc=-erroff=E_ARGUEMENT_MISMATCH
98 CERRWARN += -_cc=-erroff=E_INTEGER_OVERFLOW_DETECTED
99 CERRWARN += -_cc=-erroff=E_CONST_PROMOTED_UNSIGNED_LL
100 CERRWARN += -_cc=-erroff=E_ENUM_VAL_OVERFLOWS_INT_MAX
102 LINTTAGS += -erroff=E_FUNC_RET_ALWAYS_IGNOR2
103 LINTTAGS += -erroff=E_FUNC_RET_MAYBE_IGNORED2
104 LINTTAGS += -erroff=E_STATIC_UNUSED
105 LINTTAGS += -erroff=E_FUNC_SET_NOT_USED
106 LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
107 LINTTAGS += -erroff=E_CONSTANT_CONDITION
108 LINTTAGS += -erroff=E_NOP_ELSE_STMT
109 LINTTAGS += -erroff=E_NOP_IF_STMT
110 LINTTAGS += -erroff=E_FUNC_ARG_UNUSED
111 LINTTAGS += -erroff=E_FUNC_VAR_UNUSED
112 LINTTAGS += -erroff=E_EXPR_NULL_EFFECT
113 LINTTAGS += -erroff=E_STMT_NOT_REACHED
114 LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
115 LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW
116 LINTTAGS += -erroff=E_CASE_FALLTHRU
117 LINTTAGS += -erroff=E_CONST_EXPR
120 # Default build targets.
122 .KEEP_STATE:
124 def: $(DEF_DEPS)
126 all: $(ALL_DEPS)
128 clean: $(CLEAN_DEPS)
130 clobber: $(CLOBBER_DEPS)
132 lint: $(LINT_DEPS)
134 modlintlib: $(MODLINTLIB_DEPS)
136 clean.lint: $(CLEAN_LINT_DEPS)
138 install: $(INSTALL_DEPS)
141 # Include common targets.
143 include $(UTSBASE)/intel/Makefile.targ