Makefile revision 11502:d9233a6f9baa
1296341Sdelphij#
2238405Sjkim# CDDL HEADER START
3238405Sjkim#
4238405Sjkim# The contents of this file are subject to the terms of the
5238405Sjkim# Common Development and Distribution License (the "License").
6238405Sjkim# You may not use this file except in compliance with the License.
7238405Sjkim#
8238405Sjkim# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9238405Sjkim# or http://www.opensolaris.org/os/licensing.
10238405Sjkim# See the License for the specific language governing permissions
11238405Sjkim# and limitations under the License.
12238405Sjkim#
13238405Sjkim# When distributing Covered Code, include this CDDL HEADER in each
14238405Sjkim# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15238405Sjkim# If applicable, add the following below this CDDL HEADER, with the
16238405Sjkim# fields enclosed by brackets "[]" replaced with your own identifying
17238405Sjkim# information: Portions Copyright [yyyy] [name of copyright owner]
18238405Sjkim#
19238405Sjkim# CDDL HEADER END
20238405Sjkim#
21238405Sjkim#
22238405Sjkim# Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
23238405Sjkim# Use is subject to license terms.
24238405Sjkim#
25238405Sjkim# uts/intel/igb/Makefile
26238405Sjkim#
27238405Sjkim#	This makefile drives the production of the igb
28238405Sjkim#	network driver kernel module.
29238405Sjkim#
30238405Sjkim#	intel architecture dependent
31238405Sjkim#
32238405Sjkim
33238405Sjkim#
34238405Sjkim#	Paths to the base of the uts directory trees
35238405Sjkim#
36238405SjkimUTSBASE = ../..
37238405Sjkim
38238405Sjkim#
39238405Sjkim#	Define the module and object file sets.
40238405Sjkim#
41279264SdelphijMODULE		= igb
42279264SdelphijOBJECTS		= $(IGB_OBJS:%=$(OBJS_DIR)/%)
43238405SjkimLINTS		= $(IGB_OBJS:%.o=$(LINTS_DIR)/%.ln)
44238405SjkimROOTMODULE	= $(ROOT_DRV_DIR)/$(MODULE)
45238405SjkimCONF_SRCDIR	= $(UTSBASE)/common/io/igb
46238405Sjkim
47238405Sjkim#
48238405Sjkim#	Include common rules.
49238405Sjkim#
50238405Sjkiminclude $(UTSBASE)/intel/Makefile.intel
51238405Sjkim
52238405Sjkim#
53279264Sdelphij#	Define targets
54279264Sdelphij#
55279264SdelphijALL_TARGET	= $(BINARY) $(CONFMOD)
56238405SjkimLINT_TARGET	= $(MODULE).lint
57279264SdelphijINSTALL_TARGET	= $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
58279264Sdelphij
59279264Sdelphij#
60279264Sdelphij# Driver depends on MAC
61279264Sdelphij#
62279264SdelphijLDFLAGS		+= -dy -N misc/mac
63238405Sjkim
64279264Sdelphij#
65279264Sdelphij#	Default build targets.
66279264Sdelphij#
67279264Sdelphij.KEEP_STATE:
68279264Sdelphij
69238405Sjkimdef:		$(DEF_DEPS)
70279264Sdelphij
71238405Sjkimall:		$(ALL_DEPS)
72238405Sjkim
73238405Sjkimclean:		$(CLEAN_DEPS)
74238405Sjkim
75238405Sjkimclobber:	$(CLOBBER_DEPS)
76238405Sjkim
77238405Sjkimlint:		$(LINT_DEPS)
78238405Sjkim
79238405Sjkimmodlintlib:	$(MODLINTLIB_DEPS)
80238405Sjkim
81238405Sjkimclean.lint:	$(CLEAN_LINT_DEPS)
82238405Sjkim
83238405Sjkiminstall:	$(INSTALL_DEPS)
84238405Sjkim
85238405Sjkim#
86238405Sjkim#	Include common targets.
87238405Sjkim#
88238405Sjkiminclude $(UTSBASE)/intel/Makefile.targ
89238405Sjkim