1# 2# CDDL HEADER START 3# 4# The contents of this file are subject to the terms of the 5# Common Development and Distribution License, Version 1.0 only 6# (the "License"). You may not use this file except in compliance 7# with the License. 8# 9# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 10# or http://www.opensolaris.org/os/licensing. 11# See the License for the specific language governing permissions 12# and limitations under the License. 13# 14# When distributing Covered Code, include this CDDL HEADER in each 15# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 16# If applicable, add the following below this CDDL HEADER, with the 17# fields enclosed by brackets "[]" replaced with your own identifying 18# information: Portions Copyright [yyyy] [name of copyright owner] 19# 20# CDDL HEADER END 21# 22# 23# Copyright 2005 Sun Microsystems, Inc. All rights reserved. 24# Use is subject to license terms. 25# 26#ident "%Z%%M% %I% %E% SMI" 27 28MODULE = genunix.so 29MDBTGT = kvm 30 31COMMONSRCS = \ 32 bio.c \ 33 contract.c \ 34 cpupart.c \ 35 ctxop.c \ 36 cyclic.c \ 37 devinfo.c \ 38 findstack.c \ 39 genunix.c \ 40 kgrep.c \ 41 kmem.c \ 42 ldi.c \ 43 leaky.c \ 44 leaky_subr.c \ 45 lgrp.c \ 46 list.c \ 47 log.c \ 48 memory.c \ 49 mmd.c \ 50 modhash.c \ 51 ndievents.c \ 52 net.c \ 53 nvpair.c \ 54 rctl.c \ 55 sobj.c \ 56 streams.c \ 57 sysevent.c \ 58 thread.c \ 59 tsd.c \ 60 vfs.c \ 61 zone.c 62 63KMODSRCS = \ 64 $(COMMONSRCS) 65 66MODSRCS = \ 67 $(COMMONSRCS) \ 68 typegraph.c 69 70# 71# This signals that $(KMODSRCS) != $(MODSRCS). Typegraph is not usable under 72# kmdb. As such, we don't bother compiling it. 73KMOD_SOURCES_DIFFERENT=$(POUND_SIGN) 74 75include ../../../../Makefile.cmd 76include ../../Makefile.ia32 77include ../../../Makefile.module 78 79# 80# We are not actually hardwiring some dependency on i86pc, we just need to 81# include sys/param.h with _MACHDEP defined, and this forces the inclusion of 82# machparam.h, even though we don't use anything there. This is a temporary 83# kludge until we invent -DDONTINCLUDEMACHPARAM or something. 84# 85CPPFLAGS += -I$(SRC)/uts/i86pc 86 87# Needed to include c2/audit.h (from cred.h) 88CPPFLAGS += -I$(SRC)/uts/common 89 90# Needed to find include file mutex_impl.h 91CPPFLAGS += -I$(SRC)/uts/intel 92