Merge commit '15ada8fc6dd9f38f563acc69f9f22f88a48b752a'
[unleashed/tickless.git] / usr / src / test / libc-tests / tests / Makefile
blob076728faf4bc457f9b55982451bcf5e0e766ca43
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 select \
26 strerror \
27 strxfrm \
28 symbols \
29 threads \
30 wcscoll \
31 wcsrtombs \
32 wctype
34 PROGS = \
35 aligned_alloc \
36 c11_threads \
37 c11_tss \
38 call_once \
39 endian \
40 env-7076 \
41 quick_exit_order \
42 quick_exit_status \
43 strcoll-strxfrm-6907 \
44 timespec_get \
45 wcsncasecmp \
46 wcsncasecmp-7344 \
47 wcsncasecmp-7350
49 SCRIPTS = \
50 quick_exit
53 PROGS32 = $(PROGS:%=%.32)
54 PROGS64 = \
55 $(PROGS:%=%.64) \
56 printf-6961.64
58 aligned_alloc.32 := LDLIBS += -lproc
59 aligned_alloc.64 := LDLIBS64 += -lproc
61 ROOTOPTDIR = $(ROOT)/opt/libc-tests/tests
62 ROOTOPTPROGS = $(PROGS32:%=$(ROOTOPTDIR)/%) \
63 $(PROGS64:%=$(ROOTOPTDIR)/%) \
64 $(SCRIPTS:%=$(ROOTOPTDIR)/%)
66 include $(SRC)/cmd/Makefile.cmd
68 all := TARGET = all
69 install := TARGET = install
70 clean := TARGET = clean
71 clobber := TARGET = clobber
73 .KEEP_STATE:
75 install: $(SUBDIRS) $(ROOTOPTPROGS)
77 all: $(SUBDIRS) $(PROGS32) $(PROGS64)
79 clean: $(SUBDIRS)
81 $(ROOTOPTPROGS): $(PROGS32) $(PROGS64) $(ROOTOPTDIR)
83 $(ROOTOPTDIR):
84 $(INS.dir)
86 $(ROOTOPTDIR)/%: %
87 $(INS.file)
89 $(ROOTOPTDIR)/%: %.ksh
90 $(INS.rename)
92 %.64: %.c
93 $(LINK64.c) -o $@ $< $(LDLIBS64)
94 $(POST_PROCESS)
96 %.32: %.c
97 $(LINK.c) -o $@ $< $(LDLIBS)
98 $(POST_PROCESS)
100 clobber: $(SUBDIRS)
101 $(RM) $(PROGS32) $(PROGS64)
103 $(SUBDIRS): FRC
104 @cd $@; pwd; $(MAKE) $(TARGET)
106 FRC: