1 #
   2 # This file and its contents are supplied under the terms of the
   3 # Common Development and Distribution License ("CDDL"), version 1.0.
   4 # You may only use this file in accordance with the terms of version
   5 # 1.0 of the CDDL.
   6 #
   7 # A full copy of the text of the CDDL should have accompanied this
   8 # source.  A copy of the CDDL is also available via the Internet at
   9 # http://www.illumos.org/license/CDDL.
  10 #
  11 
  12 #
  13 # Copyright 2018 Nexenta Systems, Inc. All rights reserved.
  14 #
  15 
  16 include $(SRC)/cmd/Makefile.cmd
  17 
  18 FILES = \
  19         dirtydata-timestamp.d \
  20         dirtydata.d
  21 
  22 BINFILES = \
  23         capture-flamestacks \
  24         flamegraph \
  25         iscsirwlat \
  26         iscsisvrtop \
  27         nfsio \
  28         nfssvrtop \
  29         nfsutil \
  30         nfswizard \
  31         stackcollapse \
  32         zfs-prefetch \
  33         zilstat \
  34         ziosnoop \
  35         ziotype
  36 
  37 
  38 ROOTDTDIR= $(ROOT)/usr/nexenta/dtrace
  39 ROOTFILES= $(FILES:%=$(ROOTDTDIR)/%)
  40 ROOTBINFILES= $(BINFILES:%=$(ROOTDTDIR)/%)
  41 FILEMODE= 555
  42 
  43 $(ROOTDTDIR)/%: %
  44         $(INS.file)
  45 
  46 .KEEP_STATE:
  47 
  48 all:            $(FILES) $(BINFILES)
  49 
  50 install: all $(ROOTDTDIR) $(ROOTBINFILES) $(ROOTFILES)
  51         @for file in $(BINFILES); do \
  52         $(RM) $(ROOTBIN)/$$file; $(SYMLINK) ../nexenta/dtrace/$$file $(ROOTBIN)/$$file; \
  53         done
  54 
  55 clean clobber lint:
  56 
  57 $(ROOTDTDIR):
  58         $(INS.dir)
  59 
  60 $(ROOTDTDIR) := DIRMODE = 755
  61 
  62 $(ROOTDTDIR)/dirtydata.d := FILEMODE = 644
  63 $(ROOTDTDIR)/dirtydata-timestamp.d := FILEMODE = 644
  64