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# Define targets 487adfacf3Sml29623# 497adfacf3Sml29623ALL_TARGET = $(BINARY) 507adfacf3Sml29623INSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE) 517adfacf3Sml29623 527adfacf3Sml29623# 537adfacf3Sml29623# Include nxge specific header files 547adfacf3Sml29623# 557adfacf3Sml29623INC_PATH += -I$(UTSBASE)/common 567adfacf3Sml29623INC_PATH += -I$(UTSBASE)/common/io/nxge/npi 577adfacf3Sml29623INC_PATH += -I$(UTSBASE)/common/sys/nxge 58*5e90766bSRichard Lowe 597adfacf3Sml29623# 607adfacf3Sml29623CFLAGS += -DSOLARIS 617adfacf3Sml29623# 627014882cSRichard Lowe 637014882cSRichard LoweCERRWARN += -_gcc=-Wno-parentheses 647014882cSRichard LoweCERRWARN += -_gcc=-Wno-switch 65d3b5f563SJohn LevonCERRWARN += $(CNOWARN_UNINIT) 667014882cSRichard LoweCERRWARN += -_gcc=-Wno-type-limits 677014882cSRichard Lowe 684df3b64dSToomas Soome$(OBJS_DIR)/nxge_hw.o := SMOFF += deref_check 694df3b64dSToomas Soome$(OBJS_DIR)/npi_txc.o := SMOFF += shift_to_zero 70b6b206fcSJohn Levon 717adfacf3Sml29623# 727adfacf3Sml29623# Driver depends on mac & IP 737adfacf3Sml29623# 7482d0151aSRichard LoweLDFLAGS += -N misc/mac -N drv/ip 757adfacf3Sml29623 767adfacf3Sml29623# 777adfacf3Sml29623# Default build targets. 787adfacf3Sml29623# 797adfacf3Sml29623.KEEP_STATE: 807adfacf3Sml29623 817adfacf3Sml29623def: $(DEF_DEPS) 827adfacf3Sml29623 837adfacf3Sml29623all: $(ALL_DEPS) 847adfacf3Sml29623 857adfacf3Sml29623clean: $(CLEAN_DEPS) 867adfacf3Sml29623 877adfacf3Sml29623clobber: $(CLOBBER_DEPS) 887adfacf3Sml29623 897adfacf3Sml29623install: $(INSTALL_DEPS) 907adfacf3Sml29623 917adfacf3Sml29623# 927adfacf3Sml29623# Include common targets. 937adfacf3Sml29623# 947adfacf3Sml29623include $(UTSBASE)/intel/Makefile.targ 95