xref: /titanic_50/usr/src/uts/sparc/sfe/Makefile (revision 7014882c6a3672fd0e5d60200af8643ae53c5928)
1f8919bdaSduboff#
2f8919bdaSduboff# CDDL HEADER START
3f8919bdaSduboff#
4f8919bdaSduboff# The contents of this file are subject to the terms of the
5f8919bdaSduboff# Common Development and Distribution License (the "License").
6f8919bdaSduboff# You may not use this file except in compliance with the License.
7f8919bdaSduboff#
8f8919bdaSduboff# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9f8919bdaSduboff# or http://www.opensolaris.org/os/licensing.
10f8919bdaSduboff# See the License for the specific language governing permissions
11f8919bdaSduboff# and limitations under the License.
12f8919bdaSduboff#
13f8919bdaSduboff# When distributing Covered Code, include this CDDL HEADER in each
14f8919bdaSduboff# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15f8919bdaSduboff# If applicable, add the following below this CDDL HEADER, with the
16f8919bdaSduboff# fields enclosed by brackets "[]" replaced with your own identifying
17f8919bdaSduboff# information: Portions Copyright [yyyy] [name of copyright owner]
18f8919bdaSduboff#
19f8919bdaSduboff# CDDL HEADER END
20f8919bdaSduboff#
21f8919bdaSduboff#
22f8919bdaSduboff# Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
23f8919bdaSduboff# Use is subject to license terms.
24f8919bdaSduboff#
25*7014882cSRichard Lowe
26f8919bdaSduboff#
27f8919bdaSduboff#	This makefile drives the production of NS/SiS
28f8919bdaSduboff#	Fast Ethernet (SFE) driver module in sparc systems
29f8919bdaSduboff#
30f8919bdaSduboff
31f8919bdaSduboff#
32f8919bdaSduboff#	Path to the base of the uts directory tree (usually /usr/src/uts).
33f8919bdaSduboff#
34f8919bdaSduboffUTSBASE		= ../..
35f8919bdaSduboff
36f8919bdaSduboff#
37f8919bdaSduboff#	Define the module and object file sets.
38f8919bdaSduboff#
39f8919bdaSduboffMODULE		= sfe
40f8919bdaSduboffOBJECTS		= $(SFE_OBJS:%=$(OBJS_DIR)/%)
41f8919bdaSduboffLINTS		= $(SFE_OBJS:%.o=$(LINTS_DIR)/%.ln)
42f8919bdaSduboffROOTMODULE	= $(ROOT_DRV_DIR)/$(MODULE)
43f8919bdaSduboff
44f8919bdaSduboff#
45f8919bdaSduboff#	Include common rules.
46f8919bdaSduboff#
47f8919bdaSduboffinclude $(UTSBASE)/sparc/Makefile.sparc
48f8919bdaSduboff
49f8919bdaSduboff#
50f8919bdaSduboff#	Define targets
51f8919bdaSduboff#
52f8919bdaSduboffALL_TARGET	= $(BINARY)
53f8919bdaSduboffLINT_TARGET	= $(MODULE).lint
54f8919bdaSduboffINSTALL_TARGET	= $(BINARY) $(ROOTMODULE)
55f8919bdaSduboff
56f8919bdaSduboff#
57f8919bdaSduboff#	GENERAL PURPOUSE GEM FLAGS: Tuning GEM for Solaris specific modes
58f8919bdaSduboff#
59f8919bdaSduboffVFLAGS		= -DVERSION='"2.6.1"'
60f8919bdaSduboffAFLAGS		= -Dsun4u
61f8919bdaSduboffDFLAGS		= -D"__INLINE__="
62f8919bdaSduboffCFGFLAGS	= -DGEM_CONFIG_POLLING -DGEM_CONFIG_GLDv3 -DGEM_CONFIG_VLAN \
63f8919bdaSduboff	-DGEM_CONFIG_CKSUM_OFFLOAD -DGEM_CONFIG_ND \
64f8919bdaSduboff	-DCONFIG_DP83815 -DCONFIG_SIS900 -DCONFIG_SIS7016 \
65f8919bdaSduboff	-DCONFIG_MAC_ADDR_SIS630E -DCONFIG_OPT_IO -UCONFIG_OO \
66f8919bdaSduboff	-DCONFIG_PATTERN_MATCH_DP83815
67f8919bdaSduboff#
68f8919bdaSduboff#	FAST PATH SECTION: Will activate usage of inlines as a regular functions
69f8919bdaSduboff#	on fast data path
70f8919bdaSduboff
71f8919bdaSduboffCPPFLAGS	+= $(VFLAGS) $(AFLAGS) $(DFLAGS) $(CFGFLAGS) $(CCVERBOSE) \
72f8919bdaSduboff	-I$(UTSBASE)/common/io/sfe
73f8919bdaSduboff
74f8919bdaSduboffCFLAGS		+= $(CPPFLAGS) -xc99=%all
75f8919bdaSduboff
76*7014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-unused-label
77*7014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-switch
78*7014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-parentheses
79*7014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-uninitialized
80*7014882cSRichard Lowe
81f8919bdaSduboff#
82f8919bdaSduboff# Driver depends on MAC & IP
83f8919bdaSduboff#
84f8919bdaSduboffLDFLAGS		+= -dy -N misc/mac -N drv/ip
85f8919bdaSduboff
86f8919bdaSduboff#
87f8919bdaSduboff#	Default build targets.
88f8919bdaSduboff#
89f8919bdaSduboff.KEEP_STATE:
90f8919bdaSduboff
91f8919bdaSduboffdef:		$(DEF_DEPS)
92f8919bdaSduboff
93f8919bdaSduboffall:		$(ALL_DEPS)
94f8919bdaSduboff
95f8919bdaSduboffclean:		$(CLEAN_DEPS)
96f8919bdaSduboff
97f8919bdaSduboffclobber:	$(CLOBBER_DEPS)
98f8919bdaSduboff
99f8919bdaSdubofflint:		$(LINT_DEPS)
100f8919bdaSduboff
101f8919bdaSduboffmodlintlib:	$(MODLINTLIB_DEPS)
102f8919bdaSduboff
103f8919bdaSduboffclean.lint:	$(CLEAN_LINT_DEPS)
104f8919bdaSduboff
105f8919bdaSduboffinstall:	$(INSTALL_DEPS)
106f8919bdaSduboff
107f8919bdaSduboff#
108f8919bdaSduboff#	Include common targets.
109f8919bdaSduboff#
110f8919bdaSduboffinclude $(UTSBASE)/sparc/Makefile.targ
111