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