xref: /illumos-gate/usr/src/test/libc-tests/tests/select/Makefile (revision 2209d3c850d80c0681948f966816f28f767575cb)
1*2209d3c8SRichard Lowe#
2*2209d3c8SRichard Lowe# This file and its contents are supplied under the terms of the
3*2209d3c8SRichard Lowe# Common Development and Distribution License ("CDDL"), version 1.0.
4*2209d3c8SRichard Lowe# You may only use this file in accordance with the terms of version
5*2209d3c8SRichard Lowe# 1.0 of the CDDL.
6*2209d3c8SRichard Lowe#
7*2209d3c8SRichard Lowe# A full copy of the text of the CDDL should have accompanied this
8*2209d3c8SRichard Lowe# source.  A copy of the CDDL is also available via the Internet at
9*2209d3c8SRichard Lowe# http://www.illumos.org/license/CDDL.
10*2209d3c8SRichard Lowe#
11*2209d3c8SRichard Lowe
12*2209d3c8SRichard Lowe# Copyright 2016, Richard Lowe.
13*2209d3c8SRichard Lowe
14*2209d3c8SRichard Loweinclude $(SRC)/Makefile.master
15*2209d3c8SRichard Loweinclude $(SRC)/Makefile.master.64
16*2209d3c8SRichard Loweinclude $(SRC)/cmd/Makefile.cmd
17*2209d3c8SRichard Loweinclude $(SRC)/cmd/Makefile.cmd.64
18*2209d3c8SRichard Lowe
19*2209d3c8SRichard LoweROOTOPTPKG = $(ROOT)/opt/libc-tests
20*2209d3c8SRichard LoweTESTDIR = $(ROOTOPTPKG)/tests/select
21*2209d3c8SRichard LoweROOTBINDIR = $(ROOTOPTPKG)/bin
22*2209d3c8SRichard Lowe
23*2209d3c8SRichard LowePROGS= select_test
24*2209d3c8SRichard Lowe
25*2209d3c8SRichard LoweC99MODE= $(C99_ENABLE)
26*2209d3c8SRichard Lowe
27*2209d3c8SRichard Loweselect_test: select_test.c
28*2209d3c8SRichard Lowe	$(LINK64.c) -o $@ select_test.c $(LDLIBS64)
29*2209d3c8SRichard Lowe	$(POST_PROCESS)
30*2209d3c8SRichard Lowe
31*2209d3c8SRichard LoweSCRIPTS=select.sh
32*2209d3c8SRichard LoweCMDS = $(PROGS:%=$(TESTDIR)/%) $(SCRIPTS:%=$(TESTDIR)/%)
33*2209d3c8SRichard Lowe
34*2209d3c8SRichard Lowe$(SCRIPTS) $(CMDS) := FILEMODE = 0555
35*2209d3c8SRichard Lowe
36*2209d3c8SRichard Lowe$(CMDS): $(TESTDIR) $(PROGS)
37*2209d3c8SRichard Lowe
38*2209d3c8SRichard Loweall: $(PROGS)
39*2209d3c8SRichard Lowe
40*2209d3c8SRichard Loweclean:
41*2209d3c8SRichard Lowe
42*2209d3c8SRichard Loweclobber: clean
43*2209d3c8SRichard Lowe	-$(RM) $(PROGS)
44*2209d3c8SRichard Lowe
45*2209d3c8SRichard Loweinstall: all $(CMDS)
46*2209d3c8SRichard Lowe
47*2209d3c8SRichard Lowelint:
48*2209d3c8SRichard Lowe
49*2209d3c8SRichard Lowe$(ROOTBINDIR):
50*2209d3c8SRichard Lowe	$(INS.dir)
51*2209d3c8SRichard Lowe
52*2209d3c8SRichard Lowe$(ROOTBINDIR)/%: %
53*2209d3c8SRichard Lowe	$(INS.file)
54*2209d3c8SRichard Lowe
55*2209d3c8SRichard Lowe$(TESTDIR):
56*2209d3c8SRichard Lowe	$(INS.dir)
57*2209d3c8SRichard Lowe
58*2209d3c8SRichard Lowe$(TESTDIR)/%: %
59*2209d3c8SRichard Lowe	$(INS.file)
60*2209d3c8SRichard Lowe
61*2209d3c8SRichard Lowe$(TESTDIR)/%: %
62*2209d3c8SRichard Lowe	$(INS.file)
63*2209d3c8SRichard Lowe
64*2209d3c8SRichard Lowe.KEEP_STATE:
65