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