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 2021 Joyent, Inc. 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 kmdb_conf.c \ 41 kmdb_context.c \ 42 kmdb_create.c \ 43 mdb_ctf.c \ 44 kmdb_ctf_open.c \ 45 mdb_debug.c \ 46 kmdb_demangle.c \ 47 mdb_disasm.c \ 48 kmdb_dl.c \ 49 kmdb_dpi.c \ 50 mdb_dump.c \ 51 mdb_err.c \ 52 mdb_evset.c \ 53 kmdb_fault.c \ 54 kmdb_fdio.c \ 55 mdb_fmt.c \ 56 mdb_frame.c \ 57 mdb_gelf.c \ 58 mdb_help.c \ 59 mdb_io.c \ 60 kmdb_kdi.c \ 61 kmdb_kvm.c \ 62 mdb_logio.c \ 63 mdb_linkerset.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_walkers.c \ 93 mdb_wcb.c \ 94 mdb_whatis.c \ 95 kmdb_wr.c 96 97KMDBML += 98 99KMDBOBJS = $(KMDBSRCS:%.c=%.o) $(KMDBML:%.s=%.o) 100 101PROMSRCS += 102 103PROMOBJS = $(PROMSRCS:%.c=%.o) 104 105KCTLSRCS += \ 106 kctl_auxv.c \ 107 kctl_dmod.c \ 108 kctl_err.c \ 109 kctl_main.c \ 110 kctl_mod.c \ 111 kctl_string.c \ 112 kctl_wr.c 113 114KCTLML += 115 116KCTLOBJS = $(KCTLSRCS:%.c=%.o) $(KCTLML:%.s=%.o) 117 118SRCS += $(KMDBSRCS) $(PROMSRCS) 119MLSRCS += $(KMDBML) 120OBJS = $(SRCS:%.c=%.o) $(KMDBML:%.s=%.o) 121 122ALLOBJS = $(OBJS) $(KCTLOBJS) 123ALLLINTFILES = $(ALLOBJS:%.o=%.ln) 124 125# files that need KMDB_VERSION defined 126VERSFILES = \ 127 kmdb_conf.c \ 128 kctl_main.c 129VERSOBJS = $(VERSFILES:%.c=%.o) 130