xref: /titanic_44/usr/src/uts/intel/iwk/Makefile (revision c533a883a71cff9ff32df1c53c31201e1cbf371f)
1*c533a883Shx147065#
2*c533a883Shx147065# CDDL HEADER START
3*c533a883Shx147065#
4*c533a883Shx147065# The contents of this file are subject to the terms of the
5*c533a883Shx147065# Common Development and Distribution License (the "License").
6*c533a883Shx147065# You may not use this file except in compliance with the License.
7*c533a883Shx147065#
8*c533a883Shx147065# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*c533a883Shx147065# or http://www.opensolaris.org/os/licensing.
10*c533a883Shx147065# See the License for the specific language governing permissions
11*c533a883Shx147065# and limitations under the License.
12*c533a883Shx147065#
13*c533a883Shx147065# When distributing Covered Code, include this CDDL HEADER in each
14*c533a883Shx147065# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*c533a883Shx147065# If applicable, add the following below this CDDL HEADER, with the
16*c533a883Shx147065# fields enclosed by brackets "[]" replaced with your own identifying
17*c533a883Shx147065# information: Portions Copyright [yyyy] [name of copyright owner]
18*c533a883Shx147065#
19*c533a883Shx147065# CDDL HEADER END
20*c533a883Shx147065#
21*c533a883Shx147065#
22*c533a883Shx147065# Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
23*c533a883Shx147065# Use is subject to license terms.
24*c533a883Shx147065#
25*c533a883Shx147065
26*c533a883Shx147065# ident	"%Z%%M%	%I%	%E% SMI"
27*c533a883Shx147065#
28*c533a883Shx147065# This makefile drives the production of the iwk driver kernel module.
29*c533a883Shx147065#
30*c533a883Shx147065# i86pc architecture dependent
31*c533a883Shx147065#
32*c533a883Shx147065
33*c533a883Shx147065#
34*c533a883Shx147065#	Path to the base of the uts directory tree (usually /usr/src/uts).
35*c533a883Shx147065#
36*c533a883Shx147065UTSBASE	= ../..
37*c533a883Shx147065
38*c533a883Shx147065#
39*c533a883Shx147065#	Define the module and object file sets.
40*c533a883Shx147065#
41*c533a883Shx147065MODULE		= iwk
42*c533a883Shx147065OBJECTS		= $(IWK_OBJS:%=$(OBJS_DIR)/%)
43*c533a883Shx147065LINTS		= $(IWK_OBJS:%.o=$(LINTS_DIR)/%.ln)
44*c533a883Shx147065ROOTMODULE	= $(ROOT_DRV_DIR)/$(MODULE)
45*c533a883Shx147065
46*c533a883Shx147065#
47*c533a883Shx147065#	Include common rules.
48*c533a883Shx147065#
49*c533a883Shx147065include $(UTSBASE)/intel/Makefile.intel
50*c533a883Shx147065
51*c533a883Shx147065#
52*c533a883Shx147065#	Define targets
53*c533a883Shx147065#
54*c533a883Shx147065ALL_TARGET	= $(BINARY) $(CONFMOD) $(ITUMOD)
55*c533a883Shx147065LINT_TARGET	= $(MODULE).lint
56*c533a883Shx147065INSTALL_TARGET	= $(BINARY) $(ROOTMODULE)
57*c533a883Shx147065
58*c533a883Shx147065#
59*c533a883Shx147065#	Overrides
60*c533a883Shx147065#
61*c533a883Shx147065LINTTAGS	+= -erroff=E_BAD_PTR_CAST_ALIGN
62*c533a883Shx147065LINTTAGS	+= -erroff=E_PTRDIFF_OVERFLOW
63*c533a883Shx147065
64*c533a883Shx147065CPPFLAGS	+= -I. -D_KERNEL -DIWL=4965
65*c533a883Shx147065
66*c533a883Shx147065LDFLAGS         += -dy -Nmisc/mac -Nmisc/net80211 -Ndrv/random -Ndrv/ip
67*c533a883Shx147065
68*c533a883Shx147065#
69*c533a883Shx147065#	Default build targets.
70*c533a883Shx147065#
71*c533a883Shx147065.KEEP_STATE:
72*c533a883Shx147065
73*c533a883Shx147065def:		$(DEF_DEPS)
74*c533a883Shx147065
75*c533a883Shx147065all:		$(ALL_DEPS)
76*c533a883Shx147065
77*c533a883Shx147065clean:		$(CLEAN_DEPS)
78*c533a883Shx147065
79*c533a883Shx147065clobber:	$(CLOBBER_DEPS)
80*c533a883Shx147065
81*c533a883Shx147065lint:		$(LINT_DEPS)
82*c533a883Shx147065
83*c533a883Shx147065modlintlib:	$(MODLINTLIB_DEPS)
84*c533a883Shx147065
85*c533a883Shx147065clean.lint:	$(CLEAN_LINT_DEPS)
86*c533a883Shx147065
87*c533a883Shx147065install:	$(INSTALL_DEPS)
88*c533a883Shx147065
89*c533a883Shx147065#
90*c533a883Shx147065#	Include common targets.
91*c533a883Shx147065#
92*c533a883Shx147065include $(UTSBASE)/intel/Makefile.targ
93