c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# CDDL HEADER START
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe#
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# The contents of this file are subject to the terms of the
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# Common Development and Distribution License (the "License").
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# You may not use this file except in compliance with the License.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe#
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# or http://www.opensolaris.org/os/licensing.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# See the License for the specific language governing permissions
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# and limitations under the License.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe#
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov# When distributing Covered Code, include this CDDL HEADER in each
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov# If applicable, add the following below this CDDL HEADER, with the
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov# fields enclosed by brackets "[]" replaced with your own identifying
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# information: Portions Copyright [yyyy] [name of copyright owner]
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov#
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# CDDL HEADER END
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov#
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe#
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov# Use is subject to license terms.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe#
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# uts/intel/spuni/Makefile
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe#
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# This makefile drives the production of the spuni kernel module
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe#
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# intel implementation architecture dependent
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe#
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe#
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# Path to the base of the uts directory tree (usually /usr/src/uts).
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe#
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe#
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweUTSBASE = ../..
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweARCHDIR:sh = cd ..; basename `pwd`
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe#
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# Define the module and object file sets.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe#
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweMODULE = spuni
52d2369a11f8e7fbf16d9fb72f92a154cf982013Robert MustacchiOBJECTS = $(UNISTAT_OBJS:%=$(OBJS_DIR)/%)
52d2369a11f8e7fbf16d9fb72f92a154cf982013Robert MustacchiLINTS = $(UNISTAT_OBJS:%.o=$(LINTS_DIR)/%.ln)
52d2369a11f8e7fbf16d9fb72f92a154cf982013Robert MustacchiINC_PATH += -I$(ROOT)/usr/include
52d2369a11f8e7fbf16d9fb72f92a154cf982013Robert MustacchiROOTMODULE = $(USR_MISC_DIR)/$(MODULE)
52d2369a11f8e7fbf16d9fb72f92a154cf982013Robert Mustacchi
52d2369a11f8e7fbf16d9fb72f92a154cf982013Robert Mustacchi#
52d2369a11f8e7fbf16d9fb72f92a154cf982013Robert Mustacchi# Include common rules.
52d2369a11f8e7fbf16d9fb72f92a154cf982013Robert Mustacchi#
52d2369a11f8e7fbf16d9fb72f92a154cf982013Robert Mustacchiinclude ../Makefile.$(ARCHDIR)
52d2369a11f8e7fbf16d9fb72f92a154cf982013Robert Mustacchiinclude $(UTSBASE)/common/avs/Makefile.com
52d2369a11f8e7fbf16d9fb72f92a154cf982013Robert Mustacchi
52d2369a11f8e7fbf16d9fb72f92a154cf982013Robert Mustacchi#
52d2369a11f8e7fbf16d9fb72f92a154cf982013Robert Mustacchi# Define targets
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe#
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweALL_TARGET = $(BINARY)
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweLINT_TARGET = $(MODULE).lint
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe#
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# lint pass one enforcement
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe#
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweCFLAGS += -v
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweLINTFLAGS += -erroff=E_BAD_PTR_CAST_ALIGN
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe.KEEP_STATE:
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowedef: $(DEF_DEPS)
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Loweall: $(ALL_DEPS)
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Loweclean: $(CLEAN_DEPS)
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Loweclobber: $(CLOBBER_DEPS)
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowelint: $(LINT_DEPS)
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowemodlintlib: $(MODLINTLIB_DEPS)
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Loweclean.lint: $(CLEAN_LINT_DEPS)
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Loweinstall: $(INSTALL_DEPS)
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe#
52d2369a11f8e7fbf16d9fb72f92a154cf982013Robert Mustacchi# Include common targets.
52d2369a11f8e7fbf16d9fb72f92a154cf982013Robert Mustacchi#
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Loweinclude ../Makefile.targ
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe