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