Print this page
11528 Makefile.noget can get gone
11529 Use -Wno-maybe-initialized


  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 # Copyright (c) 2018, Joyent, Inc.
  26 
  27 PROG= lockstat
  28 OBJS= lockstat.o sym.o
  29 SRCS= $(OBJS:%.o=../%.c)
  30 
  31 include ../../Makefile.cmd
  32 
  33 LDLIBS += -lelf -lkstat -ldtrace
  34 CFLAGS += $(CCVERBOSE)
  35 CFLAGS64 += $(CCVERBOSE)
  36 CERRWARN += -_gcc=-Wno-uninitialized
  37 
  38 SMOFF += index_overflow
  39 
  40 LINTFLAGS += -xerroff=E_SEC_SPRINTF_UNBOUNDED_COPY
  41 LINTFLAGS64 += -xerroff=E_SEC_SPRINTF_UNBOUNDED_COPY
  42 
  43 FILEMODE= 0555
  44 
  45 CLEANFILES += $(OBJS)
  46 
  47 .KEEP_STATE:
  48 
  49 all: $(PROG)
  50 
  51 $(PROG):        $(OBJS)
  52         $(LINK.c) -o $(PROG) $(OBJS) $(LDLIBS)
  53         $(POST_PROCESS)
  54 
  55 clean:
  56         -$(RM) $(CLEANFILES)


  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 # Copyright (c) 2018, Joyent, Inc.
  26 
  27 PROG= lockstat
  28 OBJS= lockstat.o sym.o
  29 SRCS= $(OBJS:%.o=../%.c)
  30 
  31 include ../../Makefile.cmd
  32 
  33 LDLIBS += -lelf -lkstat -ldtrace
  34 CFLAGS += $(CCVERBOSE)
  35 CFLAGS64 += $(CCVERBOSE)
  36 CERRWARN += $(CNOWARN_UNINIT)
  37 
  38 SMOFF += index_overflow
  39 
  40 LINTFLAGS += -xerroff=E_SEC_SPRINTF_UNBOUNDED_COPY
  41 LINTFLAGS64 += -xerroff=E_SEC_SPRINTF_UNBOUNDED_COPY
  42 
  43 FILEMODE= 0555
  44 
  45 CLEANFILES += $(OBJS)
  46 
  47 .KEEP_STATE:
  48 
  49 all: $(PROG)
  50 
  51 $(PROG):        $(OBJS)
  52         $(LINK.c) -o $(PROG) $(OBJS) $(LDLIBS)
  53         $(POST_PROCESS)
  54 
  55 clean:
  56         -$(RM) $(CLEANFILES)