xref: /illumos-gate/usr/src/uts/intel/bridge/Makefile (revision 4eaa471005973e11a6110b69fe990530b3b95a38)
1*4eaa4710SRishi Srivatsavai#
2*4eaa4710SRishi Srivatsavai# CDDL HEADER START
3*4eaa4710SRishi Srivatsavai#
4*4eaa4710SRishi Srivatsavai# The contents of this file are subject to the terms of the
5*4eaa4710SRishi Srivatsavai# Common Development and Distribution License (the "License").
6*4eaa4710SRishi Srivatsavai# You may not use this file except in compliance with the License.
7*4eaa4710SRishi Srivatsavai#
8*4eaa4710SRishi Srivatsavai# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*4eaa4710SRishi Srivatsavai# or http://www.opensolaris.org/os/licensing.
10*4eaa4710SRishi Srivatsavai# See the License for the specific language governing permissions
11*4eaa4710SRishi Srivatsavai# and limitations under the License.
12*4eaa4710SRishi Srivatsavai#
13*4eaa4710SRishi Srivatsavai# When distributing Covered Code, include this CDDL HEADER in each
14*4eaa4710SRishi Srivatsavai# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*4eaa4710SRishi Srivatsavai# If applicable, add the following below this CDDL HEADER, with the
16*4eaa4710SRishi Srivatsavai# fields enclosed by brackets "[]" replaced with your own identifying
17*4eaa4710SRishi Srivatsavai# information: Portions Copyright [yyyy] [name of copyright owner]
18*4eaa4710SRishi Srivatsavai#
19*4eaa4710SRishi Srivatsavai# CDDL HEADER END
20*4eaa4710SRishi Srivatsavai#
21*4eaa4710SRishi Srivatsavai#
22*4eaa4710SRishi Srivatsavai# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
23*4eaa4710SRishi Srivatsavai# Use is subject to license terms.
24*4eaa4710SRishi Srivatsavai#
25*4eaa4710SRishi Srivatsavai#	This makefile drives the production of the layer-two (Ethernet)
26*4eaa4710SRishi Srivatsavai#	bridging driver module in x86/x64 systems
27*4eaa4710SRishi Srivatsavai#
28*4eaa4710SRishi Srivatsavai
29*4eaa4710SRishi Srivatsavai#
30*4eaa4710SRishi Srivatsavai#	Path to the base of the uts directory tree (usually /usr/src/uts).
31*4eaa4710SRishi Srivatsavai#
32*4eaa4710SRishi SrivatsavaiUTSBASE		= ../..
33*4eaa4710SRishi Srivatsavai
34*4eaa4710SRishi Srivatsavai#
35*4eaa4710SRishi Srivatsavai#	Define the module and object file sets.
36*4eaa4710SRishi Srivatsavai#
37*4eaa4710SRishi SrivatsavaiMODULE		= bridge
38*4eaa4710SRishi SrivatsavaiOBJECTS		= $(BRIDGE_OBJS:%=$(OBJS_DIR)/%)
39*4eaa4710SRishi SrivatsavaiLINTS		= $(BRIDGE_OBJS:%.o=$(LINTS_DIR)/%.ln)
40*4eaa4710SRishi SrivatsavaiROOTMODULE	= $(ROOT_DRV_DIR)/$(MODULE)
41*4eaa4710SRishi SrivatsavaiCONF_SRCDIR	= $(UTSBASE)/common/io
42*4eaa4710SRishi Srivatsavai
43*4eaa4710SRishi Srivatsavai#
44*4eaa4710SRishi Srivatsavai#	Include common rules.
45*4eaa4710SRishi Srivatsavai#
46*4eaa4710SRishi Srivatsavaiinclude $(UTSBASE)/intel/Makefile.intel
47*4eaa4710SRishi Srivatsavai
48*4eaa4710SRishi Srivatsavai#
49*4eaa4710SRishi Srivatsavai#	Define targets
50*4eaa4710SRishi Srivatsavai#
51*4eaa4710SRishi SrivatsavaiALL_TARGET	= $(BINARY) $(SRC_CONFFILE)
52*4eaa4710SRishi SrivatsavaiLINT_TARGET	= $(MODULE).lint
53*4eaa4710SRishi SrivatsavaiINSTALL_TARGET	= $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
54*4eaa4710SRishi Srivatsavai
55*4eaa4710SRishi Srivatsavai#
56*4eaa4710SRishi Srivatsavai# lint pass one enforcement
57*4eaa4710SRishi Srivatsavai#
58*4eaa4710SRishi SrivatsavaiCFLAGS		+= $(CCVERBOSE)
59*4eaa4710SRishi Srivatsavai
60*4eaa4710SRishi Srivatsavai#
61*4eaa4710SRishi Srivatsavai# Driver depends on MAC, DLS, and DLD
62*4eaa4710SRishi Srivatsavai#
63*4eaa4710SRishi SrivatsavaiLDFLAGS		+= -dy -Nmisc/mac -Nmisc/dls -Ndrv/dld -Nfs/dev
64*4eaa4710SRishi Srivatsavai
65*4eaa4710SRishi Srivatsavai#
66*4eaa4710SRishi Srivatsavai#	Default build targets.
67*4eaa4710SRishi Srivatsavai#
68*4eaa4710SRishi Srivatsavai.KEEP_STATE:
69*4eaa4710SRishi Srivatsavai
70*4eaa4710SRishi Srivatsavaidef:		$(DEF_DEPS)
71*4eaa4710SRishi Srivatsavai
72*4eaa4710SRishi Srivatsavaiall:		$(ALL_DEPS)
73*4eaa4710SRishi Srivatsavai
74*4eaa4710SRishi Srivatsavaiclean:		$(CLEAN_DEPS)
75*4eaa4710SRishi Srivatsavai
76*4eaa4710SRishi Srivatsavaiclobber:	$(CLOBBER_DEPS)
77*4eaa4710SRishi Srivatsavai
78*4eaa4710SRishi Srivatsavailint:		$(LINT_DEPS)
79*4eaa4710SRishi Srivatsavai
80*4eaa4710SRishi Srivatsavaimodlintlib:	$(MODLINTLIB_DEPS)
81*4eaa4710SRishi Srivatsavai
82*4eaa4710SRishi Srivatsavaiclean.lint:	$(CLEAN_LINT_DEPS)
83*4eaa4710SRishi Srivatsavai
84*4eaa4710SRishi Srivatsavaiinstall:	$(INSTALL_DEPS)
85*4eaa4710SRishi Srivatsavai
86*4eaa4710SRishi Srivatsavai#
87*4eaa4710SRishi Srivatsavai#	Include common targets.
88*4eaa4710SRishi Srivatsavai#
89*4eaa4710SRishi Srivatsavaiinclude $(UTSBASE)/intel/Makefile.targ
90