xref: /titanic_41/usr/src/cmd/mdb/intel/Makefile.kmdb (revision 8d483882aa3390058094b043f3d62187b5d1de03)
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 (the "License").
6# You may not use this file except in compliance with the License.
7#
8# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9# or http://www.opensolaris.org/os/licensing.
10# See the License for the specific language governing permissions
11# and limitations under the License.
12#
13# When distributing Covered Code, include this CDDL HEADER in each
14# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15# If applicable, add the following below this CDDL HEADER, with the
16# fields enclosed by brackets "[]" replaced with your own identifying
17# information: Portions Copyright [yyyy] [name of copyright owner]
18#
19# CDDL HEADER END
20#
21#
22# Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
23# Use is subject to license terms.
24#
25#ident	"%Z%%M%	%I%	%E% SMI"
26#
27
28PROMSRCS += \
29	prom_env.c \
30	prom_getchar.c \
31	prom_init.c \
32	prom_printf.c \
33	prom_putchar.c
34
35KMDBSRCS += \
36	kaif.c \
37	kmdb_dpi_isadep.c \
38	kmdb_fault_isadep.c \
39	kmdb_kdi_isadep.c \
40	kmdb_promif_isadep.c \
41	kvm_cpu_amd.c \
42	kvm_cpu_p4.c \
43	kvm_isadep.c
44
45KMDBML += \
46	kmdb_asmutil.s \
47	kmdb_setcontext.s
48
49KCTLSRCS += \
50	kctl_isadep.c
51
52CTXOFFUSERS = \
53	kmdb_setcontext.o
54
55CPPFLAGS += -DDIS_TEXT
56
57$(CTXOFFUSERS) $(CTXOFFUSERS:%.o=%.ln): kmdb_context_off.h
58
59kaif_activate.o kaif_activate.ln := CPPFLAGS += -D_MACHDEP -D_KMEMUSER
60
61STANDLIBS += \
62	../libstandctf/libstandctf.so \
63	$(SRC)/lib/libumem/$(MACHDIR)/libstandumem.so \
64	../libstand/libstand.a
65
66KMDBLIBS = $(STANDLIBS) ../mdb_ks/kmod/mdb_ks
67
68MAPFILE_SOURCES = \
69	../../../common/mdb/mdb_ctf.h \
70	../../../common/kmdb/kmdb_dpi.h \
71	../../../common/kmdb/kmdb_kctl.h \
72	../../../common/kmdb/kmdb_kdi.h \
73	../../../common/mdb/mdb_ks.h \
74	../../../common/mdb/mdb_modapi.h \
75	../../../common/mdb/mdb_param.h \
76	../../../common/kmdb/kmdb_wr.h \
77	../../kmdb/kmdb_dpi_isadep.h \
78	$(MAPFILE_SOURCES_$(MACH))
79
80%.o: ../../../../../uts/intel/promif/%.c
81	$(COMPILE.c) $<
82	$(CTFCONVERT_O)
83
84%.ln: ../../../../../uts/intel/promif/%.c
85	$(LINT.c) -c $<
86