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 2022 Oxide Computer Company
14#
15
16PROGS = \
17	illumos-15031
18
19ROOTOPTDIR = $(ROOT)/opt/os-tests/tests
20ROOTOPTREGRESSION = $(ROOTOPTDIR)/regression
21ROOTOPTPROGS = $(PROGS:%=$(ROOTOPTREGRESSION)/%)
22
23include $(SRC)/cmd/Makefile.cmd
24
25CSTD=$(GNU_C99)
26
27.KEEP_STATE:
28
29all: $(PROGS)
30
31install: $(ROOTOPTPROGS)
32
33clean:
34
35$(ROOTOPTPROGS): $(PROGS) $(ROOTOPTREGRESSION)
36
37$(ROOTOPTDIR):
38	$(INS.dir)
39
40$(ROOTOPTREGRESSION): $(ROOTOPTDIR)
41	$(INS.dir)
42
43$(ROOTOPTREGRESSION)/%: %
44	$(INS.file)
45
46%: %.c
47	$(LINK.c) -o $@ $< $(LDLIBS)
48	$(POST_PROCESS)
49
50clobber:
51	$(RM) $(PROGS)
52
53FRC:
54