xref: /titanic_44/usr/src/cmd/mdb/intel/amd64/genunix/Makefile (revision 60b08185ce63023f22fd6b2ed0db8c0d119b2023)
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	avl.c \
33	bio.c \
34	contract.c \
35	cpupart.c \
36	ctxop.c \
37	cyclic.c \
38	devinfo.c \
39	findstack.c \
40	genunix.c \
41	kgrep.c \
42	kmem.c \
43	ldi.c \
44	leaky.c \
45	leaky_subr.c \
46	lgrp.c \
47	list.c \
48	log.c \
49	memory.c \
50	mmd.c \
51	modhash.c \
52	ndievents.c \
53	net.c \
54	nvpair.c \
55	rctl.c \
56	sobj.c \
57	streams.c \
58	sysevent.c \
59	thread.c \
60	tsd.c \
61	vfs.c \
62	zone.c
63
64KMODSRCS = \
65	$(COMMONSRCS)
66
67MODSRCS = \
68	$(COMMONSRCS) \
69	typegraph.c
70
71#
72# This signals that $(KMODSRCS) != $(MODSRCS).  Typegraph is not usable under
73# kmdb.  As such, we don't bother compiling it.
74KMOD_SOURCES_DIFFERENT=$(POUND_SIGN)
75
76include ../../../../Makefile.cmd
77include ../../../../Makefile.cmd.64
78include ../../Makefile.amd64
79include ../../../Makefile.module
80
81#
82# We are not actually hardwiring some dependency on i86pc, we just need to
83# include sys/param.h with _MACHDEP defined, and this forces the inclusion of
84# machparam.h, even though we don't use anything there.  This is a temporary
85# kludge until we invent -DDONTINCLUDEMACHPARAM or something.
86#
87CPPFLAGS += -I$(SRC)/uts/i86pc
88
89# Needed to include c2/audit.h (from cred.h)
90CPPFLAGS += -I$(SRC)/uts/common
91
92# Needed to find include file mutex_impl.h
93CPPFLAGS += -I$(SRC)/uts/intel
94