Print this page
10076 make usr/src/test smatch clean
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/test/libc-tests/tests/Makefile
+++ new/usr/src/test/libc-tests/tests/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
↓ open down ↓ |
4 lines elided |
↑ open up ↑ |
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 (c) 2012 by Delphix. All rights reserved.
14 14 # Copyright 2015 Garrett D'Amore <garrett@damore.org>
15 -# Copyright 2016 Joyent, Inc.
15 +# Copyright (c) 2018, Joyent, Inc.
16 16 #
17 17
18 18 SUBDIRS = \
19 19 catopen \
20 20 fpround \
21 21 newlocale \
22 22 nl_langinfo \
23 23 priv_gettext \
24 24 random \
25 25 regex \
26 26 select \
27 27 strerror \
28 28 symbols \
29 29 threads \
30 30 wcsrtombs \
31 31 wctype
32 32
33 33 PROGS = \
34 34 aligned_alloc \
35 35 c11_threads \
36 36 c11_tss \
37 37 call_once \
38 38 endian \
39 39 env-7076 \
40 40 fnmatch \
41 41 memset_s \
42 42 printf-9511 \
43 43 psignal-5097 \
44 44 quick_exit_order \
45 45 quick_exit_status \
46 46 set_constraint_handler_s \
47 47 strcoll-strxfrm-6907 \
48 48 timespec_get \
↓ open down ↓ |
23 lines elided |
↑ open up ↑ |
49 49 wcsncasecmp \
50 50 wcsncasecmp-7344 \
51 51 wcsncasecmp-7350
52 52
53 53 SCRIPTS = \
54 54 quick_exit \
55 55 psignal
56 56
57 57 CPPFLAGS += -D_REENTRANT
58 58
59 +# needs work
60 +SMOFF += all_func_returns,snprintf_overflow
61 +
59 62 PROGS32 = $(PROGS:%=%.32)
60 63 PROGS64 = \
61 64 $(PROGS:%=%.64) \
62 65 printf-6961.64
63 66
64 67 aligned_alloc.32 := LDLIBS += -lproc
65 68 aligned_alloc.64 := LDLIBS64 += -lproc
66 69
67 70 memset_s.32 := CPPFLAGS += -D__STDC_WANT_LIB_EXT1__=1
68 71 memset_s.64 := CPPFLAGS += -D__STDC_WANT_LIB_EXT1__=1
69 72 set_constraint_handler_s.32 := CPPFLAGS += -D__STDC_WANT_LIB_EXT1__=1
70 73 set_constraint_handler_s.64 := CPPFLAGS += -D__STDC_WANT_LIB_EXT1__=1
71 74
72 75 ROOTOPTDIR = $(ROOT)/opt/libc-tests/tests
73 76 ROOTOPTPROGS = $(PROGS32:%=$(ROOTOPTDIR)/%) \
74 77 $(PROGS64:%=$(ROOTOPTDIR)/%) \
75 78 $(SCRIPTS:%=$(ROOTOPTDIR)/%)
76 79
77 80 include $(SRC)/cmd/Makefile.cmd
78 81
79 82 all := TARGET = all
80 83 install := TARGET = install
81 84 clean := TARGET = clean
82 85 clobber := TARGET = clobber
83 86 lint := TARGET = lint
84 87
85 88 .KEEP_STATE:
86 89
87 90 install: $(SUBDIRS) $(ROOTOPTPROGS)
88 91
89 92 all: $(SUBDIRS) $(PROGS32) $(PROGS64)
90 93
91 94 clean lint: $(SUBDIRS)
92 95
93 96 $(ROOTOPTPROGS): $(PROGS32) $(PROGS64) $(ROOTOPTDIR)
94 97
95 98 $(ROOTOPTDIR):
96 99 $(INS.dir)
97 100
98 101 $(ROOTOPTDIR)/%: %
99 102 $(INS.file)
100 103
101 104 $(ROOTOPTDIR)/%: %.ksh
102 105 $(INS.rename)
103 106
104 107 %.64: %.c
105 108 $(LINK64.c) -o $@ $< $(LDLIBS64)
106 109 $(POST_PROCESS)
107 110
108 111 %.32: %.c
109 112 $(LINK.c) -o $@ $< $(LDLIBS)
110 113 $(POST_PROCESS)
111 114
112 115 clobber: $(SUBDIRS)
113 116 $(RM) $(PROGS32) $(PROGS64)
114 117
115 118 $(SUBDIRS): FRC
116 119 @cd $@; pwd; $(MAKE) $(TARGET)
117 120
118 121 FRC:
↓ open down ↓ |
50 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX