Print this page
Rich's feedback


  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 2011 Nexenta Systems, Inc.  All rights reserved.
  28 # Copyright (c) 2012 by Delphix. All rights reserved.
  29 # Copyright (c) 2012 Joyent, Inc. All rights reserved.

  30 #
  31 
  32 .KEEP_STATE:
  33 .SUFFIXES:
  34 
  35 SRCS += \
  36         ffs.c \
  37         mdb.c \
  38         mdb_addrvec.c \
  39         mdb_argvec.c \
  40         mdb_callb.c \
  41         mdb_cmdbuf.c \
  42         mdb_cmds.c \
  43         mdb_conf.c \
  44         mdb_context.c \
  45         mdb_create.c \
  46         mdb_ctf.c \
  47         mdb_ctf_open.c \
  48         mdb_debug.c \
  49         mdb_demangle.c \


  82         mdb_string.c \
  83         mdb_strio.c \
  84         mdb_tab.c \
  85         mdb_target.c \
  86         mdb_tdb.c \
  87         mdb_termio.c \
  88         mdb_typedef.c \
  89         mdb_umem.c \
  90         mdb_value.c \
  91         mdb_vcb.c \
  92         mdb_wcb.c \
  93         mdb_whatis.c
  94 
  95 $(NOT_RELEASE_BUILD)CPPFLAGS += -DDEBUG
  96 CPPFLAGS += -D_MDB -I. -I../.. -I../../../common
  97 
  98 CSTD=   $(CSTD_GNU99)
  99 C99LMODE=       -Xc99=%all
 100 
 101 LDLIBS += -lcurses -lkvm -lproc -lrtld_db -lctf -lumem -ldisasm -lscf
 102 LDLIBS += -lsysdemangle
 103 
 104 CERRWARN += -_gcc=-Wno-uninitialized
 105 CERRWARN += -_gcc=-Wno-char-subscripts
 106 CERRWARN += -_gcc=-Wno-clobbered
 107 CERRWARN += -_gcc=-Wno-parentheses
 108 CERRWARN += -_gcc=-Wno-unused-label
 109 CERRWARN += -_gcc=-Wno-unused-variable
 110 
 111 #
 112 # -erroff=E_INCONS_ARG_DECL2 works around a problem where lint gets confused
 113 # about how struct mdb_tgt_gregset is used in mdb_tgt_stack_f() and
 114 # mdb_tgt_stack_iter_f(). Will be resolved as part of fix for CR 6749868.
 115 #
 116 LINTFLAGS += -n -errtags=yes -erroff=E_INCONS_ARG_DECL2
 117 LINTFILES = $(SRCS:%.c=%.ln)
 118 
 119 PROG = mdb
 120 OBJS = $(SRCS:%.c=%.o) mdb_lex.o mdb_grammar.o
 121 
 122 LINK = adb




  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 2011 Nexenta Systems, Inc.  All rights reserved.
  28 # Copyright (c) 2012 by Delphix. All rights reserved.
  29 # Copyright (c) 2012 Joyent, Inc. All rights reserved.
  30 # Copyright 2018 Jason King
  31 #
  32 
  33 .KEEP_STATE:
  34 .SUFFIXES:
  35 
  36 SRCS += \
  37         ffs.c \
  38         mdb.c \
  39         mdb_addrvec.c \
  40         mdb_argvec.c \
  41         mdb_callb.c \
  42         mdb_cmdbuf.c \
  43         mdb_cmds.c \
  44         mdb_conf.c \
  45         mdb_context.c \
  46         mdb_create.c \
  47         mdb_ctf.c \
  48         mdb_ctf_open.c \
  49         mdb_debug.c \
  50         mdb_demangle.c \


  83         mdb_string.c \
  84         mdb_strio.c \
  85         mdb_tab.c \
  86         mdb_target.c \
  87         mdb_tdb.c \
  88         mdb_termio.c \
  89         mdb_typedef.c \
  90         mdb_umem.c \
  91         mdb_value.c \
  92         mdb_vcb.c \
  93         mdb_wcb.c \
  94         mdb_whatis.c
  95 
  96 $(NOT_RELEASE_BUILD)CPPFLAGS += -DDEBUG
  97 CPPFLAGS += -D_MDB -I. -I../.. -I../../../common
  98 
  99 CSTD=   $(CSTD_GNU99)
 100 C99LMODE=       -Xc99=%all
 101 
 102 LDLIBS += -lcurses -lkvm -lproc -lrtld_db -lctf -lumem -ldisasm -lscf
 103 LDLIBS += -ldemangle-sys
 104 
 105 CERRWARN += -_gcc=-Wno-uninitialized
 106 CERRWARN += -_gcc=-Wno-char-subscripts
 107 CERRWARN += -_gcc=-Wno-clobbered
 108 CERRWARN += -_gcc=-Wno-parentheses
 109 CERRWARN += -_gcc=-Wno-unused-label
 110 CERRWARN += -_gcc=-Wno-unused-variable
 111 
 112 #
 113 # -erroff=E_INCONS_ARG_DECL2 works around a problem where lint gets confused
 114 # about how struct mdb_tgt_gregset is used in mdb_tgt_stack_f() and
 115 # mdb_tgt_stack_iter_f(). Will be resolved as part of fix for CR 6749868.
 116 #
 117 LINTFLAGS += -n -errtags=yes -erroff=E_INCONS_ARG_DECL2
 118 LINTFILES = $(SRCS:%.c=%.ln)
 119 
 120 PROG = mdb
 121 OBJS = $(SRCS:%.c=%.o) mdb_lex.o mdb_grammar.o
 122 
 123 LINK = adb