xref: /illumos-gate/usr/src/uts/intel/wpi/Makefile (revision 82d0151a507442720a3aea34c8925041894ab173)
184f7a9b9Shx147065#
284f7a9b9Shx147065# CDDL HEADER START
384f7a9b9Shx147065#
484f7a9b9Shx147065# The contents of this file are subject to the terms of the
584f7a9b9Shx147065# Common Development and Distribution License (the "License").
684f7a9b9Shx147065# You may not use this file except in compliance with the License.
784f7a9b9Shx147065#
884f7a9b9Shx147065# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
984f7a9b9Shx147065# or http://www.opensolaris.org/os/licensing.
1084f7a9b9Shx147065# See the License for the specific language governing permissions
1184f7a9b9Shx147065# and limitations under the License.
1284f7a9b9Shx147065#
1384f7a9b9Shx147065# When distributing Covered Code, include this CDDL HEADER in each
1484f7a9b9Shx147065# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1584f7a9b9Shx147065# If applicable, add the following below this CDDL HEADER, with the
1684f7a9b9Shx147065# fields enclosed by brackets "[]" replaced with your own identifying
1784f7a9b9Shx147065# information: Portions Copyright [yyyy] [name of copyright owner]
1884f7a9b9Shx147065#
1984f7a9b9Shx147065# CDDL HEADER END
2084f7a9b9Shx147065#
2184f7a9b9Shx147065#
2222eb7cb5Sgd78059# Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
2384f7a9b9Shx147065# Use is subject to license terms.
2484f7a9b9Shx147065#
2584f7a9b9Shx147065
2684f7a9b9Shx147065#
2784f7a9b9Shx147065# This makefile drives the production of the wpi driver kernel module.
2884f7a9b9Shx147065#
2984f7a9b9Shx147065# i86pc architecture dependent
3084f7a9b9Shx147065#
3184f7a9b9Shx147065
3284f7a9b9Shx147065#
3384f7a9b9Shx147065#	Path to the base of the uts directory tree (usually /usr/src/uts).
3484f7a9b9Shx147065#
3584f7a9b9Shx147065UTSBASE	= ../..
3684f7a9b9Shx147065
3784f7a9b9Shx147065#
3884f7a9b9Shx147065#	Define the module and object file sets.
3984f7a9b9Shx147065#
4084f7a9b9Shx147065MODULE		= wpi
4184f7a9b9Shx147065OBJECTS		= $(WPI_OBJS:%=$(OBJS_DIR)/%)
4284f7a9b9Shx147065ROOTMODULE	= $(ROOT_DRV_DIR)/$(MODULE)
4384f7a9b9Shx147065
4484f7a9b9Shx147065#
4584f7a9b9Shx147065#	Include common rules.
4684f7a9b9Shx147065#
4784f7a9b9Shx147065include $(UTSBASE)/intel/Makefile.intel
4884f7a9b9Shx147065
4984f7a9b9Shx147065#
5084f7a9b9Shx147065#	Define targets
5184f7a9b9Shx147065#
5284f7a9b9Shx147065ALL_TARGET	= $(BINARY) $(CONFMOD) $(ITUMOD)
5384f7a9b9Shx147065INSTALL_TARGET	= $(BINARY) $(ROOTMODULE)
5484f7a9b9Shx147065
5584f7a9b9Shx147065#
5684f7a9b9Shx147065#	Overrides
5784f7a9b9Shx147065#
5884f7a9b9Shx147065
5984f7a9b9Shx147065CPPFLAGS	+= -I. -D_KERNEL
6084f7a9b9Shx147065
61*82d0151aSRichard LoweLDFLAGS         += -Nmisc/mac -Nmisc/net80211 -Ndrv/random -Ndrv/ip
6284f7a9b9Shx147065
6384f7a9b9Shx147065#
6484f7a9b9Shx147065#	Default build targets.
6584f7a9b9Shx147065#
6684f7a9b9Shx147065.KEEP_STATE:
6784f7a9b9Shx147065
6884f7a9b9Shx147065def:		$(DEF_DEPS)
6984f7a9b9Shx147065
7084f7a9b9Shx147065all:		$(ALL_DEPS)
7184f7a9b9Shx147065
7284f7a9b9Shx147065clean:		$(CLEAN_DEPS)
7384f7a9b9Shx147065
7484f7a9b9Shx147065clobber:	$(CLOBBER_DEPS)
7584f7a9b9Shx147065
7684f7a9b9Shx147065install:	$(INSTALL_DEPS)
7784f7a9b9Shx147065
7884f7a9b9Shx147065#
7984f7a9b9Shx147065#	Include common targets.
8084f7a9b9Shx147065#
8184f7a9b9Shx147065include $(UTSBASE)/intel/Makefile.targ
82