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) 2018 Joyent, Inc. All rights reserved. 29 # 30 31 KMDBSRCS += \ 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_list.c \ 64 mdb_macalias.c \ 65 kmdb_main.c \ 66 mdb_modapi.c \ 67 mdb_module.c \ 68 kmdb_module.c \ 69 kmdb_module_load.c \ 70 mdb_nm.c \ 71 mdb_nv.c \ 72 mdb_pipeio.c \ 73 mdb_print.c \ 74 kmdb_promio.c \ 75 kmdb_promif.c \ 76 mdb_set.c \ 77 kmdb_shell.c \ 78 mdb_signal.c \ 79 mdb_string.c \ 80 mdb_strio.c \ 81 kmdb_stubs.c \ 82 mdb_tab.c \ 83 mdb_target.c \ 84 kmdb_terminfo.c \ 85 mdb_termio.c \ 86 mdb_typedef.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 95 KMDBML += 96 97 KMDBOBJS = $(KMDBSRCS:%.c=%.o) $(KMDBML:%.s=%.o) 98 99 PROMSRCS += 100 101 PROMOBJS = $(PROMSRCS:%.c=%.o) 102 103 KCTLSRCS += \ 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 112 KCTLML += 113 114 KCTLOBJS = $(KCTLSRCS:%.c=%.o) $(KCTLML:%.s=%.o) 115 116 SRCS += $(KMDBSRCS) $(PROMSRCS) 117 MLSRCS += $(KMDBML) 118 OBJS = $(SRCS:%.c=%.o) $(KMDBML:%.s=%.o) 119 120 ALLOBJS = $(OBJS) $(KCTLOBJS) 121 ALLLINTFILES = $(ALLOBJS:%.o=%.ln) 122 123 # files that need KMDB_VERSION defined 124 VERSFILES = \ 125 kmdb_conf.c \ 126 kctl_main.c 127 VERSOBJS = $(VERSFILES:%.c=%.o)