14eaa4710SRishi Srivatsavai# 24eaa4710SRishi Srivatsavai# CDDL HEADER START 34eaa4710SRishi Srivatsavai# 44eaa4710SRishi Srivatsavai# The contents of this file are subject to the terms of the 54eaa4710SRishi Srivatsavai# Common Development and Distribution License (the "License"). 64eaa4710SRishi Srivatsavai# You may not use this file except in compliance with the License. 74eaa4710SRishi Srivatsavai# 84eaa4710SRishi Srivatsavai# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 94eaa4710SRishi Srivatsavai# or http://www.opensolaris.org/os/licensing. 104eaa4710SRishi Srivatsavai# See the License for the specific language governing permissions 114eaa4710SRishi Srivatsavai# and limitations under the License. 124eaa4710SRishi Srivatsavai# 134eaa4710SRishi Srivatsavai# When distributing Covered Code, include this CDDL HEADER in each 144eaa4710SRishi Srivatsavai# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 154eaa4710SRishi Srivatsavai# If applicable, add the following below this CDDL HEADER, with the 164eaa4710SRishi Srivatsavai# fields enclosed by brackets "[]" replaced with your own identifying 174eaa4710SRishi Srivatsavai# information: Portions Copyright [yyyy] [name of copyright owner] 184eaa4710SRishi Srivatsavai# 194eaa4710SRishi Srivatsavai# CDDL HEADER END 204eaa4710SRishi Srivatsavai# 214eaa4710SRishi Srivatsavai# 224eaa4710SRishi Srivatsavai# Copyright 2009 Sun Microsystems, Inc. All rights reserved. 234eaa4710SRishi Srivatsavai# Use is subject to license terms. 244eaa4710SRishi Srivatsavai# 254eaa4710SRishi Srivatsavai# This makefile drives the production of the layer-two (Ethernet) 264eaa4710SRishi Srivatsavai# bridging driver module in x86/x64 systems 274eaa4710SRishi Srivatsavai# 284eaa4710SRishi Srivatsavai 294eaa4710SRishi Srivatsavai# 304eaa4710SRishi Srivatsavai# Path to the base of the uts directory tree (usually /usr/src/uts). 314eaa4710SRishi Srivatsavai# 324eaa4710SRishi SrivatsavaiUTSBASE = ../.. 334eaa4710SRishi Srivatsavai 344eaa4710SRishi Srivatsavai# 354eaa4710SRishi Srivatsavai# Define the module and object file sets. 364eaa4710SRishi Srivatsavai# 374eaa4710SRishi SrivatsavaiMODULE = bridge 384eaa4710SRishi SrivatsavaiOBJECTS = $(BRIDGE_OBJS:%=$(OBJS_DIR)/%) 394eaa4710SRishi SrivatsavaiROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE) 404eaa4710SRishi SrivatsavaiCONF_SRCDIR = $(UTSBASE)/common/io 414eaa4710SRishi Srivatsavai 424eaa4710SRishi Srivatsavai# 434eaa4710SRishi Srivatsavai# Include common rules. 444eaa4710SRishi Srivatsavai# 454eaa4710SRishi Srivatsavaiinclude $(UTSBASE)/intel/Makefile.intel 464eaa4710SRishi Srivatsavai 474eaa4710SRishi Srivatsavai# 484eaa4710SRishi Srivatsavai# Define targets 494eaa4710SRishi Srivatsavai# 504eaa4710SRishi SrivatsavaiALL_TARGET = $(BINARY) $(SRC_CONFFILE) 514eaa4710SRishi SrivatsavaiINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE) 524eaa4710SRishi Srivatsavai 534eaa4710SRishi Srivatsavai# 540aaef2f5SRichard Lowe# For now, disable these warnings; maintainers should endeavor 550aaef2f5SRichard Lowe# to investigate and remove these for maximum coverage. 560aaef2f5SRichard Lowe# Please do not carry these forward to new Makefiles. 574eaa4710SRishi Srivatsavai# 584eaa4710SRishi SrivatsavaiCFLAGS += $(CCVERBOSE) 59d3b5f563SJohn LevonCERRWARN += $(CNOWARN_UNINIT) 607014882cSRichard LoweCERRWARN += -_gcc=-Wno-switch 617014882cSRichard LoweCERRWARN += -_gcc=-Wno-parentheses 627014882cSRichard Lowe 634eaa4710SRishi Srivatsavai# 644eaa4710SRishi Srivatsavai# Driver depends on MAC, DLS, and DLD 654eaa4710SRishi Srivatsavai# 66*82d0151aSRichard LoweLDFLAGS += -Nmisc/mac -Nmisc/dls -Ndrv/dld -Nfs/dev 674eaa4710SRishi Srivatsavai 684eaa4710SRishi Srivatsavai# 694eaa4710SRishi Srivatsavai# Default build targets. 704eaa4710SRishi Srivatsavai# 714eaa4710SRishi Srivatsavai.KEEP_STATE: 724eaa4710SRishi Srivatsavai 734eaa4710SRishi Srivatsavaidef: $(DEF_DEPS) 744eaa4710SRishi Srivatsavai 754eaa4710SRishi Srivatsavaiall: $(ALL_DEPS) 764eaa4710SRishi Srivatsavai 774eaa4710SRishi Srivatsavaiclean: $(CLEAN_DEPS) 784eaa4710SRishi Srivatsavai 794eaa4710SRishi Srivatsavaiclobber: $(CLOBBER_DEPS) 804eaa4710SRishi Srivatsavai 814eaa4710SRishi Srivatsavaiinstall: $(INSTALL_DEPS) 824eaa4710SRishi Srivatsavai 834eaa4710SRishi Srivatsavai# 844eaa4710SRishi Srivatsavai# Include common targets. 854eaa4710SRishi Srivatsavai# 864eaa4710SRishi Srivatsavaiinclude $(UTSBASE)/intel/Makefile.targ 87