xref: /illumos-gate/usr/src/cmd/mdb/Makefile.kmdb.files (revision 3b6e0a598869dfc84461624e8699bf51738f68b3)
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 2009 Sun Microsystems, Inc.  All rights reserved.
23# Use is subject to license terms.
24#
25
26#
27# Copyright (c) 2012 by Delphix. All rights reserved.
28# Copyright (c) 2012 Joyent, Inc. All rights reserved.
29#
30
31KMDBSRCS += \
32	ffs.c \
33	kaif_start.c \
34	mdb.c \
35	mdb_addrvec.c \
36	mdb_argvec.c \
37	mdb_callb.c \
38	mdb_cmdbuf.c \
39	mdb_cmds.c \
40	kvm_cpu.c \
41	kmdb_conf.c \
42	kmdb_context.c \
43	kmdb_create.c \
44	mdb_ctf.c \
45	kmdb_ctf_open.c \
46	mdb_debug.c \
47	kmdb_demangle.c \
48	mdb_disasm.c \
49	kmdb_dl.c \
50	kmdb_dpi.c \
51	mdb_dump.c \
52	mdb_err.c \
53	mdb_evset.c \
54	kmdb_fault.c \
55	kmdb_fdio.c \
56	mdb_fmt.c \
57	mdb_frame.c \
58	mdb_gelf.c \
59	mdb_help.c \
60	mdb_io.c \
61	kmdb_kdi.c \
62	kmdb_kvm.c \
63	mdb_logio.c \
64	mdb_list.c \
65	mdb_macalias.c \
66	kmdb_main.c \
67	mdb_modapi.c \
68	mdb_module.c \
69	kmdb_module.c \
70	kmdb_module_load.c \
71	mdb_nm.c \
72	mdb_nv.c \
73	mdb_pipeio.c \
74	mdb_print.c \
75	kmdb_promio.c \
76	kmdb_promif.c \
77	mdb_set.c \
78	kmdb_shell.c \
79	mdb_signal.c \
80	mdb_string.c \
81	mdb_strio.c \
82	kmdb_stubs.c \
83	mdb_tab.c \
84	mdb_target.c \
85	kmdb_terminfo.c \
86	mdb_termio.c \
87	mdb_umem.c \
88	kmdb_umemglue.c \
89	mdb_value.c \
90	mdb_vcb.c \
91	mdb_wcb.c \
92	mdb_whatis.c \
93	kmdb_wr.c
94
95KMDBML +=
96
97KMDBOBJS = $(KMDBSRCS:%.c=%.o) $(KMDBML:%.s=%.o)
98
99PROMSRCS +=
100
101PROMOBJS = $(PROMSRCS:%.c=%.o)
102
103KCTLSRCS += \
104	kctl_auxv.c \
105	kctl_dmod.c \
106	kctl_err.c \
107	kctl_main.c \
108	kctl_mod.c \
109	kctl_string.c \
110	kctl_wr.c
111
112KCTLML +=
113
114KCTLOBJS = $(KCTLSRCS:%.c=%.o) $(KCTLML:%.s=%.o)
115
116SRCS += $(KMDBSRCS) $(PROMSRCS)
117MLSRCS += $(KMDBML)
118OBJS = $(SRCS:%.c=%.o) $(KMDBML:%.s=%.o)
119
120ALLOBJS = $(OBJS) $(KCTLOBJS)
121ALLLINTFILES = $(ALLOBJS:%.o=%.ln)
122
123# files that need KMDB_VERSION defined
124VERSFILES = \
125	kmdb_conf.c \
126	kctl_main.c
127VERSOBJS = $(VERSFILES:%.c=%.o)
128