xref: /titanic_51/usr/src/uts/intel/pcn/Makefile (revision 7014882c6a3672fd0e5d60200af8643ae53c5928)
1438b5f69SJason King#
2438b5f69SJason King# CDDL HEADER START
3438b5f69SJason King#
4438b5f69SJason King# The contents of this file are subject to the terms of the
5438b5f69SJason King# Common Development and Distribution License (the "License").
6438b5f69SJason King# You may not use this file except in compliance with the License.
7438b5f69SJason King#
8438b5f69SJason King# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9438b5f69SJason King# or http://www.opensolaris.org/os/licensing.
10438b5f69SJason King# See the License for the specific language governing permissions
11438b5f69SJason King# and limitations under the License.
12438b5f69SJason King#
13438b5f69SJason King# When distributing Covered Code, include this CDDL HEADER in each
14438b5f69SJason King# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15438b5f69SJason King# If applicable, add the following below this CDDL HEADER, with the
16438b5f69SJason King# fields enclosed by brackets "[]" replaced with your own identifying
17438b5f69SJason King# information: Portions Copyright [yyyy] [name of copyright owner]
18438b5f69SJason King#
19438b5f69SJason King# CDDL HEADER END
20438b5f69SJason King#
21438b5f69SJason King#
22438b5f69SJason King# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
23438b5f69SJason King# Copyright 2011 Jason King.  All rights reserved.
24438b5f69SJason King# Use is subject to license terms.
25438b5f69SJason King#
26438b5f69SJason King#	This makefile drives the production of the AMD Pcnet
27438b5f69SJason King#	Ethernet (pcn) driver module in intel systems
28438b5f69SJason King#
29438b5f69SJason King
30438b5f69SJason King#
31438b5f69SJason King#	Path to the base of the uts directory tree (usually /usr/src/uts).
32438b5f69SJason King#
33438b5f69SJason KingUTSBASE		= ../..
34438b5f69SJason King
35438b5f69SJason King#
36438b5f69SJason King#	Define the module and object file sets.
37438b5f69SJason King#
38438b5f69SJason KingMODULE		= pcn
39438b5f69SJason KingOBJECTS		= $(PCN_OBJS:%=$(OBJS_DIR)/%)
40438b5f69SJason KingLINTS		= $(PCN_OBJS:%.o=$(LINTS_DIR)/%.ln)
41438b5f69SJason KingROOTMODULE	= $(ROOT_DRV_DIR)/$(MODULE)
42438b5f69SJason King
43438b5f69SJason King#
44438b5f69SJason King#	Include common rules.
45438b5f69SJason King#
46438b5f69SJason Kinginclude $(UTSBASE)/intel/Makefile.intel
47438b5f69SJason King
48438b5f69SJason King#
49438b5f69SJason King#	Define targets
50438b5f69SJason King#
51438b5f69SJason KingALL_TARGET	= $(BINARY)
52438b5f69SJason KingLINT_TARGET	= $(MODULE).lint
53438b5f69SJason KingINSTALL_TARGET	= $(BINARY) $(ROOTMODULE)
54438b5f69SJason King
55438b5f69SJason King#
56438b5f69SJason King#	Overrides
57438b5f69SJason King#
58438b5f69SJason King
59*7014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-parentheses
60*7014882cSRichard Lowe
61438b5f69SJason King#
62438b5f69SJason King# Driver depends on GLD
63438b5f69SJason King#
64438b5f69SJason KingLDFLAGS		+= -dy -N misc/mac -Nmisc/mii
65438b5f69SJason King
66438b5f69SJason King#
67438b5f69SJason King#	Default build targets.
68438b5f69SJason King#
69438b5f69SJason King.KEEP_STATE:
70438b5f69SJason King
71438b5f69SJason Kingdef:		$(DEF_DEPS)
72438b5f69SJason King
73438b5f69SJason Kingall:		$(ALL_DEPS)
74438b5f69SJason King
75438b5f69SJason Kingclean:		$(CLEAN_DEPS)
76438b5f69SJason King
77438b5f69SJason Kingclobber:	$(CLOBBER_DEPS)
78438b5f69SJason King
79438b5f69SJason Kinglint:		$(LINT_DEPS)
80438b5f69SJason King
81438b5f69SJason Kingmodlintlib:	$(MODLINTLIB_DEPS)
82438b5f69SJason King
83438b5f69SJason Kingclean.lint:	$(CLEAN_LINT_DEPS)
84438b5f69SJason King
85438b5f69SJason Kinginstall:	$(INSTALL_DEPS)
86438b5f69SJason King
87438b5f69SJason King#
88438b5f69SJason King#	Include common targets.
89438b5f69SJason King#
90438b5f69SJason Kinginclude $(UTSBASE)/intel/Makefile.targ
91