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.cmd.64 77include ../../Makefile.sparcv9 78include ../../../Makefile.module 79 80# 81# We are not actually hardwiring some dependency on sun4u, we just need to 82# include sys/param.h with _MACHDEP defined, and this forces the inclusion of 83# machparam.h, even though we don't use anything there. This is a temporary 84# kludge until we invent -DDONTINCLUDEMACHPARAM or something. 85# 86CPPFLAGS += -I$(SRC)/uts/sun4u 87 88# Needed to include c2/audit.h (from cred.h) 89CPPFLAGS += -I$(SRC)/uts/common 90# Needed to find include file mutex_impl.h 91CPPFLAGS += -I$(SRC)/uts/sparc/v9 92