9007 import AT&T regex test suite
[unleashed.git] / usr / src / test / libc-tests / tests / Makefile
blobf9b80255f07c4861cfceccaa320920088ead2cac
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 2016 Joyent, Inc.
18 SUBDIRS = \
19 catopen \
20 fpround \
21 newlocale \
22 nl_langinfo \
23 priv_gettext \
24 random \
25 regex \
26 select \
27 strerror \
28 symbols \
29 threads \
30 wcsrtombs \
31 wctype
33 PROGS = \
34 aligned_alloc \
35 c11_threads \
36 c11_tss \
37 call_once \
38 endian \
39 env-7076 \
40 fnmatch \
41 psignal-5097 \
42 quick_exit_order \
43 quick_exit_status \
44 strcoll-strxfrm-6907 \
45 timespec_get \
46 wcsncasecmp \
47 wcsncasecmp-7344 \
48 wcsncasecmp-7350
50 SCRIPTS = \
51 quick_exit \
52 psignal
54 CPPFLAGS += -D_REENTRANT
56 PROGS32 = $(PROGS:%=%.32)
57 PROGS64 = \
58 $(PROGS:%=%.64) \
59 printf-6961.64
61 aligned_alloc.32 := LDLIBS += -lproc
62 aligned_alloc.64 := LDLIBS64 += -lproc
64 ROOTOPTDIR = $(ROOT)/opt/libc-tests/tests
65 ROOTOPTPROGS = $(PROGS32:%=$(ROOTOPTDIR)/%) \
66 $(PROGS64:%=$(ROOTOPTDIR)/%) \
67 $(SCRIPTS:%=$(ROOTOPTDIR)/%)
69 include $(SRC)/cmd/Makefile.cmd
71 all := TARGET = all
72 install := TARGET = install
73 clean := TARGET = clean
74 clobber := TARGET = clobber
75 lint := TARGET = lint
77 .KEEP_STATE:
79 install: $(SUBDIRS) $(ROOTOPTPROGS)
81 all: $(SUBDIRS) $(PROGS32) $(PROGS64)
83 clean lint: $(SUBDIRS)
85 $(ROOTOPTPROGS): $(PROGS32) $(PROGS64) $(ROOTOPTDIR)
87 $(ROOTOPTDIR):
88 $(INS.dir)
90 $(ROOTOPTDIR)/%: %
91 $(INS.file)
93 $(ROOTOPTDIR)/%: %.ksh
94 $(INS.rename)
96 %.64: %.c
97 $(LINK64.c) -o $@ $< $(LDLIBS64)
98 $(POST_PROCESS)
100 %.32: %.c
101 $(LINK.c) -o $@ $< $(LDLIBS)
102 $(POST_PROCESS)
104 clobber: $(SUBDIRS)
105 $(RM) $(PROGS32) $(PROGS64)
107 $(SUBDIRS): FRC
108 @cd $@; pwd; $(MAKE) $(TARGET)
110 FRC: