xref: /titanic_52/usr/src/uts/intel/bridge/Makefile (revision 7014882c6a3672fd0e5d60200af8643ae53c5928)
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 SrivatsavaiLINTS		= $(BRIDGE_OBJS:%.o=$(LINTS_DIR)/%.ln)
404eaa4710SRishi SrivatsavaiROOTMODULE	= $(ROOT_DRV_DIR)/$(MODULE)
414eaa4710SRishi SrivatsavaiCONF_SRCDIR	= $(UTSBASE)/common/io
424eaa4710SRishi Srivatsavai
434eaa4710SRishi Srivatsavai#
444eaa4710SRishi Srivatsavai#	Include common rules.
454eaa4710SRishi Srivatsavai#
464eaa4710SRishi Srivatsavaiinclude $(UTSBASE)/intel/Makefile.intel
474eaa4710SRishi Srivatsavai
484eaa4710SRishi Srivatsavai#
494eaa4710SRishi Srivatsavai#	Define targets
504eaa4710SRishi Srivatsavai#
514eaa4710SRishi SrivatsavaiALL_TARGET	= $(BINARY) $(SRC_CONFFILE)
524eaa4710SRishi SrivatsavaiLINT_TARGET	= $(MODULE).lint
534eaa4710SRishi SrivatsavaiINSTALL_TARGET	= $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
544eaa4710SRishi Srivatsavai
554eaa4710SRishi Srivatsavai#
564eaa4710SRishi Srivatsavai# lint pass one enforcement
574eaa4710SRishi Srivatsavai#
584eaa4710SRishi SrivatsavaiCFLAGS		+= $(CCVERBOSE)
594eaa4710SRishi Srivatsavai
60*7014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-uninitialized
61*7014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-switch
62*7014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-parentheses
63*7014882cSRichard Lowe
644eaa4710SRishi Srivatsavai#
654eaa4710SRishi Srivatsavai# Driver depends on MAC, DLS, and DLD
664eaa4710SRishi Srivatsavai#
674eaa4710SRishi SrivatsavaiLDFLAGS		+= -dy -Nmisc/mac -Nmisc/dls -Ndrv/dld -Nfs/dev
684eaa4710SRishi Srivatsavai
694eaa4710SRishi Srivatsavai#
704eaa4710SRishi Srivatsavai#	Default build targets.
714eaa4710SRishi Srivatsavai#
724eaa4710SRishi Srivatsavai.KEEP_STATE:
734eaa4710SRishi Srivatsavai
744eaa4710SRishi Srivatsavaidef:		$(DEF_DEPS)
754eaa4710SRishi Srivatsavai
764eaa4710SRishi Srivatsavaiall:		$(ALL_DEPS)
774eaa4710SRishi Srivatsavai
784eaa4710SRishi Srivatsavaiclean:		$(CLEAN_DEPS)
794eaa4710SRishi Srivatsavai
804eaa4710SRishi Srivatsavaiclobber:	$(CLOBBER_DEPS)
814eaa4710SRishi Srivatsavai
824eaa4710SRishi Srivatsavailint:		$(LINT_DEPS)
834eaa4710SRishi Srivatsavai
844eaa4710SRishi Srivatsavaimodlintlib:	$(MODLINTLIB_DEPS)
854eaa4710SRishi Srivatsavai
864eaa4710SRishi Srivatsavaiclean.lint:	$(CLEAN_LINT_DEPS)
874eaa4710SRishi Srivatsavai
884eaa4710SRishi Srivatsavaiinstall:	$(INSTALL_DEPS)
894eaa4710SRishi Srivatsavai
904eaa4710SRishi Srivatsavai#
914eaa4710SRishi Srivatsavai#	Include common targets.
924eaa4710SRishi Srivatsavai#
934eaa4710SRishi Srivatsavaiinclude $(UTSBASE)/intel/Makefile.targ
94