Print this page
10076 make usr/src/test smatch clean
   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 # Copyright 2016, Richard Lowe.

  13 
  14 include $(SRC)/Makefile.master
  15 include $(SRC)/Makefile.master.64
  16 include $(SRC)/cmd/Makefile.cmd
  17 include $(SRC)/cmd/Makefile.cmd.64
  18 
  19 ROOTOPTPKG = $(ROOT)/opt/libc-tests
  20 TESTDIR = $(ROOTOPTPKG)/tests/select
  21 ROOTBINDIR = $(ROOTOPTPKG)/bin
  22 
  23 PROGS= select_test
  24 
  25 CSTD= $(CSTD_GNU99)
  26 



  27 select_test: select_test.c
  28         $(LINK64.c) -o $@ select_test.c $(LDLIBS64)
  29         $(POST_PROCESS)
  30 
  31 SCRIPTS=select.sh
  32 CMDS = $(PROGS:%=$(TESTDIR)/%) $(SCRIPTS:%=$(TESTDIR)/%)
  33 
  34 $(SCRIPTS) $(CMDS) := FILEMODE = 0555
  35 
  36 $(CMDS): $(TESTDIR) $(PROGS)
  37 
  38 all: $(PROGS)
  39 
  40 clean:
  41 
  42 clobber: clean
  43         -$(RM) $(PROGS)
  44 
  45 install: all $(CMDS)
  46 
   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 # Copyright 2016, Richard Lowe.
  13 # Copyright (c) 2018, Joyent, Inc.
  14 
  15 include $(SRC)/Makefile.master
  16 include $(SRC)/Makefile.master.64
  17 include $(SRC)/cmd/Makefile.cmd
  18 include $(SRC)/cmd/Makefile.cmd.64
  19 
  20 ROOTOPTPKG = $(ROOT)/opt/libc-tests
  21 TESTDIR = $(ROOTOPTPKG)/tests/select
  22 ROOTBINDIR = $(ROOTOPTPKG)/bin
  23 
  24 PROGS= select_test
  25 
  26 CSTD= $(CSTD_GNU99)
  27 
  28 # needs work
  29 SMOFF += all_func_returns
  30 
  31 select_test: select_test.c
  32         $(LINK64.c) -o $@ select_test.c $(LDLIBS64)
  33         $(POST_PROCESS)
  34 
  35 SCRIPTS=select.sh
  36 CMDS = $(PROGS:%=$(TESTDIR)/%) $(SCRIPTS:%=$(TESTDIR)/%)
  37 
  38 $(SCRIPTS) $(CMDS) := FILEMODE = 0555
  39 
  40 $(CMDS): $(TESTDIR) $(PROGS)
  41 
  42 all: $(PROGS)
  43 
  44 clean:
  45 
  46 clobber: clean
  47         -$(RM) $(PROGS)
  48 
  49 install: all $(CMDS)
  50