xref: /illumos-gate/usr/src/uts/intel/ral/Makefile (revision 82d0151a507442720a3aea34c8925041894ab173)
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#
22ff3124efSff224033# Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
23e07d9cb8Szf162725# Use is subject to license terms.
24e07d9cb8Szf162725#
25e07d9cb8Szf162725
26e07d9cb8Szf162725#
27e07d9cb8Szf162725# This makefile drives the production of the wpi driver kernel module.
28e07d9cb8Szf162725#
29e07d9cb8Szf162725# i86pc architecture dependent
30e07d9cb8Szf162725#
31e07d9cb8Szf162725
32e07d9cb8Szf162725#
33e07d9cb8Szf162725#	Path to the base of the uts directory tree (usually /usr/src/uts).
34e07d9cb8Szf162725#
35e07d9cb8Szf162725UTSBASE	= ../..
36e07d9cb8Szf162725
37e07d9cb8Szf162725#
38e07d9cb8Szf162725#	Define the module and object file sets.
39e07d9cb8Szf162725#
40e07d9cb8Szf162725MODULE		= ral
41e07d9cb8Szf162725OBJECTS		= $(RAL_OBJS:%=$(OBJS_DIR)/%)
42e07d9cb8Szf162725ROOTMODULE	= $(ROOT_DRV_DIR)/$(MODULE)
43e07d9cb8Szf162725
44e07d9cb8Szf162725#
45e07d9cb8Szf162725#	Include common rules.
46e07d9cb8Szf162725#
47e07d9cb8Szf162725include $(UTSBASE)/intel/Makefile.intel
48e07d9cb8Szf162725
49e07d9cb8Szf162725#
50e07d9cb8Szf162725#	Define targets
51e07d9cb8Szf162725#
52e07d9cb8Szf162725ALL_TARGET	= $(BINARY)
53e07d9cb8Szf162725INSTALL_TARGET	= $(BINARY) $(ROOTMODULE)
54e07d9cb8Szf162725
55e07d9cb8Szf162725#
56e07d9cb8Szf162725#	Driver depends on GLDv3 & wifi kernel support module.
57e07d9cb8Szf162725#
58*82d0151aSRichard LoweLDFLAGS		+= -Nmisc/mac -Nmisc/net80211
59e07d9cb8Szf162725
60e07d9cb8Szf162725#
61e07d9cb8Szf162725#	Default build targets.
62e07d9cb8Szf162725#
63e07d9cb8Szf162725.KEEP_STATE:
64e07d9cb8Szf162725
65e07d9cb8Szf162725def:		$(DEF_DEPS)
66e07d9cb8Szf162725
67e07d9cb8Szf162725all:		$(ALL_DEPS)
68e07d9cb8Szf162725
69e07d9cb8Szf162725clean:		$(CLEAN_DEPS)
70e07d9cb8Szf162725
71e07d9cb8Szf162725clobber:	$(CLOBBER_DEPS)
72e07d9cb8Szf162725
73e07d9cb8Szf162725install:	$(INSTALL_DEPS)
74e07d9cb8Szf162725
75e07d9cb8Szf162725#
76e07d9cb8Szf162725#	Include common targets.
77e07d9cb8Szf162725#
78e07d9cb8Szf162725include $(UTSBASE)/intel/Makefile.targ
79e07d9cb8Szf162725
80e07d9cb8Szf162725#
81e07d9cb8Szf162725#	If you have any special case that general
82e07d9cb8Szf162725#	Makefile rules don't serve for you, just do
83e07d9cb8Szf162725#	it yourself.
84e07d9cb8Szf162725#
85