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