xref: /titanic_44/usr/src/uts/intel/nxge/Makefile (revision 7014882c6a3672fd0e5d60200af8643ae53c5928)
17adfacf3Sml29623#
27adfacf3Sml29623# CDDL HEADER START
37adfacf3Sml29623#
47adfacf3Sml29623# The contents of this file are subject to the terms of the
57adfacf3Sml29623# Common Development and Distribution License (the "License").
67adfacf3Sml29623# You may not use this file except in compliance with the License.
77adfacf3Sml29623#
87adfacf3Sml29623# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
97adfacf3Sml29623# or http://www.opensolaris.org/os/licensing.
107adfacf3Sml29623# See the License for the specific language governing permissions
117adfacf3Sml29623# and limitations under the License.
127adfacf3Sml29623#
137adfacf3Sml29623# When distributing Covered Code, include this CDDL HEADER in each
147adfacf3Sml29623# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
157adfacf3Sml29623# If applicable, add the following below this CDDL HEADER, with the
167adfacf3Sml29623# fields enclosed by brackets "[]" replaced with your own identifying
177adfacf3Sml29623# information: Portions Copyright [yyyy] [name of copyright owner]
187adfacf3Sml29623#
197adfacf3Sml29623# CDDL HEADER END
207adfacf3Sml29623#
217adfacf3Sml29623# uts/intel/nxge/Makefile
227adfacf3Sml29623#
23310da939SSurya Prakki# Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
247adfacf3Sml29623#
257adfacf3Sml29623#
267adfacf3Sml29623#	This makefile drives the production of the Sun NIU
277adfacf3Sml29623#	10G/1G Ethernet leaf driver kernel module.
287adfacf3Sml29623#
297adfacf3Sml29623#
307adfacf3Sml29623#	Path to the base of the uts directory tree (usually /usr/src/uts).
317adfacf3Sml29623#
327adfacf3Sml29623UTSBASE	= ../..
337adfacf3Sml29623
347adfacf3Sml29623#
357adfacf3Sml29623#	Define the module and object file sets.
367adfacf3Sml29623#
377adfacf3Sml29623MODULE		= nxge
387adfacf3Sml29623NXGE_OBJECTS =	$(NXGE_OBJS) $(NXGE_NPI_OBJS)
397adfacf3Sml29623OBJECTS		=  $(NXGE_OBJECTS:%=$(OBJS_DIR)/%)
407adfacf3Sml29623LINTS		= $(NXGE_OBJECTS:%.o=$(LINTS_DIR)/%.ln)
417adfacf3Sml29623ROOTMODULE	= $(ROOT_DRV_DIR)/$(MODULE)
427adfacf3Sml29623CONF_SRCDIR	= $(UTSBASE)/common/io/nxge
437adfacf3Sml29623
447adfacf3Sml29623#
457adfacf3Sml29623#	Include common rules.
467adfacf3Sml29623#
477adfacf3Sml29623include $(UTSBASE)/intel/Makefile.intel
487adfacf3Sml29623
497adfacf3Sml29623#
507adfacf3Sml29623#	Override defaults to build a unique, local modstubs.o.
517adfacf3Sml29623#
527adfacf3Sml29623MODSTUBS_DIR	= $(OBJS_DIR)
537adfacf3Sml29623
547adfacf3Sml29623CLEANFILES	+= $(MODSTUBS_O)
557adfacf3Sml29623
567adfacf3Sml29623#
577adfacf3Sml29623#	Define targets
587adfacf3Sml29623#
597adfacf3Sml29623ALL_TARGET	= $(BINARY)
607adfacf3Sml29623LINT_TARGET	= $(MODULE).lint
617adfacf3Sml29623INSTALL_TARGET	= $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
627adfacf3Sml29623
637adfacf3Sml29623#
647adfacf3Sml29623# Include nxge specific header files
657adfacf3Sml29623#
667adfacf3Sml29623INC_PATH	+= -I$(UTSBASE)/common
677adfacf3Sml29623INC_PATH	+= -I$(UTSBASE)/common/io/nxge/npi
687adfacf3Sml29623INC_PATH	+= -I$(UTSBASE)/common/sys/nxge
69678453a8SspeerINC_PATH	+= -I$(UTSBASE)/sun4v
707adfacf3Sml29623#
717adfacf3Sml29623#
727adfacf3Sml29623# lint pass one enforcement
737adfacf3Sml29623#
747adfacf3Sml29623CFLAGS += -DSOLARIS
757adfacf3Sml29623#
767adfacf3Sml29623#ALL_BUILDS      = $(ALL_BUILDS64)
777adfacf3Sml29623#DEF_BUILDS      = $(DEF_BUILDS64)
787adfacf3Sml29623#CLEANLINTFILES  += $(LINT64_FILES)
797adfacf3Sml29623#
807adfacf3Sml29623LINTFLAGS += -DSOLARIS
817adfacf3Sml29623#
827adfacf3Sml29623# STREAMS, DDI API limitations and other ON header file definitions such as ethernet.h
837adfacf3Sml29623# force us to turn off these lint checks.
847adfacf3Sml29623#
857adfacf3Sml29623LINTTAGS	+= -erroff=E_BAD_PTR_CAST_ALIGN
867adfacf3Sml29623LINTTAGS	+= -erroff=E_PTRDIFF_OVERFLOW
877adfacf3Sml29623LINTTAGS	+= -erroff=E_FALSE_LOGICAL_EXPR
88*7014882cSRichard Lowe
89*7014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-unused-label
90*7014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-parentheses
91*7014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-switch
92*7014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-uninitialized
93*7014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-type-limits
94*7014882cSRichard Lowe
957adfacf3Sml29623#
967adfacf3Sml29623#	Driver depends on mac & IP
977adfacf3Sml29623#
987adfacf3Sml29623LDFLAGS		+= -dy -N misc/mac -N drv/ip
997adfacf3Sml29623
1007adfacf3Sml29623#
1017adfacf3Sml29623#	Default build targets.
1027adfacf3Sml29623#
1037adfacf3Sml29623.KEEP_STATE:
1047adfacf3Sml29623
1057adfacf3Sml29623def:		$(DEF_DEPS)
1067adfacf3Sml29623
1077adfacf3Sml29623all:		$(ALL_DEPS)
1087adfacf3Sml29623
1097adfacf3Sml29623clean:		$(CLEAN_DEPS)
1107adfacf3Sml29623
1117adfacf3Sml29623clobber:	$(CLOBBER_DEPS)
1127adfacf3Sml29623
1137adfacf3Sml29623lint:		$(LINT_DEPS)
1147adfacf3Sml29623
1157adfacf3Sml29623modlintlib:	$(MODLINTLIB_DEPS)
1167adfacf3Sml29623
1177adfacf3Sml29623clean.lint:	$(CLEAN_LINT_DEPS)
1187adfacf3Sml29623
1197adfacf3Sml29623install:	$(INSTALL_DEPS)
1207adfacf3Sml29623
1217adfacf3Sml29623#
1227adfacf3Sml29623#	Include common targets.
1237adfacf3Sml29623#
1247adfacf3Sml29623include $(UTSBASE)/intel/Makefile.targ
125