xref: /illumos-gate/usr/src/test/libc-tests/tests/select/Makefile (revision bd0ce624be4492bab2f6c53383a40618647aba28)
12209d3c8SRichard Lowe#
22209d3c8SRichard Lowe# This file and its contents are supplied under the terms of the
32209d3c8SRichard Lowe# Common Development and Distribution License ("CDDL"), version 1.0.
42209d3c8SRichard Lowe# You may only use this file in accordance with the terms of version
52209d3c8SRichard Lowe# 1.0 of the CDDL.
62209d3c8SRichard Lowe#
72209d3c8SRichard Lowe# A full copy of the text of the CDDL should have accompanied this
82209d3c8SRichard Lowe# source.  A copy of the CDDL is also available via the Internet at
92209d3c8SRichard Lowe# http://www.illumos.org/license/CDDL.
102209d3c8SRichard Lowe#
112209d3c8SRichard Lowe
122209d3c8SRichard Lowe# Copyright 2016, Richard Lowe.
132209d3c8SRichard Lowe
142209d3c8SRichard Loweinclude $(SRC)/Makefile.master
152209d3c8SRichard Loweinclude $(SRC)/Makefile.master.64
162209d3c8SRichard Loweinclude $(SRC)/cmd/Makefile.cmd
172209d3c8SRichard Loweinclude $(SRC)/cmd/Makefile.cmd.64
182209d3c8SRichard Lowe
192209d3c8SRichard LoweROOTOPTPKG = $(ROOT)/opt/libc-tests
202209d3c8SRichard LoweTESTDIR = $(ROOTOPTPKG)/tests/select
212209d3c8SRichard LoweROOTBINDIR = $(ROOTOPTPKG)/bin
222209d3c8SRichard Lowe
232209d3c8SRichard LowePROGS= select_test
242209d3c8SRichard Lowe
25*bd0ce624SYuri PankovCSTD= $(CSTD_GNU99)
262209d3c8SRichard Lowe
272209d3c8SRichard Loweselect_test: select_test.c
282209d3c8SRichard Lowe	$(LINK64.c) -o $@ select_test.c $(LDLIBS64)
292209d3c8SRichard Lowe	$(POST_PROCESS)
302209d3c8SRichard Lowe
312209d3c8SRichard LoweSCRIPTS=select.sh
322209d3c8SRichard LoweCMDS = $(PROGS:%=$(TESTDIR)/%) $(SCRIPTS:%=$(TESTDIR)/%)
332209d3c8SRichard Lowe
342209d3c8SRichard Lowe$(SCRIPTS) $(CMDS) := FILEMODE = 0555
352209d3c8SRichard Lowe
362209d3c8SRichard Lowe$(CMDS): $(TESTDIR) $(PROGS)
372209d3c8SRichard Lowe
382209d3c8SRichard Loweall: $(PROGS)
392209d3c8SRichard Lowe
402209d3c8SRichard Loweclean:
412209d3c8SRichard Lowe
422209d3c8SRichard Loweclobber: clean
432209d3c8SRichard Lowe	-$(RM) $(PROGS)
442209d3c8SRichard Lowe
452209d3c8SRichard Loweinstall: all $(CMDS)
462209d3c8SRichard Lowe
472209d3c8SRichard Lowelint:
482209d3c8SRichard Lowe
492209d3c8SRichard Lowe$(ROOTBINDIR):
502209d3c8SRichard Lowe	$(INS.dir)
512209d3c8SRichard Lowe
522209d3c8SRichard Lowe$(ROOTBINDIR)/%: %
532209d3c8SRichard Lowe	$(INS.file)
542209d3c8SRichard Lowe
552209d3c8SRichard Lowe$(TESTDIR):
562209d3c8SRichard Lowe	$(INS.dir)
572209d3c8SRichard Lowe
582209d3c8SRichard Lowe$(TESTDIR)/%: %
592209d3c8SRichard Lowe	$(INS.file)
602209d3c8SRichard Lowe
612209d3c8SRichard Lowe$(TESTDIR)/%: %
622209d3c8SRichard Lowe	$(INS.file)
632209d3c8SRichard Lowe
642209d3c8SRichard Lowe.KEEP_STATE:
65