xref: /titanic_44/usr/src/uts/intel/nxge/Makefile (revision 678453a8ed49104d8adad58f3ba591bdc39883e8)
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#
237adfacf3Sml29623# Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
247adfacf3Sml29623# Use is subject to license terms.
257adfacf3Sml29623#
267adfacf3Sml29623#
277adfacf3Sml29623# ident	"%Z%%M%	%I%	%E% SMI"
287adfacf3Sml29623#
297adfacf3Sml29623#	This makefile drives the production of the Sun NIU
307adfacf3Sml29623#	10G/1G Ethernet leaf driver kernel module.
317adfacf3Sml29623#
327adfacf3Sml29623#
337adfacf3Sml29623#	Path to the base of the uts directory tree (usually /usr/src/uts).
347adfacf3Sml29623#
357adfacf3Sml29623UTSBASE	= ../..
367adfacf3Sml29623
377adfacf3Sml29623#
387adfacf3Sml29623#	Define the module and object file sets.
397adfacf3Sml29623#
407adfacf3Sml29623MODULE		= nxge
417adfacf3Sml29623NXGE_OBJECTS =	$(NXGE_OBJS) $(NXGE_NPI_OBJS)
427adfacf3Sml29623OBJECTS		=  $(NXGE_OBJECTS:%=$(OBJS_DIR)/%)
437adfacf3Sml29623LINTS		= $(NXGE_OBJECTS:%.o=$(LINTS_DIR)/%.ln)
447adfacf3Sml29623ROOTMODULE	= $(ROOT_DRV_DIR)/$(MODULE)
457adfacf3Sml29623CONF_SRCDIR	= $(UTSBASE)/common/io/nxge
467adfacf3Sml29623
477adfacf3Sml29623#
487adfacf3Sml29623#	Include common rules.
497adfacf3Sml29623#
507adfacf3Sml29623include $(UTSBASE)/intel/Makefile.intel
517adfacf3Sml29623
527adfacf3Sml29623#
537adfacf3Sml29623#	Override defaults to build a unique, local modstubs.o.
547adfacf3Sml29623#
557adfacf3Sml29623MODSTUBS_DIR	= $(OBJS_DIR)
567adfacf3Sml29623
577adfacf3Sml29623CLEANFILES	+= $(MODSTUBS_O)
587adfacf3Sml29623
597adfacf3Sml29623#
607adfacf3Sml29623#	Define targets
617adfacf3Sml29623#
627adfacf3Sml29623ALL_TARGET	= $(BINARY)
637adfacf3Sml29623LINT_TARGET	= $(MODULE).lint
647adfacf3Sml29623INSTALL_TARGET	= $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
657adfacf3Sml29623
667adfacf3Sml29623#
677adfacf3Sml29623#
687adfacf3Sml29623# Turn on doubleword alignment for 64 bit registers
697adfacf3Sml29623#
707adfacf3Sml29623CFLAGS	+= -dalign
717adfacf3Sml29623#
727adfacf3Sml29623# Include nxge specific header files
737adfacf3Sml29623#
747adfacf3Sml29623INC_PATH	+= -I$(UTSBASE)/common
757adfacf3Sml29623INC_PATH	+= -I$(UTSBASE)/common/io/nxge/npi
767adfacf3Sml29623INC_PATH	+= -I$(UTSBASE)/common/sys/nxge
77*678453a8SspeerINC_PATH	+= -I$(UTSBASE)/sun4v
787adfacf3Sml29623#
797adfacf3Sml29623#
807adfacf3Sml29623# lint pass one enforcement
817adfacf3Sml29623#
827adfacf3Sml29623CFLAGS += -DSOLARIS
837adfacf3Sml29623#
847adfacf3Sml29623#ALL_BUILDS      = $(ALL_BUILDS64)
857adfacf3Sml29623#DEF_BUILDS      = $(DEF_BUILDS64)
867adfacf3Sml29623#CLEANLINTFILES  += $(LINT64_FILES)
877adfacf3Sml29623#
887adfacf3Sml29623LINTFLAGS += -DSOLARIS
897adfacf3Sml29623#
907adfacf3Sml29623# STREAMS, DDI API limitations and other ON header file definitions such as ethernet.h
917adfacf3Sml29623# force us to turn off these lint checks.
927adfacf3Sml29623#
937adfacf3Sml29623LINTTAGS	+= -erroff=E_BAD_PTR_CAST_ALIGN
947adfacf3Sml29623LINTTAGS	+= -erroff=E_PTRDIFF_OVERFLOW
957adfacf3Sml29623LINTTAGS	+= -erroff=E_FALSE_LOGICAL_EXPR
967adfacf3Sml29623#
977adfacf3Sml29623#	Driver depends on mac & IP
987adfacf3Sml29623#
997adfacf3Sml29623LDFLAGS		+= -dy -N misc/mac -N drv/ip
1007adfacf3Sml29623
1017adfacf3Sml29623#
1027adfacf3Sml29623#	Default build targets.
1037adfacf3Sml29623#
1047adfacf3Sml29623.KEEP_STATE:
1057adfacf3Sml29623
1067adfacf3Sml29623def:		$(DEF_DEPS)
1077adfacf3Sml29623
1087adfacf3Sml29623all:		$(ALL_DEPS)
1097adfacf3Sml29623
1107adfacf3Sml29623clean:		$(CLEAN_DEPS)
1117adfacf3Sml29623
1127adfacf3Sml29623clobber:	$(CLOBBER_DEPS)
1137adfacf3Sml29623
1147adfacf3Sml29623lint:		$(LINT_DEPS)
1157adfacf3Sml29623
1167adfacf3Sml29623modlintlib:	$(MODLINTLIB_DEPS)
1177adfacf3Sml29623
1187adfacf3Sml29623clean.lint:	$(CLEAN_LINT_DEPS)
1197adfacf3Sml29623
1207adfacf3Sml29623install:	$(INSTALL_DEPS)
1217adfacf3Sml29623
1227adfacf3Sml29623#
1237adfacf3Sml29623#	Include common targets.
1247adfacf3Sml29623#
1257adfacf3Sml29623include $(UTSBASE)/intel/Makefile.targ
126