Print this page
16446 dtrace consumers should not be isaexec'd
Change-Id: Ibf80c7283c421cba98e80dce272c6dd51d24bb87

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/plockstat/Makefile
          +++ new/usr/src/cmd/plockstat/Makefile
↓ open down ↓ 15 lines elided ↑ open up ↑
  16   16  # If applicable, add the following below this CDDL HEADER, with the
  17   17  # fields enclosed by brackets "[]" replaced with your own identifying
  18   18  # information: Portions Copyright [yyyy] [name of copyright owner]
  19   19  #
  20   20  # CDDL HEADER END
  21   21  #
  22   22  #
  23   23  # Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
  24   24  # Use is subject to license terms.
  25   25  #
  26      -#ident  "%Z%%M% %I%     %E% SMI"
  27   26  
  28   27  PROG = plockstat
       28 +OBJS = plockstat.o
  29   29  
  30   30  include ../Makefile.cmd
       31 +include ../Makefile.cmd.64
  31   32  
  32      -$(64ONLY)SUBDIRS = $(MACH)
  33      -$(BUILD64)SUBDIRS += $(MACH64)
       33 +LDLIBS += -ldtrace -lproc
  34   34  
  35      -all     :=      TARGET = all
  36      -install :=      TARGET = install
  37      -clean   :=      TARGET = clean
  38      -clobber :=      TARGET = clobber
  39      -lint    :=      TARGET = lint
       35 +CLEANFILES += $(OBJS)
  40   36  
       37 +ROOTLINK = $(PROG:%=$(ROOTUSRSBIN64)/%)
       38 +
  41   39  .KEEP_STATE:
  42   40  
  43      -all: $(SUBDIRS)
       41 +all: $(PROG)
  44   42  
  45      -clean clobber lint: $(SUBDIRS)
       43 +install: all $(ROOTUSRSBINPROG) $(ROOTLINK)
  46   44  
  47      -install: $(SUBDIRS)
  48      -        -$(RM) $(ROOTUSRSBINPROG)
  49      -        -$(LN) $(ISAEXEC) $(ROOTUSRSBINPROG)
       45 +$(ROOTLINK):
       46 +        $(RM) $@; $(SYMLINK) ../../sbin/$(@F) $@
  50   47  
  51      -$(SUBDIRS): FRC
  52      -        @cd $@; pwd; $(MAKE) $(TARGET)
       48 +$(PROG): $(OBJS)
       49 +        $(LINK.c) -o $@ $(OBJS) $(LDLIBS)
       50 +        $(POST_PROCESS) ; $(STRIP_STABS)
  53   51  
  54      -FRC:
       52 +clean:
       53 +        -$(RM) $(CLEANFILES)
       54 +
       55 +include ../Makefile.targ
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX