xref: /illumos-gate/usr/src/test/elf-tests/tests/sections/gcc-except-table/Makefile (revision 5425aa59e8fd3834b86390ed6d8a13586c918df9)
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 2021, Richard Lowe.
13# Copyright 2026 Oxide Computer Company
14
15include $(SRC)/cmd/Makefile.cmd
16include $(SRC)/test/Makefile.com
17
18PROG =	simple
19
20DATAFILES =	gcct1.s gcct2.s
21
22ROOTOPTPKG = $(ROOT)/opt/elf-tests
23TESTDIR = $(ROOTOPTPKG)/tests/sections/gcc-except-table
24
25CMDS = $(PROG:%=$(TESTDIR)/%)
26$(CMDS) := FILEMODE = 0555
27
28DATA = $(DATAFILES:%=$(TESTDIR)/%)
29$(DATA) := FILEMODE = 0444
30
31all:
32
33install: all $(CMDS) $(DATA)
34
35clobber: clean
36
37clean:
38	-$(RM) $(CLEANFILES)
39
40$(CMDS): $(TESTDIR)
41
42$(DATA): $(TESTDIR)
43
44$(TESTDIR):
45	$(INS.dir)
46
47$(TESTDIR)/%: %
48	$(INS.file)
49
50$(TESTDIR)/%: %.sh
51	$(INS.rename)
52