xref: /illumos-gate/usr/src/test/libc-tests/tests/select/Makefile (revision dc5e7685b131559c0b7c622baee25a9a0ae50ada)
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.
13*dc5e7685SJohn Levon# Copyright (c) 2018, Joyent, Inc.
142209d3c8SRichard Lowe
152209d3c8SRichard Loweinclude $(SRC)/Makefile.master
162209d3c8SRichard Loweinclude $(SRC)/Makefile.master.64
172209d3c8SRichard Loweinclude $(SRC)/cmd/Makefile.cmd
182209d3c8SRichard Loweinclude $(SRC)/cmd/Makefile.cmd.64
192209d3c8SRichard Lowe
202209d3c8SRichard LoweROOTOPTPKG = $(ROOT)/opt/libc-tests
212209d3c8SRichard LoweTESTDIR = $(ROOTOPTPKG)/tests/select
222209d3c8SRichard LoweROOTBINDIR = $(ROOTOPTPKG)/bin
232209d3c8SRichard Lowe
242209d3c8SRichard LowePROGS= select_test
252209d3c8SRichard Lowe
26bd0ce624SYuri PankovCSTD= $(CSTD_GNU99)
272209d3c8SRichard Lowe
28*dc5e7685SJohn Levon# needs work
29*dc5e7685SJohn LevonSMOFF += all_func_returns
30*dc5e7685SJohn Levon
312209d3c8SRichard Loweselect_test: select_test.c
322209d3c8SRichard Lowe	$(LINK64.c) -o $@ select_test.c $(LDLIBS64)
332209d3c8SRichard Lowe	$(POST_PROCESS)
342209d3c8SRichard Lowe
352209d3c8SRichard LoweSCRIPTS=select.sh
362209d3c8SRichard LoweCMDS = $(PROGS:%=$(TESTDIR)/%) $(SCRIPTS:%=$(TESTDIR)/%)
372209d3c8SRichard Lowe
382209d3c8SRichard Lowe$(SCRIPTS) $(CMDS) := FILEMODE = 0555
392209d3c8SRichard Lowe
402209d3c8SRichard Lowe$(CMDS): $(TESTDIR) $(PROGS)
412209d3c8SRichard Lowe
422209d3c8SRichard Loweall: $(PROGS)
432209d3c8SRichard Lowe
442209d3c8SRichard Loweclean:
452209d3c8SRichard Lowe
462209d3c8SRichard Loweclobber: clean
472209d3c8SRichard Lowe	-$(RM) $(PROGS)
482209d3c8SRichard Lowe
492209d3c8SRichard Loweinstall: all $(CMDS)
502209d3c8SRichard Lowe
512209d3c8SRichard Lowelint:
522209d3c8SRichard Lowe
532209d3c8SRichard Lowe$(ROOTBINDIR):
542209d3c8SRichard Lowe	$(INS.dir)
552209d3c8SRichard Lowe
562209d3c8SRichard Lowe$(ROOTBINDIR)/%: %
572209d3c8SRichard Lowe	$(INS.file)
582209d3c8SRichard Lowe
592209d3c8SRichard Lowe$(TESTDIR):
602209d3c8SRichard Lowe	$(INS.dir)
612209d3c8SRichard Lowe
622209d3c8SRichard Lowe$(TESTDIR)/%: %
632209d3c8SRichard Lowe	$(INS.file)
642209d3c8SRichard Lowe
652209d3c8SRichard Lowe$(TESTDIR)/%: %
662209d3c8SRichard Lowe	$(INS.file)
672209d3c8SRichard Lowe
682209d3c8SRichard Lowe.KEEP_STATE:
69