xref: /titanic_50/usr/src/uts/sparc/e1000g/Makefile (revision 080575042aba2197b425ebfd52061dea061a9aa1)
1*08057504Sxy150489#
2*08057504Sxy150489# CDDL HEADER START
3*08057504Sxy150489#
4*08057504Sxy150489# The contents of this file are subject to the terms of the
5*08057504Sxy150489# Common Development and Distribution License (the "License").
6*08057504Sxy150489# You may not use this file except in compliance with the License.
7*08057504Sxy150489#
8*08057504Sxy150489# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*08057504Sxy150489# or http://www.opensolaris.org/os/licensing.
10*08057504Sxy150489# See the License for the specific language governing permissions
11*08057504Sxy150489# and limitations under the License.
12*08057504Sxy150489#
13*08057504Sxy150489# When distributing Covered Code, include this CDDL HEADER in each
14*08057504Sxy150489# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*08057504Sxy150489# If applicable, add the following below this CDDL HEADER, with the
16*08057504Sxy150489# fields enclosed by brackets "[]" replaced with your own identifying
17*08057504Sxy150489# information: Portions Copyright [yyyy] [name of copyright owner]
18*08057504Sxy150489#
19*08057504Sxy150489# CDDL HEADER END
20*08057504Sxy150489#
21*08057504Sxy150489#
22*08057504Sxy150489# Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
23*08057504Sxy150489# Use is subject to license terms.
24*08057504Sxy150489#
25*08057504Sxy150489#pragma ident	"%Z%%M%	%I%	%E% SMI"
26*08057504Sxy150489#
27*08057504Sxy150489# uts/sparc/e1000g/Makefile
28*08057504Sxy150489#
29*08057504Sxy150489#	This makefile drives the production of the iprb
30*08057504Sxy150489#	network driver kernel module.
31*08057504Sxy150489#
32*08057504Sxy150489#	intel architecture dependent
33*08057504Sxy150489#
34*08057504Sxy150489
35*08057504Sxy150489#
36*08057504Sxy150489#	Path to the base of the uts directory tree (usually /usr/src/uts).
37*08057504Sxy150489#
38*08057504Sxy150489UTSBASE	= ../..
39*08057504Sxy150489
40*08057504Sxy150489#
41*08057504Sxy150489#	Define the module and object file sets.
42*08057504Sxy150489#
43*08057504Sxy150489MODULE		= e1000g
44*08057504Sxy150489OBJECTS		= $(E1000G_OBJS:%=$(OBJS_DIR)/%)
45*08057504Sxy150489LINTS		= $(E1000G_OBJS:%.o=$(LINTS_DIR)/%.ln)
46*08057504Sxy150489ROOTMODULE	= $(ROOT_DRV_DIR)/$(MODULE)
47*08057504Sxy150489CONF_SRCDIR	= $(UTSBASE)/common/io/e1000g
48*08057504Sxy150489
49*08057504Sxy150489#
50*08057504Sxy150489#	Include common rules.
51*08057504Sxy150489#
52*08057504Sxy150489include $(UTSBASE)/sparc/Makefile.sparc
53*08057504Sxy150489
54*08057504Sxy150489#
55*08057504Sxy150489#	Define targets
56*08057504Sxy150489#
57*08057504Sxy150489ALL_TARGET	= $(BINARY) $(SRC_CONFFILE)
58*08057504Sxy150489LINT_TARGET	= $(MODULE).lint
59*08057504Sxy150489INSTALL_TARGET	= $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
60*08057504Sxy150489
61*08057504Sxy150489#
62*08057504Sxy150489#	Override defaults
63*08057504Sxy150489#
64*08057504Sxy150489INC_PATH	+= -I$(CONF_SRCDIR)
65*08057504Sxy150489
66*08057504Sxy150489#
67*08057504Sxy150489# lint pass one enforcement
68*08057504Sxy150489#
69*08057504Sxy150489CFLAGS          += $(CCVERBOSE)
70*08057504Sxy150489
71*08057504Sxy150489#
72*08057504Sxy150489# Turn on doubleword alignment for 64 bit registers
73*08057504Sxy150489#
74*08057504Sxy150489CFLAGS		+= -dalign
75*08057504Sxy150489
76*08057504Sxy150489#
77*08057504Sxy150489# Driver depends on MAC & IP
78*08057504Sxy150489#
79*08057504Sxy150489LDFLAGS		+= -dy -N misc/mac -N drv/ip
80*08057504Sxy150489
81*08057504Sxy150489#
82*08057504Sxy150489#	Default build targets.
83*08057504Sxy150489#
84*08057504Sxy150489.KEEP_STATE:
85*08057504Sxy150489
86*08057504Sxy150489def:		$(DEF_DEPS)
87*08057504Sxy150489
88*08057504Sxy150489all:		$(ALL_DEPS)
89*08057504Sxy150489
90*08057504Sxy150489clean:		$(CLEAN_DEPS)
91*08057504Sxy150489
92*08057504Sxy150489clobber:	$(CLOBBER_DEPS)
93*08057504Sxy150489
94*08057504Sxy150489#
95*08057504Sxy150489# we're not linting e1000g. Will revisit
96*08057504Sxy150489#
97*08057504Sxy150489
98*08057504Sxy150489lint:
99*08057504Sxy150489
100*08057504Sxy150489modlintlib:
101*08057504Sxy150489
102*08057504Sxy150489clean.lint:	$(CLEAN_LINT_DEPS)
103*08057504Sxy150489
104*08057504Sxy150489install:	$(INSTALL_DEPS)
105*08057504Sxy150489
106*08057504Sxy150489#
107*08057504Sxy150489#	Include common targets.
108*08057504Sxy150489#
109*08057504Sxy150489include $(UTSBASE)/sparc/Makefile.targ
110*08057504Sxy150489
111