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