xref: /titanic_44/usr/src/cmd/mdb/Makefile.kmdb.files (revision 5fd03bc0f2e00e7ba02316c2e08f45d52aab15db)
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_typedef.c \
88	mdb_umem.c \
89	kmdb_umemglue.c \
90	mdb_value.c \
91	mdb_vcb.c \
92	mdb_wcb.c \
93	mdb_whatis.c \
94	kmdb_wr.c
95
96KMDBML +=
97
98KMDBOBJS = $(KMDBSRCS:%.c=%.o) $(KMDBML:%.s=%.o)
99
100PROMSRCS +=
101
102PROMOBJS = $(PROMSRCS:%.c=%.o)
103
104KCTLSRCS += \
105	kctl_auxv.c \
106	kctl_dmod.c \
107	kctl_err.c \
108	kctl_main.c \
109	kctl_mod.c \
110	kctl_string.c \
111	kctl_wr.c
112
113KCTLML +=
114
115KCTLOBJS = $(KCTLSRCS:%.c=%.o) $(KCTLML:%.s=%.o)
116
117SRCS += $(KMDBSRCS) $(PROMSRCS)
118MLSRCS += $(KMDBML)
119OBJS = $(SRCS:%.c=%.o) $(KMDBML:%.s=%.o)
120
121ALLOBJS = $(OBJS) $(KCTLOBJS)
122ALLLINTFILES = $(ALLOBJS:%.o=%.ln)
123
124# files that need KMDB_VERSION defined
125VERSFILES = \
126	kmdb_conf.c \
127	kctl_main.c
128VERSOBJS = $(VERSFILES:%.c=%.o)
129