xref: /titanic_52/usr/src/uts/intel/vr/Makefile (revision d7ddd43c70ebe97a1118be9f663a54d0d1d89fe6)
1*d7ddd43cSJoost Mulders#
2*d7ddd43cSJoost Mulders# CDDL HEADER START
3*d7ddd43cSJoost Mulders#
4*d7ddd43cSJoost Mulders# The contents of this file are subject to the terms of the
5*d7ddd43cSJoost Mulders# Common Development and Distribution License (the "License").
6*d7ddd43cSJoost Mulders# You may not use this file except in compliance with the License.
7*d7ddd43cSJoost Mulders#
8*d7ddd43cSJoost Mulders# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*d7ddd43cSJoost Mulders# or http://www.opensolaris.org/os/licensing.
10*d7ddd43cSJoost Mulders# See the License for the specific language governing permissions
11*d7ddd43cSJoost Mulders# and limitations under the License.
12*d7ddd43cSJoost Mulders#
13*d7ddd43cSJoost Mulders# When distributing Covered Code, include this CDDL HEADER in each
14*d7ddd43cSJoost Mulders# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*d7ddd43cSJoost Mulders# If applicable, add the following below this CDDL HEADER, with the
16*d7ddd43cSJoost Mulders# fields enclosed by brackets "[]" replaced with your own identifying
17*d7ddd43cSJoost Mulders# information: Portions Copyright [yyyy] [name of copyright owner]
18*d7ddd43cSJoost Mulders#
19*d7ddd43cSJoost Mulders# CDDL HEADER END
20*d7ddd43cSJoost Mulders#
21*d7ddd43cSJoost Mulders#
22*d7ddd43cSJoost Mulders# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
23*d7ddd43cSJoost Mulders# Use is subject to license terms.
24*d7ddd43cSJoost Mulders#
25*d7ddd43cSJoost Mulders
26*d7ddd43cSJoost Mulders# This makefile drives the production of the VIA Rhine Ethernet
27*d7ddd43cSJoost Mulders# (vr) driver module in intel systems
28*d7ddd43cSJoost Mulders#
29*d7ddd43cSJoost Mulders
30*d7ddd43cSJoost Mulders#
31*d7ddd43cSJoost Mulders#	Path to the base of the uts directory tree (usually /usr/src/uts).
32*d7ddd43cSJoost Mulders#
33*d7ddd43cSJoost MuldersUTSBASE		= ../..
34*d7ddd43cSJoost Mulders
35*d7ddd43cSJoost Mulders#
36*d7ddd43cSJoost Mulders#	Define the module and object file sets.
37*d7ddd43cSJoost Mulders#
38*d7ddd43cSJoost MuldersMODULE		= vr
39*d7ddd43cSJoost MuldersOBJECTS		= $(VR_OBJS:%=$(OBJS_DIR)/%)
40*d7ddd43cSJoost MuldersLINTS		= $(VR_OBJS:%.o=$(LINTS_DIR)/%.ln)
41*d7ddd43cSJoost MuldersROOTMODULE	= $(ROOT_DRV_DIR)/$(MODULE)
42*d7ddd43cSJoost Mulders
43*d7ddd43cSJoost Mulders#
44*d7ddd43cSJoost Mulders#	Include common rules.
45*d7ddd43cSJoost Mulders#
46*d7ddd43cSJoost Muldersinclude $(UTSBASE)/intel/Makefile.intel
47*d7ddd43cSJoost Mulders
48*d7ddd43cSJoost Mulders#
49*d7ddd43cSJoost Mulders#	Define targets
50*d7ddd43cSJoost Mulders#
51*d7ddd43cSJoost MuldersALL_TARGET	= $(BINARY)
52*d7ddd43cSJoost MuldersLINT_TARGET	= $(MODULE).lint
53*d7ddd43cSJoost MuldersINSTALL_TARGET	= $(BINARY) $(ROOTMODULE)
54*d7ddd43cSJoost Mulders
55*d7ddd43cSJoost Mulders#
56*d7ddd43cSJoost Mulders#	Overrides
57*d7ddd43cSJoost Mulders#
58*d7ddd43cSJoost Mulders
59*d7ddd43cSJoost Mulders#
60*d7ddd43cSJoost Mulders# Driver depends on GLD
61*d7ddd43cSJoost Mulders#
62*d7ddd43cSJoost MuldersLDFLAGS		+= -dy -N misc/mac
63*d7ddd43cSJoost Mulders
64*d7ddd43cSJoost Mulders#
65*d7ddd43cSJoost Mulders#	Default build targets.
66*d7ddd43cSJoost Mulders#
67*d7ddd43cSJoost Mulders.KEEP_STATE:
68*d7ddd43cSJoost Mulders
69*d7ddd43cSJoost Muldersdef:		$(DEF_DEPS)
70*d7ddd43cSJoost Mulders
71*d7ddd43cSJoost Muldersall:		$(ALL_DEPS)
72*d7ddd43cSJoost Mulders
73*d7ddd43cSJoost Muldersclean:		$(CLEAN_DEPS)
74*d7ddd43cSJoost Mulders
75*d7ddd43cSJoost Muldersclobber:	$(CLOBBER_DEPS)
76*d7ddd43cSJoost Mulders
77*d7ddd43cSJoost Mulderslint:		$(LINT_DEPS)
78*d7ddd43cSJoost Mulders
79*d7ddd43cSJoost Muldersmodlintlib:	$(MODLINTLIB_DEPS)
80*d7ddd43cSJoost Mulders
81*d7ddd43cSJoost Muldersclean.lint:	$(CLEAN_LINT_DEPS)
82*d7ddd43cSJoost Mulders
83*d7ddd43cSJoost Muldersinstall:	$(INSTALL_DEPS)
84*d7ddd43cSJoost Mulders
85*d7ddd43cSJoost Mulders#
86*d7ddd43cSJoost Mulders#	Include common targets.
87*d7ddd43cSJoost Mulders#
88*d7ddd43cSJoost Muldersinclude $(UTSBASE)/intel/Makefile.targ
89