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