xref: /illumos-gate/usr/src/cmd/mdb/intel/amd64/mdb_ks/Makefile (revision 7c478bd95313f5f23a4c958a745db2134aa03244)
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 2004 Sun Microsystems, Inc.  All rights reserved.
24# Use is subject to license terms.
25#
26#ident	"%Z%%M%	%I%	%E% SMI"
27
28#
29# In the mdb world, mdb_ks is delivered as a dmod, albeit one with special
30# powers.  Various other dmods use symbols provided by mdb_ks, through the
31# magic of dynamic linking.  In the kmdb world, however, things are different.
32# kmdb dmods are not allowed to consume symbols exported by anything other
33# than the kmdb module.  In order to allow other kmdb dmods to use the mdb_ks
34# symbols, we link mdb_ks into kmdb.
35#
36
37MODULE = mdb_ks.so
38MDBTGT = kvm
39
40MODSRCS = mdb_ks.c
41
42include ../../../../Makefile.cmd
43include ../../../../Makefile.cmd.64
44include ../../Makefile.amd64
45include ../../../Makefile.module
46include ../../../Makefile.mdb_ks
47
48#
49# We are not actually hardwiring some dependency on i86pc, we just need to
50# include sys/param.h with _MACHDEP defined, and this forces the inclusion of
51# machparam.h, even though we don't use anything there.  This is a temporary
52# kludge until we invent -DDONTINCLUDEMACHPARAM or something.
53#
54CPPFLAGS += -I$(SRC)/uts/i86pc
55