xref: /titanic_44/usr/src/uts/intel/ural/Makefile (revision 40db2e2b777b79f3dd0d6d9629593a07f86b9c0a)
1*40db2e2bSzf162725#
2*40db2e2bSzf162725# CDDL HEADER START
3*40db2e2bSzf162725#
4*40db2e2bSzf162725# The contents of this file are subject to the terms of the
5*40db2e2bSzf162725# Common Development and Distribution License (the "License").
6*40db2e2bSzf162725# You may not use this file except in compliance with the License.
7*40db2e2bSzf162725#
8*40db2e2bSzf162725# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*40db2e2bSzf162725# or http://www.opensolaris.org/os/licensing.
10*40db2e2bSzf162725# See the License for the specific language governing permissions
11*40db2e2bSzf162725# and limitations under the License.
12*40db2e2bSzf162725#
13*40db2e2bSzf162725# When distributing Covered Code, include this CDDL HEADER in each
14*40db2e2bSzf162725# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*40db2e2bSzf162725# If applicable, add the following below this CDDL HEADER, with the
16*40db2e2bSzf162725# fields enclosed by brackets "[]" replaced with your own identifying
17*40db2e2bSzf162725# information: Portions Copyright [yyyy] [name of copyright owner]
18*40db2e2bSzf162725#
19*40db2e2bSzf162725# CDDL HEADER END
20*40db2e2bSzf162725#
21*40db2e2bSzf162725#
22*40db2e2bSzf162725# Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
23*40db2e2bSzf162725# Use is subject to license terms.
24*40db2e2bSzf162725#
25*40db2e2bSzf162725
26*40db2e2bSzf162725# ident	"%Z%%M%	%I%	%E% SMI"
27*40db2e2bSzf162725#
28*40db2e2bSzf162725# This makefile drives the production of the ural driver kernel module.
29*40db2e2bSzf162725#
30*40db2e2bSzf162725# i86pc architecture dependent
31*40db2e2bSzf162725#
32*40db2e2bSzf162725
33*40db2e2bSzf162725#
34*40db2e2bSzf162725#	Path to the base of the uts directory tree (usually /usr/src/uts).
35*40db2e2bSzf162725#
36*40db2e2bSzf162725UTSBASE	= ../..
37*40db2e2bSzf162725
38*40db2e2bSzf162725#
39*40db2e2bSzf162725#	Define the module and object file sets.
40*40db2e2bSzf162725#
41*40db2e2bSzf162725MODULE		= ural
42*40db2e2bSzf162725OBJECTS		= $(URAL_OBJS:%=$(OBJS_DIR)/%)
43*40db2e2bSzf162725LINTS           = $(URAL_OBJS:%.o=$(LINTS_DIR)/%.ln)
44*40db2e2bSzf162725ROOTMODULE	= $(ROOT_DRV_DIR)/$(MODULE)
45*40db2e2bSzf162725
46*40db2e2bSzf162725#
47*40db2e2bSzf162725#	Include common rules.
48*40db2e2bSzf162725#
49*40db2e2bSzf162725include $(UTSBASE)/intel/Makefile.intel
50*40db2e2bSzf162725
51*40db2e2bSzf162725#
52*40db2e2bSzf162725#	Define targets
53*40db2e2bSzf162725#
54*40db2e2bSzf162725ALL_TARGET	= $(BINARY)
55*40db2e2bSzf162725LINT_TARGET	= $(MODULE).lint
56*40db2e2bSzf162725INSTALL_TARGET	= $(BINARY) $(ROOTMODULE)
57*40db2e2bSzf162725
58*40db2e2bSzf162725#
59*40db2e2bSzf162725#	Driver depends on GLDv3 & wifi kernel support module.
60*40db2e2bSzf162725#
61*40db2e2bSzf162725LDFLAGS		+= -dy -Nmisc/mac -Nmisc/net80211 -Nmisc/usba
62*40db2e2bSzf162725
63*40db2e2bSzf162725#
64*40db2e2bSzf162725#	Default build targets.
65*40db2e2bSzf162725#
66*40db2e2bSzf162725.KEEP_STATE:
67*40db2e2bSzf162725
68*40db2e2bSzf162725def:		$(DEF_DEPS)
69*40db2e2bSzf162725
70*40db2e2bSzf162725all:		$(ALL_DEPS)
71*40db2e2bSzf162725
72*40db2e2bSzf162725clean:		$(CLEAN_DEPS)
73*40db2e2bSzf162725
74*40db2e2bSzf162725clobber:	$(CLOBBER_DEPS)
75*40db2e2bSzf162725
76*40db2e2bSzf162725lint:		$(LINT_DEPS)
77*40db2e2bSzf162725
78*40db2e2bSzf162725modlintlib:	$(MODLINTLIB_DEPS)
79*40db2e2bSzf162725
80*40db2e2bSzf162725clean.lint:	$(CLEAN_LINT_DEPS)
81*40db2e2bSzf162725
82*40db2e2bSzf162725install:	$(INSTALL_DEPS)
83*40db2e2bSzf162725
84*40db2e2bSzf162725#
85*40db2e2bSzf162725#	Include common targets.
86*40db2e2bSzf162725#
87*40db2e2bSzf162725include $(UTSBASE)/intel/Makefile.targ
88*40db2e2bSzf162725
89*40db2e2bSzf162725#
90*40db2e2bSzf162725#	If you have any special case that general
91*40db2e2bSzf162725#	Makefile rules don't serve for you, just do
92*40db2e2bSzf162725#	it yourself.
93*40db2e2bSzf162725#
94