xref: /illumos-gate/usr/src/uts/intel/afe/Makefile (revision 1959748cbddf37d4734c107dadfa449e076045e3)
1*1959748cSgd78059#
2*1959748cSgd78059# CDDL HEADER START
3*1959748cSgd78059#
4*1959748cSgd78059# The contents of this file are subject to the terms of the
5*1959748cSgd78059# Common Development and Distribution License (the "License").
6*1959748cSgd78059# You may not use this file except in compliance with the License.
7*1959748cSgd78059#
8*1959748cSgd78059# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*1959748cSgd78059# or http://www.opensolaris.org/os/licensing.
10*1959748cSgd78059# See the License for the specific language governing permissions
11*1959748cSgd78059# and limitations under the License.
12*1959748cSgd78059#
13*1959748cSgd78059# When distributing Covered Code, include this CDDL HEADER in each
14*1959748cSgd78059# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*1959748cSgd78059# If applicable, add the following below this CDDL HEADER, with the
16*1959748cSgd78059# fields enclosed by brackets "[]" replaced with your own identifying
17*1959748cSgd78059# information: Portions Copyright [yyyy] [name of copyright owner]
18*1959748cSgd78059#
19*1959748cSgd78059# CDDL HEADER END
20*1959748cSgd78059#
21*1959748cSgd78059#
22*1959748cSgd78059# Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
23*1959748cSgd78059# Use is subject to license terms.
24*1959748cSgd78059#
25*1959748cSgd78059#ident	"%Z%%M%	%I%	%E% SMI"
26*1959748cSgd78059#
27*1959748cSgd78059#	This makefile drives the production of the ADMtek
28*1959748cSgd78059#	Ethernet (AFE) driver module in intel systems
29*1959748cSgd78059#
30*1959748cSgd78059
31*1959748cSgd78059#
32*1959748cSgd78059#	Path to the base of the uts directory tree (usually /usr/src/uts).
33*1959748cSgd78059#
34*1959748cSgd78059UTSBASE		= ../..
35*1959748cSgd78059
36*1959748cSgd78059#
37*1959748cSgd78059#	Define the module and object file sets.
38*1959748cSgd78059#
39*1959748cSgd78059MODULE		= afe
40*1959748cSgd78059OBJECTS		= $(AFE_OBJS:%=$(OBJS_DIR)/%)
41*1959748cSgd78059LINTS		= $(AFE_OBJS:%.o=$(LINTS_DIR)/%.ln)
42*1959748cSgd78059ROOTMODULE	= $(ROOT_DRV_DIR)/$(MODULE)
43*1959748cSgd78059
44*1959748cSgd78059#
45*1959748cSgd78059#	Include common rules.
46*1959748cSgd78059#
47*1959748cSgd78059include $(UTSBASE)/intel/Makefile.intel
48*1959748cSgd78059
49*1959748cSgd78059#
50*1959748cSgd78059#	Define targets
51*1959748cSgd78059#
52*1959748cSgd78059ALL_TARGET	= $(BINARY)
53*1959748cSgd78059LINT_TARGET	= $(MODULE).lint
54*1959748cSgd78059INSTALL_TARGET	= $(BINARY) $(ROOTMODULE)
55*1959748cSgd78059
56*1959748cSgd78059#
57*1959748cSgd78059#	Overrides
58*1959748cSgd78059#
59*1959748cSgd78059
60*1959748cSgd78059#
61*1959748cSgd78059# Driver depends on GLD
62*1959748cSgd78059#
63*1959748cSgd78059LDFLAGS		+= -dy -N misc/mac
64*1959748cSgd78059
65*1959748cSgd78059#
66*1959748cSgd78059#	Default build targets.
67*1959748cSgd78059#
68*1959748cSgd78059.KEEP_STATE:
69*1959748cSgd78059
70*1959748cSgd78059def:		$(DEF_DEPS)
71*1959748cSgd78059
72*1959748cSgd78059all:		$(ALL_DEPS)
73*1959748cSgd78059
74*1959748cSgd78059clean:		$(CLEAN_DEPS)
75*1959748cSgd78059
76*1959748cSgd78059clobber:	$(CLOBBER_DEPS)
77*1959748cSgd78059
78*1959748cSgd78059lint:		$(LINT_DEPS)
79*1959748cSgd78059
80*1959748cSgd78059modlintlib:	$(MODLINTLIB_DEPS)
81*1959748cSgd78059
82*1959748cSgd78059clean.lint:	$(CLEAN_LINT_DEPS)
83*1959748cSgd78059
84*1959748cSgd78059install:	$(INSTALL_DEPS)
85*1959748cSgd78059
86*1959748cSgd78059#
87*1959748cSgd78059#	Include common targets.
88*1959748cSgd78059#
89*1959748cSgd78059include $(UTSBASE)/intel/Makefile.targ
90