xref: /illumos-gate/usr/src/uts/intel/nxge/Makefile (revision b6b206fc7fb36f7b13b01acf70ed6e676e405998)
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#
25*b6b206fcSJohn Levon# Copyright (c) 2018, Joyent, Inc.
26*b6b206fcSJohn Levon
277adfacf3Sml29623#
287adfacf3Sml29623#	Path to the base of the uts directory tree (usually /usr/src/uts).
297adfacf3Sml29623#
307adfacf3Sml29623UTSBASE	= ../..
317adfacf3Sml29623
327adfacf3Sml29623#
337adfacf3Sml29623#	Define the module and object file sets.
347adfacf3Sml29623#
357adfacf3Sml29623MODULE		= nxge
367adfacf3Sml29623NXGE_OBJECTS =	$(NXGE_OBJS) $(NXGE_NPI_OBJS)
377adfacf3Sml29623OBJECTS		=  $(NXGE_OBJECTS:%=$(OBJS_DIR)/%)
387adfacf3Sml29623LINTS		= $(NXGE_OBJECTS:%.o=$(LINTS_DIR)/%.ln)
397adfacf3Sml29623ROOTMODULE	= $(ROOT_DRV_DIR)/$(MODULE)
407adfacf3Sml29623CONF_SRCDIR	= $(UTSBASE)/common/io/nxge
417adfacf3Sml29623
427adfacf3Sml29623#
437adfacf3Sml29623#	Include common rules.
447adfacf3Sml29623#
457adfacf3Sml29623include $(UTSBASE)/intel/Makefile.intel
467adfacf3Sml29623
477adfacf3Sml29623#
487adfacf3Sml29623#	Override defaults to build a unique, local modstubs.o.
497adfacf3Sml29623#
507adfacf3Sml29623MODSTUBS_DIR	= $(OBJS_DIR)
517adfacf3Sml29623
527adfacf3Sml29623CLEANFILES	+= $(MODSTUBS_O)
537adfacf3Sml29623
547adfacf3Sml29623#
557adfacf3Sml29623#	Define targets
567adfacf3Sml29623#
577adfacf3Sml29623ALL_TARGET	= $(BINARY)
587adfacf3Sml29623LINT_TARGET	= $(MODULE).lint
597adfacf3Sml29623INSTALL_TARGET	= $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
607adfacf3Sml29623
617adfacf3Sml29623#
627adfacf3Sml29623# Include nxge specific header files
637adfacf3Sml29623#
647adfacf3Sml29623INC_PATH	+= -I$(UTSBASE)/common
657adfacf3Sml29623INC_PATH	+= -I$(UTSBASE)/common/io/nxge/npi
667adfacf3Sml29623INC_PATH	+= -I$(UTSBASE)/common/sys/nxge
67678453a8SspeerINC_PATH	+= -I$(UTSBASE)/sun4v
687adfacf3Sml29623#
697adfacf3Sml29623#
707adfacf3Sml29623# lint pass one enforcement
717adfacf3Sml29623#
727adfacf3Sml29623CFLAGS += -DSOLARIS
737adfacf3Sml29623#
747adfacf3Sml29623#ALL_BUILDS      = $(ALL_BUILDS64)
757adfacf3Sml29623#DEF_BUILDS      = $(DEF_BUILDS64)
767adfacf3Sml29623#CLEANLINTFILES  += $(LINT64_FILES)
777adfacf3Sml29623#
787adfacf3Sml29623LINTFLAGS += -DSOLARIS
797adfacf3Sml29623#
807adfacf3Sml29623# STREAMS, DDI API limitations and other ON header file definitions such as ethernet.h
817adfacf3Sml29623# force us to turn off these lint checks.
827adfacf3Sml29623#
837adfacf3Sml29623LINTTAGS	+= -erroff=E_BAD_PTR_CAST_ALIGN
847adfacf3Sml29623LINTTAGS	+= -erroff=E_PTRDIFF_OVERFLOW
857adfacf3Sml29623LINTTAGS	+= -erroff=E_FALSE_LOGICAL_EXPR
867014882cSRichard Lowe
877014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-unused-label
887014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-parentheses
897014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-switch
907014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-uninitialized
917014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-type-limits
927014882cSRichard Lowe
93*b6b206fcSJohn Levon# needs work
94*b6b206fcSJohn LevonSMATCH=off
95*b6b206fcSJohn Levon
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