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