Makefile revision 70ab954a5d6c4d36858fd6e7e3dd4498d06d2c40
9c98bbdfbc6de66b588aed9e1711e3fb9de0bf7eKryštof Tulinger#
9c98bbdfbc6de66b588aed9e1711e3fb9de0bf7eKryštof Tulinger# CDDL HEADER START
9c98bbdfbc6de66b588aed9e1711e3fb9de0bf7eKryštof Tulinger#
9c98bbdfbc6de66b588aed9e1711e3fb9de0bf7eKryštof Tulinger# The contents of this file are subject to the terms of the
9c98bbdfbc6de66b588aed9e1711e3fb9de0bf7eKryštof Tulinger# Common Development and Distribution License (the "License").
9c98bbdfbc6de66b588aed9e1711e3fb9de0bf7eKryštof Tulinger# You may not use this file except in compliance with the License.
9c98bbdfbc6de66b588aed9e1711e3fb9de0bf7eKryštof Tulinger#
9c98bbdfbc6de66b588aed9e1711e3fb9de0bf7eKryštof Tulinger# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9c98bbdfbc6de66b588aed9e1711e3fb9de0bf7eKryštof Tulinger# or http://www.opensolaris.org/os/licensing.
9c98bbdfbc6de66b588aed9e1711e3fb9de0bf7eKryštof Tulinger# See the License for the specific language governing permissions
9c98bbdfbc6de66b588aed9e1711e3fb9de0bf7eKryštof Tulinger# and limitations under the License.
9c98bbdfbc6de66b588aed9e1711e3fb9de0bf7eKryštof Tulinger#
9c98bbdfbc6de66b588aed9e1711e3fb9de0bf7eKryštof Tulinger# When distributing Covered Code, include this CDDL HEADER in each
9c98bbdfbc6de66b588aed9e1711e3fb9de0bf7eKryštof Tulinger# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
9c98bbdfbc6de66b588aed9e1711e3fb9de0bf7eKryštof Tulinger# If applicable, add the following below this CDDL HEADER, with the
9c98bbdfbc6de66b588aed9e1711e3fb9de0bf7eKryštof Tulinger# fields enclosed by brackets "[]" replaced with your own identifying
9c98bbdfbc6de66b588aed9e1711e3fb9de0bf7eKryštof Tulinger# information: Portions Copyright [yyyy] [name of copyright owner]
9c98bbdfbc6de66b588aed9e1711e3fb9de0bf7eKryštof Tulinger#
9c98bbdfbc6de66b588aed9e1711e3fb9de0bf7eKryštof Tulinger# CDDL HEADER END
9c98bbdfbc6de66b588aed9e1711e3fb9de0bf7eKryštof Tulinger
9c98bbdfbc6de66b588aed9e1711e3fb9de0bf7eKryštof Tulinger
9c98bbdfbc6de66b588aed9e1711e3fb9de0bf7eKryštof Tulinger#
9c98bbdfbc6de66b588aed9e1711e3fb9de0bf7eKryštof Tulinger#
9c98bbdfbc6de66b588aed9e1711e3fb9de0bf7eKryštof Tulinger# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
9c98bbdfbc6de66b588aed9e1711e3fb9de0bf7eKryštof Tulinger# Use is subject to license terms.
9c98bbdfbc6de66b588aed9e1711e3fb9de0bf7eKryštof Tulinger#
9c98bbdfbc6de66b588aed9e1711e3fb9de0bf7eKryštof Tulinger#ident "%Z%%M% %I% %E% SMI"
9c98bbdfbc6de66b588aed9e1711e3fb9de0bf7eKryštof Tulinger
9c98bbdfbc6de66b588aed9e1711e3fb9de0bf7eKryštof TulingerMODULE = genunix.so
9c98bbdfbc6de66b588aed9e1711e3fb9de0bf7eKryštof TulingerMDBTGT = kvm
9c98bbdfbc6de66b588aed9e1711e3fb9de0bf7eKryštof Tulinger
9c98bbdfbc6de66b588aed9e1711e3fb9de0bf7eKryštof TulingerCOMMONSRCS = \
9c98bbdfbc6de66b588aed9e1711e3fb9de0bf7eKryštof Tulinger avl.c \
9c98bbdfbc6de66b588aed9e1711e3fb9de0bf7eKryštof Tulinger bio.c \
9c98bbdfbc6de66b588aed9e1711e3fb9de0bf7eKryštof Tulinger contract.c \
e108d43e59336eaf96f0976ee92944719bbf2ac9Kryštof Tulinger cpupart.c \
ctxop.c \
cyclic.c \
devinfo.c \
findstack.c \
genunix.c \
kgrep.c \
kmem.c \
ldi.c \
leaky.c \
leaky_subr.c \
lgrp.c \
list.c \
log.c \
mdi.c \
memory.c \
mmd.c \
modhash.c \
ndievents.c \
net.c \
nvpair.c \
rctl.c \
sobj.c \
streams.c \
sysevent.c \
thread.c \
tsd.c \
tsol.c \
vfs.c \
zone.c
KMODSRCS = \
$(COMMONSRCS)
MODSRCS = \
$(COMMONSRCS) \
typegraph.c
#
# This signals that $(KMODSRCS) != $(MODSRCS). Typegraph is not usable under
# kmdb. As such, we don't bother compiling it.
KMOD_SOURCES_DIFFERENT=$(POUND_SIGN)
include ../../../../Makefile.cmd
include ../../../../Makefile.cmd.64
include ../../Makefile.sparcv9
include ../../../Makefile.module
#
# We are not actually hardwiring some dependency on sun4u, we just need to
# include sys/param.h with _MACHDEP defined, and this forces the inclusion of
# machparam.h, even though we don't use anything there. This is a temporary
# kludge until we invent -DDONTINCLUDEMACHPARAM or something.
#
CPPFLAGS += -I$(SRC)/uts/sun4u
# 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/sparc/v9