xref: /illumos-gate/usr/src/uts/intel/atge/Makefile (revision 0aaef2f5)
1015a6ef6SSaurabh Misra#
2015a6ef6SSaurabh Misra# CDDL HEADER START
3015a6ef6SSaurabh Misra#
4015a6ef6SSaurabh Misra# The contents of this file are subject to the terms of the
5015a6ef6SSaurabh Misra# Common Development and Distribution License (the "License").
6015a6ef6SSaurabh Misra# You may not use this file except in compliance with the License.
7015a6ef6SSaurabh Misra#
8015a6ef6SSaurabh Misra# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9015a6ef6SSaurabh Misra# or http://www.opensolaris.org/os/licensing.
10015a6ef6SSaurabh Misra# See the License for the specific language governing permissions
11015a6ef6SSaurabh Misra# and limitations under the License.
12015a6ef6SSaurabh Misra#
13015a6ef6SSaurabh Misra# When distributing Covered Code, include this CDDL HEADER in each
14015a6ef6SSaurabh Misra# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15015a6ef6SSaurabh Misra# If applicable, add the following below this CDDL HEADER, with the
16015a6ef6SSaurabh Misra# fields enclosed by brackets "[]" replaced with your own identifying
17015a6ef6SSaurabh Misra# information: Portions Copyright [yyyy] [name of copyright owner]
18015a6ef6SSaurabh Misra#
19015a6ef6SSaurabh Misra# CDDL HEADER END
20015a6ef6SSaurabh Misra#
21015a6ef6SSaurabh Misra#
22015a6ef6SSaurabh Misra# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
23015a6ef6SSaurabh Misra# Use is subject to license terms.
24015a6ef6SSaurabh Misra#
25015a6ef6SSaurabh Misra
26015a6ef6SSaurabh Misra# This makefile drives the production of the Atheros/Attansic Fast/1Gb Ethernet
27015a6ef6SSaurabh Misra# driver module in intel systems
28015a6ef6SSaurabh Misra#
29015a6ef6SSaurabh Misra
30015a6ef6SSaurabh Misra#
31015a6ef6SSaurabh Misra#	Path to the base of the uts directory tree (usually /usr/src/uts).
32015a6ef6SSaurabh Misra#
33015a6ef6SSaurabh MisraUTSBASE		= ../..
34015a6ef6SSaurabh Misra
35015a6ef6SSaurabh Misra#
36015a6ef6SSaurabh Misra#	Define the module and object file sets.
37015a6ef6SSaurabh Misra#
38015a6ef6SSaurabh MisraMODULE		= atge
39015a6ef6SSaurabh MisraOBJECTS		= $(ATGE_OBJS:%=$(OBJS_DIR)/%)
40015a6ef6SSaurabh MisraROOTMODULE	= $(ROOT_DRV_DIR)/$(MODULE)
41015a6ef6SSaurabh Misra
42015a6ef6SSaurabh Misra#
43015a6ef6SSaurabh Misra#	Include common rules.
44015a6ef6SSaurabh Misra#
45015a6ef6SSaurabh Misrainclude $(UTSBASE)/intel/Makefile.intel
46015a6ef6SSaurabh Misra
47015a6ef6SSaurabh Misra#
48015a6ef6SSaurabh Misra#	Define targets
49015a6ef6SSaurabh Misra#
50015a6ef6SSaurabh MisraALL_TARGET	= $(BINARY)
51015a6ef6SSaurabh MisraINSTALL_TARGET	= $(BINARY) $(ROOTMODULE)
52015a6ef6SSaurabh Misra
53015a6ef6SSaurabh Misra#
54015a6ef6SSaurabh Misra#	Overrides
55015a6ef6SSaurabh Misra#
56015a6ef6SSaurabh Misra
57*d3b5f563SJohn LevonCERRWARN	+= $(CNOWARN_UNINIT)
587014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-switch
597014882cSRichard Lowe
60015a6ef6SSaurabh Misra#
61015a6ef6SSaurabh Misra# Driver depends on GLD
62015a6ef6SSaurabh Misra#
63015a6ef6SSaurabh MisraLDFLAGS		+= -dy -N misc/mac -Nmisc/mii
64015a6ef6SSaurabh Misra
65015a6ef6SSaurabh Misra#
66015a6ef6SSaurabh Misra#	Default build targets.
67015a6ef6SSaurabh Misra#
68015a6ef6SSaurabh Misra.KEEP_STATE:
69015a6ef6SSaurabh Misra
70015a6ef6SSaurabh Misradef:		$(DEF_DEPS)
71015a6ef6SSaurabh Misra
72015a6ef6SSaurabh Misraall:		$(ALL_DEPS)
73015a6ef6SSaurabh Misra
74015a6ef6SSaurabh Misraclean:		$(CLEAN_DEPS)
75015a6ef6SSaurabh Misra
76015a6ef6SSaurabh Misraclobber:	$(CLOBBER_DEPS)
77015a6ef6SSaurabh Misra
78015a6ef6SSaurabh Misrainstall:	$(INSTALL_DEPS)
79015a6ef6SSaurabh Misra
80015a6ef6SSaurabh Misra#
81015a6ef6SSaurabh Misra#	Include common targets.
82015a6ef6SSaurabh Misra#
83015a6ef6SSaurabh Misrainclude $(UTSBASE)/intel/Makefile.targ
84