xref: /illumos-gate/usr/src/test/libc-tests/cfg/Makefile (revision 2a6e99a0f1f7d22c0396e8b2ce9b9babbd1056cf)
1#
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.
6#
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.
10#
11
12#
13# Copyright 2015 Garrett D'Amore <garrett@damore.org>
14# Copyright (c) 2012 by Delphix. All rights reserved.
15#
16
17include $(SRC)/Makefile.master
18
19CFGS = README \
20	compilation.cfg \
21	symbols/README \
22	symbols/assert_h.cfg \
23	symbols/ctype_h.cfg \
24	symbols/dirent_h.cfg \
25	symbols/fcntl_h.cfg \
26	symbols/locale_h.cfg \
27	symbols/math_h.cfg \
28	symbols/netdb_h.cfg \
29	symbols/pthread_h.cfg \
30	symbols/signal_h.cfg \
31	symbols/stdalign_h.cfg \
32	symbols/stddef_h.cfg \
33	symbols/stdio_h.cfg \
34	symbols/stdlib_h.cfg \
35	symbols/stdnoreturn_h.cfg \
36	symbols/string_h.cfg \
37	symbols/strings_h.cfg \
38	symbols/sys_stat_h.cfg \
39	symbols/sys_time_h.cfg \
40	symbols/sys_timeb_h.cfg \
41	symbols/time_h.cfg \
42	symbols/threads_h.cfg \
43	symbols/ucontext_h.cfg \
44	symbols/unistd_h.cfg \
45	symbols/wchar_h.cfg \
46	symbols/wctype_h.cfg
47
48ROOTOPTPKG = $(ROOT)/opt/libc-tests
49ROOTOPTPKGCFG = $(ROOT)/opt/libc-tests/cfg
50ROOTOPTPKGDIRS = $(ROOTOPTPKG) \
51	$(ROOTOPTPKGCFG) \
52	$(ROOTOPTPKGCFG)/symbols
53
54FILES = $(CFGS:%=$(ROOTOPTPKGCFG)/%)
55$(FILES) := FILEMODE = 0444
56
57all: $(CFGS)
58
59install: $(ROOTOPTPKG) $(ROOTOPTPKGCFG) $(FILES)
60
61clean lint clobber:
62
63$(ROOTOPTPKGDIRS):
64	$(INS.dir)
65
66$(ROOTOPTPKGCFG)/%: % $(ROOTOPTPKGDIRS)
67	$(INS.file)
68