Makefile revision 84f7a9b9dca4f23b5f50edef0e59d7eb44301114
377N/A#
377N/A# CDDL HEADER START
377N/A#
377N/A# The contents of this file are subject to the terms of the
377N/A# Common Development and Distribution License (the "License").
377N/A# You may not use this file except in compliance with the License.
377N/A#
377N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
377N/A# or http://www.opensolaris.org/os/licensing.
377N/A# See the License for the specific language governing permissions
377N/A# and limitations under the License.
377N/A#
377N/A# When distributing Covered Code, include this CDDL HEADER in each
377N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
377N/A# If applicable, add the following below this CDDL HEADER, with the
377N/A# fields enclosed by brackets "[]" replaced with your own identifying
377N/A# information: Portions Copyright [yyyy] [name of copyright owner]
377N/A#
377N/A# CDDL HEADER END
377N/A#
3661N/A#
377N/A# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
377N/A# Use is subject to license terms.
377N/A#
1273N/A
377N/A# ident "%Z%%M% %I% %E% SMI"
1273N/A#
1273N/A# This makefile drives the production of the wpi driver kernel module.
377N/A#
377N/A# i86pc architecture dependent
844N/A#
844N/A
377N/A#
1273N/A# Path to the base of the uts directory tree (usually /usr/src/uts).
377N/A#
3661N/AUTSBASE = ../..
3661N/A
377N/A#
377N/A# Define the module and object file sets.
377N/A#
377N/AMODULE = wpi
377N/AOBJECTS = $(WPI_OBJS:%=$(OBJS_DIR)/%)
377N/ALINTS = $(WPI_OBJS:%.o=$(LINTS_DIR)/%.ln)
377N/AROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
377N/A
377N/A#
2238N/A# Include common rules.
377N/A#
377N/Ainclude $(UTSBASE)/intel/Makefile.intel
377N/A
377N/A#
377N/A# Define targets
377N/A#
377N/AALL_TARGET = $(BINARY) $(CONFMOD) $(ITUMOD)
377N/ALINT_TARGET = $(MODULE).lint
377N/AINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
377N/A
377N/A#
377N/A# Overrides
377N/A#
377N/ALINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
377N/ALINTTAGS += -erroff=E_PTRDIFF_OVERFLOW
377N/A
CPPFLAGS += -I. -D_KERNEL
LDFLAGS += -dy -Nmisc/mac -Nmisc/net80211 -Ndrv/random -Ndrv/ip
#
# Default build targets.
#
.KEEP_STATE:
def: $(DEF_DEPS)
all: $(ALL_DEPS)
clean: $(CLEAN_DEPS)
clobber: $(CLOBBER_DEPS)
lint: $(LINT_DEPS)
modlintlib: $(MODLINTLIB_DEPS)
clean.lint: $(CLEAN_LINT_DEPS)
install: $(INSTALL_DEPS)
#
# Include common targets.
#
include $(UTSBASE)/intel/Makefile.targ