xref: /illumos-gate/usr/src/test/elf-tests/tests/capabilities/Makefile (revision dd72704bd9e794056c558153663c739e2012d721)
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 2022 Oxide Computer Company
13
14include $(SRC)/cmd/Makefile.cmd
15include $(SRC)/test/Makefile.com
16
17PROGS =	symcap objcap
18
19ROOTOPTPKG = $(ROOT)/opt/elf-tests
20TESTDIR = $(ROOTOPTPKG)/tests/capabilities
21
22CMDS = $(PROGS:%=$(TESTDIR)/%)
23$(CMDS) := FILEMODE = 0555
24
25all:
26
27install: all $(CMDS)
28
29clobber: clean
30	-$(RM) $(PROG)
31
32clean:
33	-$(RM) $(CLEANFILES)
34
35$(CMDS): $(TESTDIR)
36
37$(TESTDIR):
38	$(INS.dir)
39
40$(TESTDIR)/%: %.ksh
41	$(INS.rename)
42