xref: /titanic_44/usr/src/uts/intel/nxge/Makefile (revision 7adfacf32dfbb1d0705cc8a39ffa7fc8a1aeff66)
1*7adfacf3Sml29623#
2*7adfacf3Sml29623# CDDL HEADER START
3*7adfacf3Sml29623#
4*7adfacf3Sml29623# The contents of this file are subject to the terms of the
5*7adfacf3Sml29623# Common Development and Distribution License (the "License").
6*7adfacf3Sml29623# You may not use this file except in compliance with the License.
7*7adfacf3Sml29623#
8*7adfacf3Sml29623# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*7adfacf3Sml29623# or http://www.opensolaris.org/os/licensing.
10*7adfacf3Sml29623# See the License for the specific language governing permissions
11*7adfacf3Sml29623# and limitations under the License.
12*7adfacf3Sml29623#
13*7adfacf3Sml29623# When distributing Covered Code, include this CDDL HEADER in each
14*7adfacf3Sml29623# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*7adfacf3Sml29623# If applicable, add the following below this CDDL HEADER, with the
16*7adfacf3Sml29623# fields enclosed by brackets "[]" replaced with your own identifying
17*7adfacf3Sml29623# information: Portions Copyright [yyyy] [name of copyright owner]
18*7adfacf3Sml29623#
19*7adfacf3Sml29623# CDDL HEADER END
20*7adfacf3Sml29623#
21*7adfacf3Sml29623# uts/intel/nxge/Makefile
22*7adfacf3Sml29623#
23*7adfacf3Sml29623# Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
24*7adfacf3Sml29623# Use is subject to license terms.
25*7adfacf3Sml29623#
26*7adfacf3Sml29623#
27*7adfacf3Sml29623# ident	"%Z%%M%	%I%	%E% SMI"
28*7adfacf3Sml29623#
29*7adfacf3Sml29623#	This makefile drives the production of the Sun NIU
30*7adfacf3Sml29623#	10G/1G Ethernet leaf driver kernel module.
31*7adfacf3Sml29623#
32*7adfacf3Sml29623#
33*7adfacf3Sml29623#	Path to the base of the uts directory tree (usually /usr/src/uts).
34*7adfacf3Sml29623#
35*7adfacf3Sml29623UTSBASE	= ../..
36*7adfacf3Sml29623
37*7adfacf3Sml29623#
38*7adfacf3Sml29623#	Define the module and object file sets.
39*7adfacf3Sml29623#
40*7adfacf3Sml29623MODULE		= nxge
41*7adfacf3Sml29623NXGE_OBJECTS =	$(NXGE_OBJS) $(NXGE_NPI_OBJS)
42*7adfacf3Sml29623OBJECTS		=  $(NXGE_OBJECTS:%=$(OBJS_DIR)/%)
43*7adfacf3Sml29623LINTS		= $(NXGE_OBJECTS:%.o=$(LINTS_DIR)/%.ln)
44*7adfacf3Sml29623ROOTMODULE	= $(ROOT_DRV_DIR)/$(MODULE)
45*7adfacf3Sml29623CONF_SRCDIR	= $(UTSBASE)/common/io/nxge
46*7adfacf3Sml29623
47*7adfacf3Sml29623#
48*7adfacf3Sml29623#	Include common rules.
49*7adfacf3Sml29623#
50*7adfacf3Sml29623include $(UTSBASE)/intel/Makefile.intel
51*7adfacf3Sml29623
52*7adfacf3Sml29623#
53*7adfacf3Sml29623#	Override defaults to build a unique, local modstubs.o.
54*7adfacf3Sml29623#
55*7adfacf3Sml29623MODSTUBS_DIR	= $(OBJS_DIR)
56*7adfacf3Sml29623
57*7adfacf3Sml29623CLEANFILES	+= $(MODSTUBS_O)
58*7adfacf3Sml29623
59*7adfacf3Sml29623#
60*7adfacf3Sml29623#	Define targets
61*7adfacf3Sml29623#
62*7adfacf3Sml29623ALL_TARGET	= $(BINARY)
63*7adfacf3Sml29623LINT_TARGET	= $(MODULE).lint
64*7adfacf3Sml29623INSTALL_TARGET	= $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
65*7adfacf3Sml29623
66*7adfacf3Sml29623#
67*7adfacf3Sml29623#
68*7adfacf3Sml29623# Turn on doubleword alignment for 64 bit registers
69*7adfacf3Sml29623#
70*7adfacf3Sml29623CFLAGS	+= -dalign
71*7adfacf3Sml29623#
72*7adfacf3Sml29623# Include nxge specific header files
73*7adfacf3Sml29623#
74*7adfacf3Sml29623INC_PATH	+= -I$(UTSBASE)/common
75*7adfacf3Sml29623INC_PATH	+= -I$(UTSBASE)/common/io/nxge/npi
76*7adfacf3Sml29623INC_PATH	+= -I$(UTSBASE)/common/sys/nxge
77*7adfacf3Sml29623#
78*7adfacf3Sml29623#
79*7adfacf3Sml29623# lint pass one enforcement
80*7adfacf3Sml29623#
81*7adfacf3Sml29623CFLAGS += -DSOLARIS
82*7adfacf3Sml29623#
83*7adfacf3Sml29623#ALL_BUILDS      = $(ALL_BUILDS64)
84*7adfacf3Sml29623#DEF_BUILDS      = $(DEF_BUILDS64)
85*7adfacf3Sml29623#CLEANLINTFILES  += $(LINT64_FILES)
86*7adfacf3Sml29623#
87*7adfacf3Sml29623LINTFLAGS += -DSOLARIS
88*7adfacf3Sml29623#
89*7adfacf3Sml29623# STREAMS, DDI API limitations and other ON header file definitions such as ethernet.h
90*7adfacf3Sml29623# force us to turn off these lint checks.
91*7adfacf3Sml29623#
92*7adfacf3Sml29623LINTTAGS	+= -erroff=E_BAD_PTR_CAST_ALIGN
93*7adfacf3Sml29623LINTTAGS	+= -erroff=E_PTRDIFF_OVERFLOW
94*7adfacf3Sml29623LINTTAGS	+= -erroff=E_FALSE_LOGICAL_EXPR
95*7adfacf3Sml29623#
96*7adfacf3Sml29623#	Driver depends on mac & IP
97*7adfacf3Sml29623#
98*7adfacf3Sml29623LDFLAGS		+= -dy -N misc/mac -N drv/ip
99*7adfacf3Sml29623
100*7adfacf3Sml29623#
101*7adfacf3Sml29623#	Default build targets.
102*7adfacf3Sml29623#
103*7adfacf3Sml29623.KEEP_STATE:
104*7adfacf3Sml29623
105*7adfacf3Sml29623def:		$(DEF_DEPS)
106*7adfacf3Sml29623
107*7adfacf3Sml29623all:		$(ALL_DEPS)
108*7adfacf3Sml29623
109*7adfacf3Sml29623clean:		$(CLEAN_DEPS)
110*7adfacf3Sml29623
111*7adfacf3Sml29623clobber:	$(CLOBBER_DEPS)
112*7adfacf3Sml29623
113*7adfacf3Sml29623lint:		$(LINT_DEPS)
114*7adfacf3Sml29623
115*7adfacf3Sml29623modlintlib:	$(MODLINTLIB_DEPS)
116*7adfacf3Sml29623
117*7adfacf3Sml29623clean.lint:	$(CLEAN_LINT_DEPS)
118*7adfacf3Sml29623
119*7adfacf3Sml29623install:	$(INSTALL_DEPS)
120*7adfacf3Sml29623
121*7adfacf3Sml29623#
122*7adfacf3Sml29623#	Include common targets.
123*7adfacf3Sml29623#
124*7adfacf3Sml29623include $(UTSBASE)/intel/Makefile.targ
125