16352 strftime_l() should be more careful with pointer arithmetic
[illumos-gate.git] / usr / src / test / libc-tests / tests / Makefile
blobec666722ce3701f7c770378c57a774caa6461b8c
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.
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.
13 # Copyright (c) 2012 by Delphix. All rights reserved.
14 # Copyright 2015 Garrett D'Amore <garrett@damore.org>
15 # Copyright 2019 Joyent, Inc.
16 # Copyright 2022 OmniOS Community Edition (OmniOSce) Association.
17 # Copyright 2023 Bill Sommerfeld <sommerfeld@alum.mit.edu>
18 # Copyright 2024 Oxide Computer Company
21 SUBDIRS = \
22 catopen \
23 err \
24 fexecve \
25 fpround \
26 i18n \
27 newlocale \
28 nl_langinfo \
29 priv_gettext \
30 qsort \
31 random \
32 regex \
33 select \
34 stdio \
35 symbols \
36 threads \
37 wcsrtombs \
38 wctype
40 PROGS = \
41 aligned_alloc \
42 ascftime \
43 asprintf-14933 \
44 c11_threads \
45 c11_tss \
46 call_once \
47 closefrom \
48 endian \
49 env-7076 \
50 fnmatch \
51 isatty \
52 memchr \
53 memset_s \
54 mutex-16200 \
55 posix_memalign \
56 printf-15294 \
57 printf-9511 \
58 psignal-5097 \
59 quick_exit_order \
60 quick_exit_status \
61 set_constraint_handler_s \
62 strcoll-strxfrm-6907 \
63 strerror \
64 strtonum \
65 timespec_get \
66 wcsncasecmp \
67 wcsncasecmp-7344 \
68 wcsncasecmp-7350 \
69 uchar \
70 utimes
72 SCRIPTS = \
73 quick_exit \
74 psignal
76 CPPFLAGS += -D_REENTRANT
78 PROGS32 = $(PROGS:%=%.32)
79 PROGS64 = \
80 $(PROGS:%=%.64) \
81 printf-6961.64
83 aligned_alloc.32 := LDLIBS += -lproc
84 aligned_alloc.64 := LDLIBS64 += -lproc
85 posix_memalign.32 := LDLIBS += -lproc
86 posix_memalign.64 := LDLIBS64 += -lproc
88 asprintf-14933.32 := CSTD=$(GNU_C99)
89 asprintf-14933.64 := CSTD=$(GNU_C99)
91 memset_s.32 := CPPFLAGS += -D__STDC_WANT_LIB_EXT1__=1
92 memset_s.64 := CPPFLAGS += -D__STDC_WANT_LIB_EXT1__=1
93 set_constraint_handler_s.32 := CPPFLAGS += -D__STDC_WANT_LIB_EXT1__=1
94 set_constraint_handler_s.64 := CPPFLAGS += -D__STDC_WANT_LIB_EXT1__=1
96 isatty.32 := CSTD=$(GNU_C99)
97 isatty.64 := CSTD=$(GNU_C99)
99 mutex-16200.32 := LDLIBS += -lproc
100 mutex-16200.64 := LDLIBS64 += -lproc
101 mutex-16200.32 := CSTD=$(GNU_C99)
102 mutex-16200.64 := CSTD=$(GNU_C99)
104 strtonum.32 := CSTD=$(GNU_C99)
105 strtonum.64 := CSTD=$(GNU_C99)
107 ROOTOPTDIR = $(ROOT)/opt/libc-tests/tests
108 ROOTOPTPROGS = $(PROGS32:%=$(ROOTOPTDIR)/%) \
109 $(PROGS64:%=$(ROOTOPTDIR)/%) \
110 $(SCRIPTS:%=$(ROOTOPTDIR)/%)
112 include $(SRC)/cmd/Makefile.cmd
114 all := TARGET = all
115 install := TARGET = install
116 clean := TARGET = clean
117 clobber := TARGET = clobber
118 lint := TARGET = lint
120 .KEEP_STATE:
122 install: $(SUBDIRS) $(ROOTOPTPROGS)
124 all: $(SUBDIRS) $(PROGS32) $(PROGS64)
126 clean lint: $(SUBDIRS)
128 $(ROOTOPTPROGS): $(PROGS32) $(PROGS64) $(ROOTOPTDIR)
130 $(ROOTOPTDIR):
131 $(INS.dir)
133 $(ROOTOPTDIR)/%: %
134 $(INS.file)
136 $(ROOTOPTDIR)/%: %.ksh
137 $(INS.rename)
139 %.64: %.c
140 $(LINK64.c) -o $@ $< $(LDLIBS64)
141 $(POST_PROCESS)
143 %.32: %.c
144 $(LINK.c) -o $@ $< $(LDLIBS)
145 $(POST_PROCESS)
147 clobber: $(SUBDIRS)
148 $(RM) $(PROGS32) $(PROGS64)
150 $(SUBDIRS): FRC
151 @cd $@; pwd; $(MAKE) $(TARGET)
153 FRC: