Print this page
8548 want memset_s(3C)
Reviewed by: Robert Mustacchi <rm@joyent.com>
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
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 15 # Copyright 2016 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 \
↓ open down ↓ |
30 lines elided |
↑ open up ↑ |
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 + memset_s \
41 42 printf-9511 \
42 43 psignal-5097 \
43 44 quick_exit_order \
44 45 quick_exit_status \
46 + set_constraint_handler_s \
45 47 strcoll-strxfrm-6907 \
46 48 timespec_get \
47 49 wcsncasecmp \
48 50 wcsncasecmp-7344 \
49 51 wcsncasecmp-7350
50 52
51 53 SCRIPTS = \
52 54 quick_exit \
53 55 psignal
54 56
55 57 CPPFLAGS += -D_REENTRANT
56 58
57 59 PROGS32 = $(PROGS:%=%.32)
58 60 PROGS64 = \
59 61 $(PROGS:%=%.64) \
60 62 printf-6961.64
61 63
62 64 aligned_alloc.32 := LDLIBS += -lproc
63 65 aligned_alloc.64 := LDLIBS64 += -lproc
64 66
67 +memset_s.32 := CPPFLAGS += -D__STDC_WANT_LIB_EXT1__=1
68 +memset_s.64 := CPPFLAGS += -D__STDC_WANT_LIB_EXT1__=1
69 +set_constraint_handler_s.32 := CPPFLAGS += -D__STDC_WANT_LIB_EXT1__=1
70 +set_constraint_handler_s.64 := CPPFLAGS += -D__STDC_WANT_LIB_EXT1__=1
71 +
65 72 ROOTOPTDIR = $(ROOT)/opt/libc-tests/tests
66 73 ROOTOPTPROGS = $(PROGS32:%=$(ROOTOPTDIR)/%) \
67 74 $(PROGS64:%=$(ROOTOPTDIR)/%) \
68 75 $(SCRIPTS:%=$(ROOTOPTDIR)/%)
69 76
70 77 include $(SRC)/cmd/Makefile.cmd
71 78
72 79 all := TARGET = all
73 80 install := TARGET = install
74 81 clean := TARGET = clean
75 82 clobber := TARGET = clobber
76 83 lint := TARGET = lint
77 84
78 85 .KEEP_STATE:
79 86
80 87 install: $(SUBDIRS) $(ROOTOPTPROGS)
81 88
82 89 all: $(SUBDIRS) $(PROGS32) $(PROGS64)
83 90
84 91 clean lint: $(SUBDIRS)
85 92
86 93 $(ROOTOPTPROGS): $(PROGS32) $(PROGS64) $(ROOTOPTDIR)
87 94
88 95 $(ROOTOPTDIR):
89 96 $(INS.dir)
90 97
91 98 $(ROOTOPTDIR)/%: %
92 99 $(INS.file)
93 100
94 101 $(ROOTOPTDIR)/%: %.ksh
95 102 $(INS.rename)
96 103
97 104 %.64: %.c
98 105 $(LINK64.c) -o $@ $< $(LDLIBS64)
99 106 $(POST_PROCESS)
100 107
101 108 %.32: %.c
102 109 $(LINK.c) -o $@ $< $(LDLIBS)
103 110 $(POST_PROCESS)
104 111
105 112 clobber: $(SUBDIRS)
106 113 $(RM) $(PROGS32) $(PROGS64)
107 114
108 115 $(SUBDIRS): FRC
109 116 @cd $@; pwd; $(MAKE) $(TARGET)
110 117
111 118 FRC:
↓ open down ↓ |
37 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX