xref: /illumos-gate/usr/src/test/os-tests/tests/saveargs/functional/Makefile (revision 82ae1648ab152f127ab6c9a6bdbea9e0a589a488)
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#
13# Copyright 2012, Richard Lowe.
14#
15
16include $(SRC)/cmd/Makefile.cmd
17include $(SRC)/Makefile.master.64
18include	$(SRC)/cmd/Makefile.ctf
19
20CTF_MODE = link
21
22.KEEP_STATE:
23
24PROG = \
25	align \
26	basic \
27	big-struct-ret \
28	big-struct-ret-and-spill \
29	functional \
30	small-struct-ret \
31	small-struct-ret-and-spill \
32	stack-spill
33
34ROOTOPTPKG = $(ROOT)/opt/os-tests
35TESTDIR = $(ROOTOPTPKG)/tests/saveargs/functional
36
37CMDS = $(PROG:%=$(TESTDIR)/%)
38$(CMDS) := FILEMODE = 0555
39
40all: $(PROG)
41
42install: $(CMDS)
43
44clean:
45	$(RM) $(PROG)
46
47clobber: clean
48
49$(CMDS): $(TESTDIR) $(PROG)
50
51$(TESTDIR):
52	$(INS.dir)
53
54$(TESTDIR)/%: %
55	$(INS.file)
56