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