Print this page
    
lgen shouldn't be in file-locking tests
Reduce lint noise in file-locking tests
    
      
        | Split | 
	Close | 
      
      | Expand all | 
      | Collapse all | 
    
    
          --- old/usr/src/test/os-tests/tests/file-locking/Makefile
          +++ new/usr/src/test/os-tests/tests/file-locking/Makefile
   1    1  #
   2    2  # This file and its contents are supplied under the terms of the
   3    3  # Common Development and Distribution License ("CDDL"), version 1.0.
   4    4  # You may only use this file in accordance with the terms of version
   5    5  # 1.0 of the CDDL.
   6    6  #
   7    7  # A full copy of the text of the CDDL should have accompanied this
   8    8  # source.  A copy of the CDDL is also available via the Internet at
   9    9  # http://www.illumos.org/license/CDDL.
  10   10  #
  11   11  
  12   12  #
  13   13  # Copyright 2016 Joyent, Inc.
  14   14  #
  15   15  
  16   16  include $(SRC)/cmd/Makefile.cmd
  17   17  include $(SRC)/test/Makefile.com
  
    | 
      ↓ open down ↓ | 
    17 lines elided | 
    
      ↑ open up ↑ | 
  
  18   18  
  19   19  UTILS = util.c
  20   20  
  21   21  PROGS = \
  22   22          runtests \
  23   23          acquire-lock
  24   24  
  25   25  C99MODE = -xc99=%all
  26   26  
  27   27  SRCS = $(PROGS:%=%.c) $(UTILS)
       28 +LINTS = $(SRCS:%.c=%.ln)
  28   29  PROGS32 = $(PROGS:%=%.32)
  29   30  PROGS64 = $(PROGS:%=%.64)
  30   31  
  31      -runtests.32 :=  LDLIBS += -lgen
  32      -runtests.64 :=  LDLIBS64 += -lgen
  33      -
  34   32  ROOTOPTDIR = $(ROOT)/opt/os-tests/tests/file-locking
  35   33  ROOTOPTPROGS = $(PROGS32:%=$(ROOTOPTDIR)/%) \
  36   34          $(PROGS64:%=$(ROOTOPTDIR)/%)
  37   35  
  38   36  all     :=      TARGET = all
  39   37  install :=      TARGET = install
  40   38  clean   :=      TARGET = clean
  41   39  clobber :=      TARGET = clobber
  42   40  lint    :=      TARGET = lint
  43   41  
  44   42  .KEEP_STATE:
  45   43  
  46   44  install: $(ROOTOPTPROGS)
  47   45  
  48   46  all: $(PROGS32) $(PROGS64)
  49   47  
  50      -lint: lint_SRCS
       48 +lint: $(LINTS)
  51   49  
  52   50  clean:
  53   51          -rm $(PROGS32) $(PROGS64)
  54   52  
  55   53  $(ROOTOPTPROGS): $(PROGS32) $(PROGS64) $(ROOTOPTDIR)
  56   54  
  57   55  $(ROOTOPTDIR):
  58   56          $(INS.dir)
  59   57  
  60   58  $(ROOTOPTDIR)/%: %
  61   59          $(INS.file)
  62   60  
  63   61  $(ROOTOPTDIR)/%: %.ksh
  64   62          $(INS.rename)
  65   63  
  66   64  %.64: %.c
  67   65          $(LINK64.c) -o $@ $< $(UTILS) $(LDLIBS64)
  68   66          $(POST_PROCESS)
  69   67  
  70   68  %.32: %.c
  71   69          $(LINK.c) -o $@ $< $(UTILS) $(LDLIBS)
  72   70          $(POST_PROCESS)
  73   71  
  74   72  clobber:
  75   73          $(RM) $(PROGS32) $(PROGS64)
  76   74  
  77   75  FRC:
  
    | 
      ↓ open down ↓ | 
    17 lines elided | 
    
      ↑ open up ↑ | 
  
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX