Makefile revision e9dbad6f263d5570ed7ff5443ec5b958af8c24d7
e32d354f754a5d7847a0862bcd6302827ea225bfEvan Hunt#
e32d354f754a5d7847a0862bcd6302827ea225bfEvan Hunt# CDDL HEADER START
e32d354f754a5d7847a0862bcd6302827ea225bfEvan Hunt#
e32d354f754a5d7847a0862bcd6302827ea225bfEvan Hunt# The contents of this file are subject to the terms of the
e32d354f754a5d7847a0862bcd6302827ea225bfEvan Hunt# Common Development and Distribution License, Version 1.0 only
e32d354f754a5d7847a0862bcd6302827ea225bfEvan Hunt# (the "License"). You may not use this file except in compliance
e32d354f754a5d7847a0862bcd6302827ea225bfEvan Hunt# with the License.
e32d354f754a5d7847a0862bcd6302827ea225bfEvan Hunt#
e32d354f754a5d7847a0862bcd6302827ea225bfEvan Hunt# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
e32d354f754a5d7847a0862bcd6302827ea225bfEvan Hunt# or http://www.opensolaris.org/os/licensing.
e32d354f754a5d7847a0862bcd6302827ea225bfEvan Hunt# See the License for the specific language governing permissions
e32d354f754a5d7847a0862bcd6302827ea225bfEvan Hunt# and limitations under the License.
e32d354f754a5d7847a0862bcd6302827ea225bfEvan Hunt#
e32d354f754a5d7847a0862bcd6302827ea225bfEvan Hunt# When distributing Covered Code, include this CDDL HEADER in each
e32d354f754a5d7847a0862bcd6302827ea225bfEvan Hunt# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
e32d354f754a5d7847a0862bcd6302827ea225bfEvan Hunt# If applicable, add the following below this CDDL HEADER, with the
e32d354f754a5d7847a0862bcd6302827ea225bfEvan Hunt# fields enclosed by brackets "[]" replaced with your own identifying
e32d354f754a5d7847a0862bcd6302827ea225bfEvan Hunt# information: Portions Copyright [yyyy] [name of copyright owner]
e32d354f754a5d7847a0862bcd6302827ea225bfEvan Hunt#
e32d354f754a5d7847a0862bcd6302827ea225bfEvan Hunt# CDDL HEADER END
e32d354f754a5d7847a0862bcd6302827ea225bfEvan Hunt#
e32d354f754a5d7847a0862bcd6302827ea225bfEvan Hunt#
e32d354f754a5d7847a0862bcd6302827ea225bfEvan Hunt# uts/intel/iwscn/Makefile
e32d354f754a5d7847a0862bcd6302827ea225bfEvan Hunt#
e32d354f754a5d7847a0862bcd6302827ea225bfEvan Hunt# Copyright 2004 Sun Microsystems, Inc. All rights reserved.
e32d354f754a5d7847a0862bcd6302827ea225bfEvan Hunt# Use is subject to license terms.
e32d354f754a5d7847a0862bcd6302827ea225bfEvan Hunt#
e32d354f754a5d7847a0862bcd6302827ea225bfEvan Hunt#pragma ident "%Z%%M% %I% %E% SMI"
e32d354f754a5d7847a0862bcd6302827ea225bfEvan Hunt#
e32d354f754a5d7847a0862bcd6302827ea225bfEvan Hunt# This makefile drives the production of the iwscn driver
e32d354f754a5d7847a0862bcd6302827ea225bfEvan Hunt#
e32d354f754a5d7847a0862bcd6302827ea225bfEvan Hunt# intel architecture dependent
e32d354f754a5d7847a0862bcd6302827ea225bfEvan Hunt#
e32d354f754a5d7847a0862bcd6302827ea225bfEvan Hunt
e32d354f754a5d7847a0862bcd6302827ea225bfEvan Hunt#
e32d354f754a5d7847a0862bcd6302827ea225bfEvan Hunt# Path to the base of the uts directory tree (usually /usr/src/uts).
e32d354f754a5d7847a0862bcd6302827ea225bfEvan Hunt#
e32d354f754a5d7847a0862bcd6302827ea225bfEvan HuntUTSBASE = ../..
e32d354f754a5d7847a0862bcd6302827ea225bfEvan Hunt
e32d354f754a5d7847a0862bcd6302827ea225bfEvan Hunt#
e32d354f754a5d7847a0862bcd6302827ea225bfEvan Hunt# Define the module and object file sets.
e32d354f754a5d7847a0862bcd6302827ea225bfEvan Hunt#
e32d354f754a5d7847a0862bcd6302827ea225bfEvan HuntMODULE = iwscn
e32d354f754a5d7847a0862bcd6302827ea225bfEvan HuntOBJECTS = $(IWSCN_OBJS:%=$(OBJS_DIR)/%)
e32d354f754a5d7847a0862bcd6302827ea225bfEvan HuntLINTS = $(IWSCN_OBJS:%.o=$(LINTS_DIR)/%.ln)
e32d354f754a5d7847a0862bcd6302827ea225bfEvan HuntROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
e32d354f754a5d7847a0862bcd6302827ea225bfEvan HuntCONF_SRCDIR = $(UTSBASE)/common/io
e32d354f754a5d7847a0862bcd6302827ea225bfEvan Hunt
e32d354f754a5d7847a0862bcd6302827ea225bfEvan Hunt#
e32d354f754a5d7847a0862bcd6302827ea225bfEvan Hunt# Include common rules.
e32d354f754a5d7847a0862bcd6302827ea225bfEvan Hunt#
e32d354f754a5d7847a0862bcd6302827ea225bfEvan Huntinclude $(UTSBASE)/intel/Makefile.intel
e32d354f754a5d7847a0862bcd6302827ea225bfEvan Hunt
e32d354f754a5d7847a0862bcd6302827ea225bfEvan Hunt#
e32d354f754a5d7847a0862bcd6302827ea225bfEvan Hunt# Define targets
#
ALL_TARGET = $(BINARY) $(SRC_CONFILE)
LINT_TARGET = $(MODULE).lint
INSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
#
# Override defaults to build a unique, local modstubs.o.
#
MODSTUBS_DIR = $(OBJS_DIR)
$(MODSTUBS_O) := AS_CPPFLAGS += -DIWSCN_MODULE
CLEANFILES += $(MODSTUBS_O)
#
# 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