xref: /titanic_44/usr/src/cmd/mdb/intel/Makefile.kmdb (revision 9dd0f810214fdc8e1af881a9a5c4b6927629ff9e)
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 2006 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	kaif_activate.c \
38	kaif_idt.c \
39	kaif_start_isadep.c \
40	kmdb_dpi_isadep.c \
41	kmdb_fault_isadep.c \
42	kmdb_kdi_isadep.c \
43	kmdb_promif_isadep.c \
44	kvm_cpu_amd.c \
45	kvm_cpu_p4.c \
46	kvm_isadep.c
47
48KMDBML += \
49	kaif_idthdl.s \
50	kmdb_asmutil.s \
51	kmdb_setcontext.s
52
53KCTLSRCS += \
54	kctl_isadep.c
55
56CTXOFFUSERS = \
57	kmdb_setcontext.o
58
59CPPFLAGS += -DDIS_TEXT
60
61$(CTXOFFUSERS) $(CTXOFFUSERS:%.o=%.ln): kmdb_context_off.h
62
63kaif_activate.o kaif_activate.ln := CPPFLAGS += -D_MACHDEP -D_KMEMUSER
64
65STANDLIBS += \
66	../libstandctf/libstandctf.so \
67	$(SRC)/lib/libumem/$(MACHDIR)/libstandumem.so \
68	../libstand/libstand.a
69
70KMDBLIBS = $(STANDLIBS) ../mdb_ks/kmod/mdb_ks
71
72MAPFILE_SOURCES = \
73	../../../common/mdb/mdb_ctf.h \
74	../../../common/kmdb/kmdb_dpi.h \
75	../../../common/kmdb/kmdb_kctl.h \
76	../../../common/kmdb/kmdb_kdi.h \
77	../../../common/mdb/mdb_ks.h \
78	../../../common/mdb/mdb_modapi.h \
79	../../../common/mdb/mdb_param.h \
80	../../../common/kmdb/kmdb_wr.h \
81	../../kmdb/kmdb_dpi_isadep.h \
82	$(MAPFILE_SOURCES_$(MACH))
83
84%.o: ../../../../../uts/intel/promif/%.c
85	$(COMPILE.c) $<
86	$(CTFCONVERT_O)
87
88%.ln: ../../../../../uts/intel/promif/%.c
89	$(LINT.c) -c $<
90