4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
21 # uts/intel/hxge/Makefile
23 # Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved.
25 # This makefile drives the production of the Sun
26 # 10G hxge Ethernet leaf driver kernel module.
29 # Path to the base of the uts directory tree (usually /usr/src/uts).
34 # Define the module and object file sets.
37 HXGE_OBJECTS
= $(HXGE_OBJS
) $(HXGE_HPI_OBJS
)
38 OBJECTS
= $(HXGE_OBJECTS
:%=$(OBJS_DIR
)/%)
39 LINTS
= $(HXGE_OBJECTS
:%.o
=$(LINTS_DIR
)/%.ln
)
40 ROOTMODULE
= $(ROOT_DRV_DIR
)/$(MODULE
)
41 CONF_SRCDIR
= $(UTSBASE
)/common
/io
/hxge
44 # Include common rules.
46 include $(UTSBASE
)/intel
/Makefile.intel
49 # Override defaults to build a unique, local modstubs.o.
51 MODSTUBS_DIR
= $(OBJS_DIR
)
53 CLEANFILES
+= $(MODSTUBS_O
)
58 ALL_TARGET
= $(BINARY
)
59 LINT_TARGET
= $(MODULE
).lint
60 INSTALL_TARGET
= $(BINARY
) $(ROOTMODULE
) $(ROOT_CONFFILE
)
63 # Include hxge specific header files
65 INC_PATH
+= -I
$(UTSBASE
)/common
/io
/hxge
68 # lint pass one enforcement
74 # CFLAGS += -DHXGE_DEBUG -DHPI_DEBUG
76 LINTFLAGS
+= -DSOLARIS
78 # STREAMS, DDI API limitations and other ON header file definitions such as ethernet.h
79 # force us to turn off these lint checks.
81 LINTTAGS
+= -erroff
=E_BAD_PTR_CAST_ALIGN
82 LINTTAGS
+= -erroff
=E_PTRDIFF_OVERFLOW
83 LINTTAGS
+= -erroff
=E_FALSE_LOGICAL_EXPR
85 CERRWARN
+= -_gcc
=-Wno-unused-label
86 CERRWARN
+= -_gcc
=-Wno-switch
87 CERRWARN
+= -_gcc
=-Wno-uninitialized
88 CERRWARN
+= -_gcc
=-Wno-parentheses
91 # Driver depends on mac & IP
93 LDFLAGS
+= -dy
-N misc
/mac
-N drv
/ip
96 # Default build targets.
106 clobber: $(CLOBBER_DEPS
)
110 modlintlib
: $(MODLINTLIB_DEPS
)
112 clean.lint
: $(CLEAN_LINT_DEPS
)
114 install: $(INSTALL_DEPS
)
117 # Include common targets.
119 include $(UTSBASE
)/intel
/Makefile.targ