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# 22*22eb7cb5Sgd78059# Copyright 2008 Sun Microsystems, Inc. All rights reserved. 2384f7a9b9Shx147065# Use is subject to license terms. 2484f7a9b9Shx147065# 2584f7a9b9Shx147065 2684f7a9b9Shx147065# ident "%Z%%M% %I% %E% SMI" 2784f7a9b9Shx147065# 2884f7a9b9Shx147065# This makefile drives the production of the wpi driver kernel module. 2984f7a9b9Shx147065# 3084f7a9b9Shx147065# i86pc architecture dependent 3184f7a9b9Shx147065# 3284f7a9b9Shx147065 3384f7a9b9Shx147065# 3484f7a9b9Shx147065# Path to the base of the uts directory tree (usually /usr/src/uts). 3584f7a9b9Shx147065# 3684f7a9b9Shx147065UTSBASE = ../.. 3784f7a9b9Shx147065 3884f7a9b9Shx147065# 3984f7a9b9Shx147065# Define the module and object file sets. 4084f7a9b9Shx147065# 4184f7a9b9Shx147065MODULE = wpi 4284f7a9b9Shx147065OBJECTS = $(WPI_OBJS:%=$(OBJS_DIR)/%) 4384f7a9b9Shx147065LINTS = $(WPI_OBJS:%.o=$(LINTS_DIR)/%.ln) 4484f7a9b9Shx147065ROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE) 4584f7a9b9Shx147065 4684f7a9b9Shx147065# 4784f7a9b9Shx147065# Include common rules. 4884f7a9b9Shx147065# 4984f7a9b9Shx147065include $(UTSBASE)/intel/Makefile.intel 5084f7a9b9Shx147065 5184f7a9b9Shx147065# 5284f7a9b9Shx147065# Define targets 5384f7a9b9Shx147065# 5484f7a9b9Shx147065ALL_TARGET = $(BINARY) $(CONFMOD) $(ITUMOD) 5584f7a9b9Shx147065LINT_TARGET = $(MODULE).lint 5684f7a9b9Shx147065INSTALL_TARGET = $(BINARY) $(ROOTMODULE) 5784f7a9b9Shx147065 5884f7a9b9Shx147065# 5984f7a9b9Shx147065# Overrides 6084f7a9b9Shx147065# 6184f7a9b9Shx147065LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN 6284f7a9b9Shx147065 6384f7a9b9Shx147065CPPFLAGS += -I. -D_KERNEL 6484f7a9b9Shx147065 6584f7a9b9Shx147065LDFLAGS += -dy -Nmisc/mac -Nmisc/net80211 -Ndrv/random -Ndrv/ip 6684f7a9b9Shx147065 6784f7a9b9Shx147065# 6884f7a9b9Shx147065# Default build targets. 6984f7a9b9Shx147065# 7084f7a9b9Shx147065.KEEP_STATE: 7184f7a9b9Shx147065 7284f7a9b9Shx147065def: $(DEF_DEPS) 7384f7a9b9Shx147065 7484f7a9b9Shx147065all: $(ALL_DEPS) 7584f7a9b9Shx147065 7684f7a9b9Shx147065clean: $(CLEAN_DEPS) 7784f7a9b9Shx147065 7884f7a9b9Shx147065clobber: $(CLOBBER_DEPS) 7984f7a9b9Shx147065 8084f7a9b9Shx147065lint: $(LINT_DEPS) 8184f7a9b9Shx147065 8284f7a9b9Shx147065modlintlib: $(MODLINTLIB_DEPS) 8384f7a9b9Shx147065 8484f7a9b9Shx147065clean.lint: $(CLEAN_LINT_DEPS) 8584f7a9b9Shx147065 8684f7a9b9Shx147065install: $(INSTALL_DEPS) 8784f7a9b9Shx147065 8884f7a9b9Shx147065# 8984f7a9b9Shx147065# Include common targets. 9084f7a9b9Shx147065# 9184f7a9b9Shx147065include $(UTSBASE)/intel/Makefile.targ 92