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