xref: /titanic_52/usr/src/uts/intel/igb/Makefile (revision c869993e79c1eafbec61a56bf6cea848fe754c71)
1*c869993eSxy150489#
2*c869993eSxy150489# CDDL HEADER START
3*c869993eSxy150489#
4*c869993eSxy150489# The contents of this file are subject to the terms of the
5*c869993eSxy150489# Common Development and Distribution License (the "License").
6*c869993eSxy150489# You may not use this file except in compliance with the License.
7*c869993eSxy150489#
8*c869993eSxy150489# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*c869993eSxy150489# or http://www.opensolaris.org/os/licensing.
10*c869993eSxy150489# See the License for the specific language governing permissions
11*c869993eSxy150489# and limitations under the License.
12*c869993eSxy150489#
13*c869993eSxy150489# When distributing Covered Code, include this CDDL HEADER in each
14*c869993eSxy150489# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*c869993eSxy150489# If applicable, add the following below this CDDL HEADER, with the
16*c869993eSxy150489# fields enclosed by brackets "[]" replaced with your own identifying
17*c869993eSxy150489# information: Portions Copyright [yyyy] [name of copyright owner]
18*c869993eSxy150489#
19*c869993eSxy150489# CDDL HEADER END
20*c869993eSxy150489#
21*c869993eSxy150489#
22*c869993eSxy150489# Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
23*c869993eSxy150489# Use is subject to license terms.
24*c869993eSxy150489#
25*c869993eSxy150489# ident	"%Z%%M%	%I%	%E% SMI"
26*c869993eSxy150489#
27*c869993eSxy150489# uts/intel/igb/Makefile
28*c869993eSxy150489#
29*c869993eSxy150489#	This makefile drives the production of the igb
30*c869993eSxy150489#	network driver kernel module.
31*c869993eSxy150489#
32*c869993eSxy150489#	intel architecture dependent
33*c869993eSxy150489#
34*c869993eSxy150489
35*c869993eSxy150489#
36*c869993eSxy150489#	Paths to the base of the uts directory trees
37*c869993eSxy150489#
38*c869993eSxy150489UTSBASE = ../..
39*c869993eSxy150489
40*c869993eSxy150489#
41*c869993eSxy150489#	Define the module and object file sets.
42*c869993eSxy150489#
43*c869993eSxy150489MODULE		= igb
44*c869993eSxy150489OBJECTS		= $(IGB_OBJS:%=$(OBJS_DIR)/%)
45*c869993eSxy150489LINTS		= $(IGB_OBJS:%.o=$(LINTS_DIR)/%.ln)
46*c869993eSxy150489ROOTMODULE	= $(ROOT_DRV_DIR)/$(MODULE)
47*c869993eSxy150489CONF_SRCDIR	= $(UTSBASE)/common/io/igb
48*c869993eSxy150489
49*c869993eSxy150489#
50*c869993eSxy150489#	Include common rules.
51*c869993eSxy150489#
52*c869993eSxy150489include $(UTSBASE)/intel/Makefile.intel
53*c869993eSxy150489
54*c869993eSxy150489#
55*c869993eSxy150489#	Define targets
56*c869993eSxy150489#
57*c869993eSxy150489ALL_TARGET	= $(BINARY) $(CONFMOD)
58*c869993eSxy150489LINT_TARGET	= $(MODULE).lint
59*c869993eSxy150489INSTALL_TARGET	= $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
60*c869993eSxy150489
61*c869993eSxy150489#
62*c869993eSxy150489# Driver depends on MAC & IP
63*c869993eSxy150489#
64*c869993eSxy150489LDFLAGS		+= -dy -N misc/mac -N drv/ip
65*c869993eSxy150489
66*c869993eSxy150489#
67*c869993eSxy150489#	Default build targets.
68*c869993eSxy150489#
69*c869993eSxy150489.KEEP_STATE:
70*c869993eSxy150489
71*c869993eSxy150489def:		$(DEF_DEPS)
72*c869993eSxy150489
73*c869993eSxy150489all:		$(ALL_DEPS)
74*c869993eSxy150489
75*c869993eSxy150489clean:		$(CLEAN_DEPS)
76*c869993eSxy150489
77*c869993eSxy150489clobber:	$(CLOBBER_DEPS)
78*c869993eSxy150489
79*c869993eSxy150489lint:		$(LINT_DEPS)
80*c869993eSxy150489
81*c869993eSxy150489modlintlib:	$(MODLINTLIB_DEPS)
82*c869993eSxy150489
83*c869993eSxy150489clean.lint:	$(CLEAN_LINT_DEPS)
84*c869993eSxy150489
85*c869993eSxy150489install:	$(INSTALL_DEPS)
86*c869993eSxy150489
87*c869993eSxy150489#
88*c869993eSxy150489#	Include common targets.
89*c869993eSxy150489#
90*c869993eSxy150489include $(UTSBASE)/intel/Makefile.targ
91