Makefile revision fb2f18f820d90b001aea4fb27dd654bc1263c440
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater#
11e9368a226272085c337e9e74b79808c16fbdbaTinderbox User# CDDL HEADER START
bef75d63d74f58abc0f834ed271526672777ba29Automatic Updater#
bef75d63d74f58abc0f834ed271526672777ba29Automatic Updater# The contents of this file are subject to the terms of the
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater# Common Development and Distribution License (the "License").
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater# You may not use this file except in compliance with the License.
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater#
bef75d63d74f58abc0f834ed271526672777ba29Automatic Updater# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater# or http://www.opensolaris.org/os/licensing.
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater# See the License for the specific language governing permissions
bef75d63d74f58abc0f834ed271526672777ba29Automatic Updater# and limitations under the License.
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater#
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater# When distributing Covered Code, include this CDDL HEADER in each
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater# If applicable, add the following below this CDDL HEADER, with the
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater# fields enclosed by brackets "[]" replaced with your own identifying
ea94d370123a5892f6c47a97f21d1b28d44bb168Tinderbox User# information: Portions Copyright [yyyy] [name of copyright owner]
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater#
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater# CDDL HEADER END
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater#
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater#
cd32f419a8a5432fbb139f56ee73cbf68b9350ccTinderbox User# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater# Use is subject to license terms.
10b865e9187fc77cae02f106ddcc9e03eecdfe06Tinderbox User#
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater#ident "%Z%%M% %I% %E% SMI"
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic UpdaterMODULE = genunix.so
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic UpdaterMDBTGT = kvm
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic UpdaterCOMMONSRCS = \
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater avl.c \
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater bio.c \
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater contract.c \
10b865e9187fc77cae02f106ddcc9e03eecdfe06Tinderbox User cpupart.c \
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater ctxop.c \
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater cyclic.c \
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater devinfo.c \
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater findstack.c \
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater fm.c \
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater genunix.c \
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater group.c \
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater kgrep.c \
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater kmem.c \
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater ldi.c \
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater leaky.c \
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater leaky_subr.c \
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater lgrp.c \
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater list.c \
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater log.c \
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater mdi.c \
10b865e9187fc77cae02f106ddcc9e03eecdfe06Tinderbox User memory.c \
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater mmd.c \
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater modhash.c \
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater ndievents.c \
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater net.c \
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater nvpair.c \
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater pg.c \
10b865e9187fc77cae02f106ddcc9e03eecdfe06Tinderbox User rctl.c \
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater sobj.c \
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater streams.c \
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater sysevent.c \
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater thread.c \
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater tsd.c \
10b865e9187fc77cae02f106ddcc9e03eecdfe06Tinderbox User tsol.c \
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater vfs.c \
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater zone.c
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic UpdaterKMODSRCS = \
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater $(COMMONSRCS)
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic UpdaterMODSRCS = \
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater $(COMMONSRCS) \
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater typegraph.c
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater
cd32f419a8a5432fbb139f56ee73cbf68b9350ccTinderbox User#
10b865e9187fc77cae02f106ddcc9e03eecdfe06Tinderbox User# This signals that $(KMODSRCS) != $(MODSRCS). Typegraph is not usable under
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater# kmdb. As such, we don't bother compiling it.
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic UpdaterKMOD_SOURCES_DIFFERENT=$(POUND_SIGN)
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updaterinclude ../../../../Makefile.cmd
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updaterinclude ../../../../Makefile.cmd.64
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updaterinclude ../../Makefile.amd64
10b865e9187fc77cae02f106ddcc9e03eecdfe06Tinderbox Userinclude ../../../Makefile.module
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater#
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater# We are not actually hardwiring some dependency on i86pc, we just need to
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater# include sys/param.h with _MACHDEP defined, and this forces the inclusion of
30c0c7470d5bfabd8f43c563f4eca636d06cc484Tinderbox User# machparam.h, even though we don't use anything there. This is a temporary
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater# kludge until we invent -DDONTINCLUDEMACHPARAM or something.
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater#
CPPFLAGS += -I$(SRC)/uts/i86pc
# Needed to include c2/audit.h (from cred.h)
CPPFLAGS += -I$(SRC)/uts/common
# Needed to find include file mutex_impl.h
CPPFLAGS += -I$(SRC)/uts/intel