19a5557fdSlucy wang - Sun Microsystems - Beijing China# 29a5557fdSlucy wang - Sun Microsystems - Beijing China# CDDL HEADER START 39a5557fdSlucy wang - Sun Microsystems - Beijing China# 49a5557fdSlucy wang - Sun Microsystems - Beijing China# The contents of this file are subject to the terms of the 59a5557fdSlucy wang - Sun Microsystems - Beijing China# Common Development and Distribution License (the "License"). 69a5557fdSlucy wang - Sun Microsystems - Beijing China# You may not use this file except in compliance with the License. 79a5557fdSlucy wang - Sun Microsystems - Beijing China# 89a5557fdSlucy wang - Sun Microsystems - Beijing China# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 99a5557fdSlucy wang - Sun Microsystems - Beijing China# or http://www.opensolaris.org/os/licensing. 109a5557fdSlucy wang - Sun Microsystems - Beijing China# See the License for the specific language governing permissions 119a5557fdSlucy wang - Sun Microsystems - Beijing China# and limitations under the License. 129a5557fdSlucy wang - Sun Microsystems - Beijing China# 139a5557fdSlucy wang - Sun Microsystems - Beijing China# When distributing Covered Code, include this CDDL HEADER in each 149a5557fdSlucy wang - Sun Microsystems - Beijing China# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 159a5557fdSlucy wang - Sun Microsystems - Beijing China# If applicable, add the following below this CDDL HEADER, with the 169a5557fdSlucy wang - Sun Microsystems - Beijing China# fields enclosed by brackets "[]" replaced with your own identifying 179a5557fdSlucy wang - Sun Microsystems - Beijing China# information: Portions Copyright [yyyy] [name of copyright owner] 189a5557fdSlucy wang - Sun Microsystems - Beijing China# 199a5557fdSlucy wang - Sun Microsystems - Beijing China# CDDL HEADER END 209a5557fdSlucy wang - Sun Microsystems - Beijing China# 219a5557fdSlucy wang - Sun Microsystems - Beijing China 229a5557fdSlucy wang - Sun Microsystems - Beijing China# 23dda0720aSjing xiong ERI-SUN# Copyright 2009 Sun Microsystems, Inc. All rights reserved. 249a5557fdSlucy wang - Sun Microsystems - Beijing China# Use is subject to license terms. 259a5557fdSlucy wang - Sun Microsystems - Beijing China# 26b6b206fcSJohn Levon# Copyright (c) 2018, Joyent, Inc. 279a5557fdSlucy wang - Sun Microsystems - Beijing China 289a5557fdSlucy wang - Sun Microsystems - Beijing China# 299a5557fdSlucy wang - Sun Microsystems - Beijing China# Paths to the base of the uts directory trees 309a5557fdSlucy wang - Sun Microsystems - Beijing China# 319a5557fdSlucy wang - Sun Microsystems - Beijing ChinaUTSBASE = ../.. 329a5557fdSlucy wang - Sun Microsystems - Beijing China 339a5557fdSlucy wang - Sun Microsystems - Beijing China# 349a5557fdSlucy wang - Sun Microsystems - Beijing China# Define the module and object file sets. 359a5557fdSlucy wang - Sun Microsystems - Beijing China# 369a5557fdSlucy wang - Sun Microsystems - Beijing ChinaMODULE = ntxn 379a5557fdSlucy wang - Sun Microsystems - Beijing ChinaOBJECTS = $(NTXN_OBJS:%=$(OBJS_DIR)/%) 389a5557fdSlucy wang - Sun Microsystems - Beijing ChinaROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE) 39dda0720aSjing xiong ERI-SUNCONF_SRCDIR = $(UTSBASE)/common/io/ntxn 409a5557fdSlucy wang - Sun Microsystems - Beijing China 419a5557fdSlucy wang - Sun Microsystems - Beijing China# 429a5557fdSlucy wang - Sun Microsystems - Beijing China# Include common rules. 439a5557fdSlucy wang - Sun Microsystems - Beijing China# 449a5557fdSlucy wang - Sun Microsystems - Beijing Chinainclude $(UTSBASE)/intel/Makefile.intel 459a5557fdSlucy wang - Sun Microsystems - Beijing China 469a5557fdSlucy wang - Sun Microsystems - Beijing China# 479a5557fdSlucy wang - Sun Microsystems - Beijing China# Define targets 489a5557fdSlucy wang - Sun Microsystems - Beijing China# 49dda0720aSjing xiong ERI-SUNALL_TARGET = $(BINARY) $(SRC_CONFILE) 50dda0720aSjing xiong ERI-SUNINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE) 519a5557fdSlucy wang - Sun Microsystems - Beijing China 52dda0720aSjing xiong ERI-SUNINC_PATH += -I$(CONF_SRCDIR) 539a5557fdSlucy wang - Sun Microsystems - Beijing China 549a5557fdSlucy wang - Sun Microsystems - Beijing ChinaCFLAGS += -DSOLARIS11 -xO4 559a5557fdSlucy wang - Sun Microsystems - Beijing ChinaCFLAGS64 += -DSOLARIS11 -xO -I./ 569a5557fdSlucy wang - Sun Microsystems - Beijing China 579a5557fdSlucy wang - Sun Microsystems - Beijing China# 589a5557fdSlucy wang - Sun Microsystems - Beijing China# Driver depends on MAC & IP 599a5557fdSlucy wang - Sun Microsystems - Beijing China# 60*82d0151aSRichard LoweLDFLAGS += -N misc/mac -N drv/ip 619a5557fdSlucy wang - Sun Microsystems - Beijing China 629a5557fdSlucy wang - Sun Microsystems - Beijing China# 630aaef2f5SRichard Lowe# For now, disable these warnings; maintainers should endeavor 640aaef2f5SRichard Lowe# to investigate and remove these for maximum coverage. 650aaef2f5SRichard Lowe# Please do not carry these forward to new Makefiles. 660aaef2f5SRichard Lowe# 677014882cSRichard LoweCERRWARN += -_gcc=-Wno-parentheses 687014882cSRichard LoweCERRWARN += -_gcc=-Wno-unused-label 697014882cSRichard LoweCERRWARN += -_gcc=-Wno-type-limits 707014882cSRichard Lowe 71b6b206fcSJohn Levon# needs work 72b6b206fcSJohn LevonSMOFF += all_func_returns 73b6b206fcSJohn Levon 749a5557fdSlucy wang - Sun Microsystems - Beijing China# 759a5557fdSlucy wang - Sun Microsystems - Beijing China# 769a5557fdSlucy wang - Sun Microsystems - Beijing China# Default build targets. 779a5557fdSlucy wang - Sun Microsystems - Beijing China# 789a5557fdSlucy wang - Sun Microsystems - Beijing China.KEEP_STATE: 799a5557fdSlucy wang - Sun Microsystems - Beijing China 809a5557fdSlucy wang - Sun Microsystems - Beijing Chinadef: $(DEF_DEPS) 819a5557fdSlucy wang - Sun Microsystems - Beijing China 829a5557fdSlucy wang - Sun Microsystems - Beijing Chinaall: $(ALL_DEPS) 839a5557fdSlucy wang - Sun Microsystems - Beijing China 849a5557fdSlucy wang - Sun Microsystems - Beijing Chinaclean: $(CLEAN_DEPS) 859a5557fdSlucy wang - Sun Microsystems - Beijing China 869a5557fdSlucy wang - Sun Microsystems - Beijing Chinaclobber: $(CLOBBER_DEPS) 879a5557fdSlucy wang - Sun Microsystems - Beijing China 889a5557fdSlucy wang - Sun Microsystems - Beijing Chinainstall: $(INSTALL_DEPS) 899a5557fdSlucy wang - Sun Microsystems - Beijing China 909a5557fdSlucy wang - Sun Microsystems - Beijing China# 919a5557fdSlucy wang - Sun Microsystems - Beijing China# Include common targets. 929a5557fdSlucy wang - Sun Microsystems - Beijing China# 939a5557fdSlucy wang - Sun Microsystems - Beijing Chinainclude $(UTSBASE)/intel/Makefile.targ 94