xref: /titanic_52/usr/src/cmd/mdb/intel/Makefile.kmdb (revision ea8dc4b6d2251b437950c0056bc626b311c73c27)
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#
28
29PROMSRCS += \
30	prom_env.c \
31	prom_getchar.c \
32	prom_init.c \
33	prom_printf.c \
34	prom_putchar.c
35
36KMDBSRCS += \
37	bits.c \
38	dis_tables.c \
39	inteldis.c \
40	kaif.c \
41	kaif_activate.c \
42	kaif_idt.c \
43	kaif_start_isadep.c \
44	kmdb_dpi_isadep.c \
45	kmdb_fault_isadep.c \
46	kmdb_kdi_isadep.c \
47	kmdb_promif_isadep.c \
48	kvm_cpu_amd.c \
49	kvm_cpu_p4.c \
50	kvm_isadep.c
51
52KMDBML += \
53	kaif_idthdl.s \
54	kmdb_asmutil.s \
55	kmdb_setcontext.s
56
57KCTLSRCS += \
58	kctl_isadep.c
59
60CTXOFFUSERS = \
61	kmdb_setcontext.o
62
63OSINCDIRS += $(SRC)/common/dis/i386
64CPPFLAGS += -DDIS_TEXT
65
66$(CTXOFFUSERS) $(CTXOFFUSERS:%.o=%.ln): kmdb_context_off.h
67
68kaif_activate.o kaif_activate.ln := CPPFLAGS += -D_MACHDEP -D_KMEMUSER
69
70STANDLIBS += \
71	../libstandctf/libstandctf.so \
72	$(SRC)/lib/libumem/$(MACHDIR)/libstandumem.so \
73	../libstand/libstand.a
74
75KMDBLIBS = $(STANDLIBS) ../mdb_ks/kmod/mdb_ks
76
77MAPFILE_SOURCES = \
78	../../../common/mdb/mdb_ctf.h \
79	../../../common/kmdb/kmdb_dpi.h \
80	../../../common/kmdb/kmdb_kctl.h \
81	../../../common/kmdb/kmdb_kdi.h \
82	../../../common/mdb/mdb_ks.h \
83	../../../common/mdb/mdb_modapi.h \
84	../../../common/mdb/mdb_param.h \
85	../../../common/kmdb/kmdb_wr.h \
86	../../kmdb/kmdb_dpi_isadep.h \
87	$(MAPFILE_SOURCES_$(MACH))
88
89%.o: $(SRC)/common/dis/i386/%.c
90	$(COMPILE.c) $<
91	$(CTFCONVERT_O)
92
93%.o: ../../../../../uts/intel/promif/%.c
94	$(COMPILE.c) $<
95	$(CTFCONVERT_O)
96
97%.ln: $(SRC)/common/dis/i386/%.c
98	$(LINT.c) -c $<
99
100%.ln: ../../../../../uts/intel/promif/%.c
101	$(LINT.c) -c $<
102