xref: /titanic_51/usr/src/uts/intel/pcn/Makefile (revision 438b5f69eb4f998015cc0835f19f2f80663f2f53)
1*438b5f69SJason King#
2*438b5f69SJason King# CDDL HEADER START
3*438b5f69SJason King#
4*438b5f69SJason King# The contents of this file are subject to the terms of the
5*438b5f69SJason King# Common Development and Distribution License (the "License").
6*438b5f69SJason King# You may not use this file except in compliance with the License.
7*438b5f69SJason King#
8*438b5f69SJason King# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*438b5f69SJason King# or http://www.opensolaris.org/os/licensing.
10*438b5f69SJason King# See the License for the specific language governing permissions
11*438b5f69SJason King# and limitations under the License.
12*438b5f69SJason King#
13*438b5f69SJason King# When distributing Covered Code, include this CDDL HEADER in each
14*438b5f69SJason King# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*438b5f69SJason King# If applicable, add the following below this CDDL HEADER, with the
16*438b5f69SJason King# fields enclosed by brackets "[]" replaced with your own identifying
17*438b5f69SJason King# information: Portions Copyright [yyyy] [name of copyright owner]
18*438b5f69SJason King#
19*438b5f69SJason King# CDDL HEADER END
20*438b5f69SJason King#
21*438b5f69SJason King#
22*438b5f69SJason King# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
23*438b5f69SJason King# Copyright 2011 Jason King.  All rights reserved.
24*438b5f69SJason King# Use is subject to license terms.
25*438b5f69SJason King#
26*438b5f69SJason King#	This makefile drives the production of the AMD Pcnet
27*438b5f69SJason King#	Ethernet (pcn) driver module in intel systems
28*438b5f69SJason King#
29*438b5f69SJason King
30*438b5f69SJason King#
31*438b5f69SJason King#	Path to the base of the uts directory tree (usually /usr/src/uts).
32*438b5f69SJason King#
33*438b5f69SJason KingUTSBASE		= ../..
34*438b5f69SJason King
35*438b5f69SJason King#
36*438b5f69SJason King#	Define the module and object file sets.
37*438b5f69SJason King#
38*438b5f69SJason KingMODULE		= pcn
39*438b5f69SJason KingOBJECTS		= $(PCN_OBJS:%=$(OBJS_DIR)/%)
40*438b5f69SJason KingLINTS		= $(PCN_OBJS:%.o=$(LINTS_DIR)/%.ln)
41*438b5f69SJason KingROOTMODULE	= $(ROOT_DRV_DIR)/$(MODULE)
42*438b5f69SJason King
43*438b5f69SJason King#
44*438b5f69SJason King#	Include common rules.
45*438b5f69SJason King#
46*438b5f69SJason Kinginclude $(UTSBASE)/intel/Makefile.intel
47*438b5f69SJason King
48*438b5f69SJason King#
49*438b5f69SJason King#	Define targets
50*438b5f69SJason King#
51*438b5f69SJason KingALL_TARGET	= $(BINARY)
52*438b5f69SJason KingLINT_TARGET	= $(MODULE).lint
53*438b5f69SJason KingINSTALL_TARGET	= $(BINARY) $(ROOTMODULE)
54*438b5f69SJason King
55*438b5f69SJason King#
56*438b5f69SJason King#	Overrides
57*438b5f69SJason King#
58*438b5f69SJason King
59*438b5f69SJason King#
60*438b5f69SJason King# Driver depends on GLD
61*438b5f69SJason King#
62*438b5f69SJason KingLDFLAGS		+= -dy -N misc/mac -Nmisc/mii
63*438b5f69SJason King
64*438b5f69SJason King#
65*438b5f69SJason King#	Default build targets.
66*438b5f69SJason King#
67*438b5f69SJason King.KEEP_STATE:
68*438b5f69SJason King
69*438b5f69SJason Kingdef:		$(DEF_DEPS)
70*438b5f69SJason King
71*438b5f69SJason Kingall:		$(ALL_DEPS)
72*438b5f69SJason King
73*438b5f69SJason Kingclean:		$(CLEAN_DEPS)
74*438b5f69SJason King
75*438b5f69SJason Kingclobber:	$(CLOBBER_DEPS)
76*438b5f69SJason King
77*438b5f69SJason Kinglint:		$(LINT_DEPS)
78*438b5f69SJason King
79*438b5f69SJason Kingmodlintlib:	$(MODLINTLIB_DEPS)
80*438b5f69SJason King
81*438b5f69SJason Kingclean.lint:	$(CLEAN_LINT_DEPS)
82*438b5f69SJason King
83*438b5f69SJason Kinginstall:	$(INSTALL_DEPS)
84*438b5f69SJason King
85*438b5f69SJason King#
86*438b5f69SJason King#	Include common targets.
87*438b5f69SJason King#
88*438b5f69SJason Kinginclude $(UTSBASE)/intel/Makefile.targ
89