Makefile revision 843e19887f64dde75055cf8842fc4db2171eff45
7b840e52d558c34b70cbcde044d8d79852d169d2phitran#
7b840e52d558c34b70cbcde044d8d79852d169d2phitran# CDDL HEADER START
7b840e52d558c34b70cbcde044d8d79852d169d2phitran#
7b840e52d558c34b70cbcde044d8d79852d169d2phitran# The contents of this file are subject to the terms of the
7b840e52d558c34b70cbcde044d8d79852d169d2phitran# Common Development and Distribution License (the "License").
d2ec54f7875f7e05edd56195adbeb593c947763fphitran# You may not use this file except in compliance with the License.
7b840e52d558c34b70cbcde044d8d79852d169d2phitran#
7b840e52d558c34b70cbcde044d8d79852d169d2phitran# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
7b840e52d558c34b70cbcde044d8d79852d169d2phitran# or http://www.opensolaris.org/os/licensing.
7b840e52d558c34b70cbcde044d8d79852d169d2phitran# See the License for the specific language governing permissions
7b840e52d558c34b70cbcde044d8d79852d169d2phitran# and limitations under the License.
7b840e52d558c34b70cbcde044d8d79852d169d2phitran#
7b840e52d558c34b70cbcde044d8d79852d169d2phitran# When distributing Covered Code, include this CDDL HEADER in each
7b840e52d558c34b70cbcde044d8d79852d169d2phitran# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
7b840e52d558c34b70cbcde044d8d79852d169d2phitran# If applicable, add the following below this CDDL HEADER, with the
7b840e52d558c34b70cbcde044d8d79852d169d2phitran# fields enclosed by brackets "[]" replaced with your own identifying
7b840e52d558c34b70cbcde044d8d79852d169d2phitran# information: Portions Copyright [yyyy] [name of copyright owner]
7b840e52d558c34b70cbcde044d8d79852d169d2phitran#
7b840e52d558c34b70cbcde044d8d79852d169d2phitran# CDDL HEADER END
7b840e52d558c34b70cbcde044d8d79852d169d2phitran
7b840e52d558c34b70cbcde044d8d79852d169d2phitran
7b840e52d558c34b70cbcde044d8d79852d169d2phitran#
7b840e52d558c34b70cbcde044d8d79852d169d2phitran#
7b840e52d558c34b70cbcde044d8d79852d169d2phitran# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
7b840e52d558c34b70cbcde044d8d79852d169d2phitran# Use is subject to license terms.
7b840e52d558c34b70cbcde044d8d79852d169d2phitran#
7b840e52d558c34b70cbcde044d8d79852d169d2phitran#ident "%Z%%M% %I% %E% SMI"
7b840e52d558c34b70cbcde044d8d79852d169d2phitran
7b840e52d558c34b70cbcde044d8d79852d169d2phitranMODULE = genunix.so
d2ec54f7875f7e05edd56195adbeb593c947763fphitranMDBTGT = kvm
7b840e52d558c34b70cbcde044d8d79852d169d2phitran
7b840e52d558c34b70cbcde044d8d79852d169d2phitraninclude ../../../common/modules/genunix/Makefile.files
7b840e52d558c34b70cbcde044d8d79852d169d2phitran
7b840e52d558c34b70cbcde044d8d79852d169d2phitranCOMMONSRCS = \
7b840e52d558c34b70cbcde044d8d79852d169d2phitran $(GENUNIX_SRCS)
7b840e52d558c34b70cbcde044d8d79852d169d2phitran
7b840e52d558c34b70cbcde044d8d79852d169d2phitranKMODSRCS = \
7b840e52d558c34b70cbcde044d8d79852d169d2phitran $(COMMONSRCS)
7b840e52d558c34b70cbcde044d8d79852d169d2phitran
7b840e52d558c34b70cbcde044d8d79852d169d2phitranMODSRCS = \
7b840e52d558c34b70cbcde044d8d79852d169d2phitran $(COMMONSRCS) \
7b840e52d558c34b70cbcde044d8d79852d169d2phitran typegraph.c
7b840e52d558c34b70cbcde044d8d79852d169d2phitran
7b840e52d558c34b70cbcde044d8d79852d169d2phitran#
7b840e52d558c34b70cbcde044d8d79852d169d2phitran# This signals that $(KMODSRCS) != $(MODSRCS). Typegraph is not usable under
7b840e52d558c34b70cbcde044d8d79852d169d2phitran# kmdb. As such, we don't bother compiling it.
7b840e52d558c34b70cbcde044d8d79852d169d2phitranKMOD_SOURCES_DIFFERENT=$(POUND_SIGN)
7b840e52d558c34b70cbcde044d8d79852d169d2phitran
7b840e52d558c34b70cbcde044d8d79852d169d2phitraninclude ../../../../Makefile.cmd
7b840e52d558c34b70cbcde044d8d79852d169d2phitraninclude ../../../../Makefile.cmd.64
7b840e52d558c34b70cbcde044d8d79852d169d2phitraninclude ../../Makefile.amd64
7b840e52d558c34b70cbcde044d8d79852d169d2phitraninclude ../../../Makefile.module
7b840e52d558c34b70cbcde044d8d79852d169d2phitran
7b840e52d558c34b70cbcde044d8d79852d169d2phitrandmod/$(MODULE) := LDLIBS += -lm
7b840e52d558c34b70cbcde044d8d79852d169d2phitran
7b840e52d558c34b70cbcde044d8d79852d169d2phitran#
# We are not actually hardwiring some dependency on i86pc, 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/i86pc
CPPFLAGS += -I$(SRC)/uts/i86xpv
# 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