16f45ec7bSml# 26f45ec7bSml# CDDL HEADER START 36f45ec7bSml# 46f45ec7bSml# The contents of this file are subject to the terms of the 56f45ec7bSml# Common Development and Distribution License (the "License"). 66f45ec7bSml# You may not use this file except in compliance with the License. 76f45ec7bSml# 86f45ec7bSml# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 96f45ec7bSml# or http://www.opensolaris.org/os/licensing. 106f45ec7bSml# See the License for the specific language governing permissions 116f45ec7bSml# and limitations under the License. 126f45ec7bSml# 136f45ec7bSml# When distributing Covered Code, include this CDDL HEADER in each 146f45ec7bSml# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 156f45ec7bSml# If applicable, add the following below this CDDL HEADER, with the 166f45ec7bSml# fields enclosed by brackets "[]" replaced with your own identifying 176f45ec7bSml# information: Portions Copyright [yyyy] [name of copyright owner] 186f45ec7bSml# 196f45ec7bSml# CDDL HEADER END 206f45ec7bSml# 217adfacf3Sml# uts/intel/nxge/Makefile 226f45ec7bSml# 23310da939SSurya Prakki# Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved. 246f45ec7bSml# 25b6b206fcSJohn Levon# Copyright (c) 2018, Joyent, Inc. 26b6b206fcSJohn Levon 276f45ec7bSml# 286f45ec7bSml# Path to the base of the uts directory tree (usually /usr/src/uts). 296f45ec7bSml# 306f45ec7bSmlUTSBASE = ../.. 316f45ec7bSml 326f45ec7bSml# 336f45ec7bSml# Define the module and object file sets. 346f45ec7bSml# 356f45ec7bSmlMODULE = nxge 366f45ec7bSmlNXGE_OBJECTS = $(NXGE_OBJS) $(NXGE_NPI_OBJS) 376f45ec7bSmlOBJECTS = $(NXGE_OBJECTS:%=$(OBJS_DIR)/%) 387adfacf3SmlROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE) 396f45ec7bSmlCONF_SRCDIR = $(UTSBASE)/common/io/nxge 406f45ec7bSml 416f45ec7bSml# 426f45ec7bSml# Include common rules. 436f45ec7bSml# 447adfacf3Smlinclude $(UTSBASE)/intel/Makefile.intel 456f45ec7bSml 466f45ec7bSml# 476f45ec7bSml# Define targets 486f45ec7bSml# 496f45ec7bSmlALL_TARGET = $(BINARY) 506f45ec7bSmlINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE) 516f45ec7bSml 526f45ec7bSml# 536f45ec7bSml# Include nxge specific header files 546f45ec7bSml# 556f45ec7bSmlINC_PATH += -I$(UTSBASE)/common 566f45ec7bSmlINC_PATH += -I$(UTSBASE)/common/io/nxge/npi 576f45ec7bSmlINC_PATH += -I$(UTSBASE)/common/sys/nxge 58*5e90766bSRichard Lowe 596f45ec7bSml# 606f45ec7bSmlCFLAGS += -DSOLARIS 616f45ec7bSml# 627014882cSRichard Lowe 637014882cSRichard LoweCERRWARN += -_gcc=-Wno-unused-label 647014882cSRichard LoweCERRWARN += -_gcc=-Wno-parentheses 657014882cSRichard LoweCERRWARN += -_gcc=-Wno-switch 66d3b5f563SJohn LevonCERRWARN += $(CNOWARN_UNINIT) 677014882cSRichard LoweCERRWARN += -_gcc=-Wno-type-limits 687014882cSRichard Lowe 694df3b64dSToomas Soome$(OBJS_DIR)/nxge_hw.o := SMOFF += deref_check 704df3b64dSToomas Soome$(OBJS_DIR)/npi_txc.o := SMOFF += shift_to_zero 71b6b206fcSJohn Levon 726f45ec7bSml# 736f45ec7bSml# Driver depends on mac & IP 746f45ec7bSml# 7582d0151aSRichard LoweLDFLAGS += -N misc/mac -N drv/ip 766f45ec7bSml 776f45ec7bSml# 786f45ec7bSml# Default build targets. 796f45ec7bSml# 806f45ec7bSml.KEEP_STATE: 816f45ec7bSml 826f45ec7bSmldef: $(DEF_DEPS) 836f45ec7bSml 846f45ec7bSmlall: $(ALL_DEPS) 856f45ec7bSml 866f45ec7bSmlclean: $(CLEAN_DEPS) 876f45ec7bSml 886f45ec7bSmlclobber: $(CLOBBER_DEPS) 896f45ec7bSml 906f45ec7bSmlinstall: $(INSTALL_DEPS) 916f45ec7bSml 926f45ec7bSml# 936f45ec7bSml# Include common targets. 946f45ec7bSml# 957adfacf3Smlinclude $(UTSBASE)/intel/Makefile.targ 96