xref: /illumos-gate/usr/src/test/libc-tests/tests/select/Makefile (revision 45137058c754e4417a4b9610ef655bc26b175a31)
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# Copyright 2016, Richard Lowe.
13
14include $(SRC)/Makefile.master
15include $(SRC)/Makefile.master.64
16include $(SRC)/cmd/Makefile.cmd
17include $(SRC)/cmd/Makefile.cmd.64
18
19ROOTOPTPKG = $(ROOT)/opt/libc-tests
20TESTDIR = $(ROOTOPTPKG)/tests/select
21ROOTBINDIR = $(ROOTOPTPKG)/bin
22
23PROGS= select_test
24
25CSTD= $(CSTD_GNU99)
26
27select_test: select_test.c
28	$(LINK64.c) -o $@ select_test.c $(LDLIBS64)
29	$(POST_PROCESS)
30
31SCRIPTS=select.sh
32CMDS = $(PROGS:%=$(TESTDIR)/%) $(SCRIPTS:%=$(TESTDIR)/%)
33
34$(SCRIPTS) $(CMDS) := FILEMODE = 0555
35
36$(CMDS): $(TESTDIR) $(PROGS)
37
38all: $(PROGS)
39
40clean:
41
42clobber: clean
43	-$(RM) $(PROGS)
44
45install: all $(CMDS)
46
47lint:
48
49$(ROOTBINDIR):
50	$(INS.dir)
51
52$(ROOTBINDIR)/%: %
53	$(INS.file)
54
55$(TESTDIR):
56	$(INS.dir)
57
58$(TESTDIR)/%: %
59	$(INS.file)
60
61$(TESTDIR)/%: %
62	$(INS.file)
63
64.KEEP_STATE:
65