Makefile revision fa9e4066f08beec538e775443c5be79dd423fcab
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein#
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# CDDL HEADER START
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein#
f202f2587b9ba4753afba49b796f599cc12b4d0fAndreas Gustafsson# The contents of this file are subject to the terms of the
f5d30e2864e048a42c4dc1134993ae7efdb5d6c3Mark Andrews# Common Development and Distribution License, Version 1.0 only
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# (the "License"). You may not use this file except in compliance
f202f2587b9ba4753afba49b796f599cc12b4d0fAndreas Gustafsson# with the License.
f202f2587b9ba4753afba49b796f599cc12b4d0fAndreas Gustafsson#
f202f2587b9ba4753afba49b796f599cc12b4d0fAndreas Gustafsson# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
f202f2587b9ba4753afba49b796f599cc12b4d0fAndreas Gustafsson# or http://www.opensolaris.org/os/licensing.
f202f2587b9ba4753afba49b796f599cc12b4d0fAndreas Gustafsson# See the License for the specific language governing permissions
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# and limitations under the License.
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews#
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# When distributing Covered Code, include this CDDL HEADER in each
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# If applicable, add the following below this CDDL HEADER, with the
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# fields enclosed by brackets "[]" replaced with your own identifying
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# information: Portions Copyright [yyyy] [name of copyright owner]
f202f2587b9ba4753afba49b796f599cc12b4d0fAndreas Gustafsson#
f5d30e2864e048a42c4dc1134993ae7efdb5d6c3Mark Andrews# CDDL HEADER END
1425217e5c3a2cbab7f8344e600e0c16047289ffMark Andrews#
b5ad6dfea4cc3e7d1d322ac99f1e5a31096837c4Mark Andrews#
f202f2587b9ba4753afba49b796f599cc12b4d0fAndreas Gustafsson# Copyright 2005 Sun Microsystems, Inc. All rights reserved.
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# Use is subject to license terms.
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein#
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein#ident "%Z%%M% %I% %E% SMI"
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinMODULE = genunix.so
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinMDBTGT = kvm
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinCOMMONSRCS = \
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein avl.c \
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein bio.c \
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein contract.c \
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein cpupart.c \
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein ctxop.c \
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein cyclic.c \
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein devinfo.c \
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein findstack.c \
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein genunix.c \
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein kgrep.c \
f5d30e2864e048a42c4dc1134993ae7efdb5d6c3Mark Andrews kmem.c \
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein ldi.c \
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein leaky.c \
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein leaky_subr.c \
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein lgrp.c \
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein list.c \
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein log.c \
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein memory.c \
f5d30e2864e048a42c4dc1134993ae7efdb5d6c3Mark Andrews mmd.c \
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein modhash.c \
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein ndievents.c \
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein net.c \
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein nvpair.c \
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein rctl.c \
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein sobj.c \
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein streams.c \
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein sysevent.c \
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein thread.c \
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein tsd.c \
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein vfs.c \
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein zone.c
a268fec7f54a89a0772a91da0511c8eae09e6157Mark Andrews
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinKMODSRCS = \
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein $(COMMONSRCS)
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinMODSRCS = \
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein $(COMMONSRCS) \
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein typegraph.c
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein#
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# This signals that $(KMODSRCS) != $(MODSRCS). Typegraph is not usable under
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# kmdb. As such, we don't bother compiling it.
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinKMOD_SOURCES_DIFFERENT=$(POUND_SIGN)
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austeininclude ../../../../Makefile.cmd
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austeininclude ../../Makefile.ia32
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austeininclude ../../../Makefile.module
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein#
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# We are not actually hardwiring some dependency on i86pc, we just need to
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# include sys/param.h with _MACHDEP defined, and this forces the inclusion of
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# machparam.h, even though we don't use anything there. This is a temporary
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# kludge until we invent -DDONTINCLUDEMACHPARAM or something.
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein#
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinCPPFLAGS += -I$(SRC)/uts/i86pc
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# Needed to include c2/audit.h (from cred.h)
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinCPPFLAGS += -I$(SRC)/uts/common
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# Needed to find include file mutex_impl.h
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinCPPFLAGS += -I$(SRC)/uts/intel
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein