xref: /illumos-gate/usr/src/uts/intel/nxge/Makefile (revision 4df3b64db8cae3f054ccdd573395ba7807bcd868)
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#
25b6b206fcSJohn Levon# Copyright (c) 2018, Joyent, Inc.
26b6b206fcSJohn 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)/%)
387adfacf3Sml29623ROOTMODULE	= $(ROOT_DRV_DIR)/$(MODULE)
397adfacf3Sml29623CONF_SRCDIR	= $(UTSBASE)/common/io/nxge
407adfacf3Sml29623
417adfacf3Sml29623#
427adfacf3Sml29623#	Include common rules.
437adfacf3Sml29623#
447adfacf3Sml29623include $(UTSBASE)/intel/Makefile.intel
457adfacf3Sml29623
467adfacf3Sml29623#
477adfacf3Sml29623#	Override defaults to build a unique, local modstubs.o.
487adfacf3Sml29623#
497adfacf3Sml29623MODSTUBS_DIR	= $(OBJS_DIR)
507adfacf3Sml29623
517adfacf3Sml29623CLEANFILES	+= $(MODSTUBS_O)
527adfacf3Sml29623
537adfacf3Sml29623#
547adfacf3Sml29623#	Define targets
557adfacf3Sml29623#
567adfacf3Sml29623ALL_TARGET	= $(BINARY)
577adfacf3Sml29623INSTALL_TARGET	= $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
587adfacf3Sml29623
597adfacf3Sml29623#
607adfacf3Sml29623# Include nxge specific header files
617adfacf3Sml29623#
627adfacf3Sml29623INC_PATH	+= -I$(UTSBASE)/common
637adfacf3Sml29623INC_PATH	+= -I$(UTSBASE)/common/io/nxge/npi
647adfacf3Sml29623INC_PATH	+= -I$(UTSBASE)/common/sys/nxge
65678453a8SspeerINC_PATH	+= -I$(UTSBASE)/sun4v
667adfacf3Sml29623#
677adfacf3Sml29623CFLAGS += -DSOLARIS
687adfacf3Sml29623#
697014882cSRichard Lowe
707014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-unused-label
717014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-parentheses
727014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-switch
73d3b5f563SJohn LevonCERRWARN	+= $(CNOWARN_UNINIT)
747014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-type-limits
757014882cSRichard Lowe
76*4df3b64dSToomas Soome$(OBJS_DIR)/nxge_hw.o := SMOFF += deref_check
77*4df3b64dSToomas Soome$(OBJS_DIR)/npi_txc.o := SMOFF += shift_to_zero
78b6b206fcSJohn Levon
797adfacf3Sml29623#
807adfacf3Sml29623#	Driver depends on mac & IP
817adfacf3Sml29623#
827adfacf3Sml29623LDFLAGS		+= -dy -N misc/mac -N drv/ip
837adfacf3Sml29623
847adfacf3Sml29623#
857adfacf3Sml29623#	Default build targets.
867adfacf3Sml29623#
877adfacf3Sml29623.KEEP_STATE:
887adfacf3Sml29623
897adfacf3Sml29623def:		$(DEF_DEPS)
907adfacf3Sml29623
917adfacf3Sml29623all:		$(ALL_DEPS)
927adfacf3Sml29623
937adfacf3Sml29623clean:		$(CLEAN_DEPS)
947adfacf3Sml29623
957adfacf3Sml29623clobber:	$(CLOBBER_DEPS)
967adfacf3Sml29623
977adfacf3Sml29623install:	$(INSTALL_DEPS)
987adfacf3Sml29623
997adfacf3Sml29623#
1007adfacf3Sml29623#	Include common targets.
1017adfacf3Sml29623#
1027adfacf3Sml29623include $(UTSBASE)/intel/Makefile.targ
103