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