1a0955b86SJohn Levon#
2a0955b86SJohn Levon# This file and its contents are supplied under the terms of the
3a0955b86SJohn Levon# Common Development and Distribution License ("CDDL"), version 1.0.
4a0955b86SJohn Levon# You may only use this file in accordance with the terms of version
5a0955b86SJohn Levon# 1.0 of the CDDL.
6a0955b86SJohn Levon#
7a0955b86SJohn Levon# A full copy of the text of the CDDL should have accompanied this
8a0955b86SJohn Levon# source.  A copy of the CDDL is also available via the Internet at
9a0955b86SJohn Levon# http://www.illumos.org/license/CDDL.
10a0955b86SJohn Levon#
11a0955b86SJohn Levon
12a0955b86SJohn Levon#
13*dbdc225aSJohn Levon# Copyright 2019 Joyent, Inc.
14a0955b86SJohn Levon#
15a0955b86SJohn Levon
16a0955b86SJohn Levoninclude $(SRC)/cmd/Makefile.cmd
17a0955b86SJohn Levoninclude $(SRC)/test/Makefile.com
18a0955b86SJohn Levon
19*dbdc225aSJohn LevonPROGS += ldt badseg_exec badseg
20a0955b86SJohn Levon
21a0955b86SJohn LevonROOTOPTPKG = $(ROOT)/opt/os-tests
22a0955b86SJohn LevonTESTDIR = $(ROOTOPTPKG)/tests/i386
23309b04b8SJohn LevonROOTOPTPROGS = $(PROGS:%=$(TESTDIR)/%)
24a0955b86SJohn Levon
25a0955b86SJohn LevonCSTD = $(CSTD_GNU99)
26a0955b86SJohn Levon
27*dbdc225aSJohn Levon# for badseg_exec
28309b04b8SJohn LevonCOPTFLAG =
29a0955b86SJohn Levon
30309b04b8SJohn Levonall: $(PROGS)
31a0955b86SJohn Levon
32309b04b8SJohn Levoninstall: all $(ROOTOPTPROGS)
33a0955b86SJohn Levon
34a0955b86SJohn Levonclobber: clean
35309b04b8SJohn Levon	-$(RM) $(PROGS)
36a0955b86SJohn Levon
37a0955b86SJohn Levonclean:
38a0955b86SJohn Levon
39309b04b8SJohn Levon$(ROOTOPTPROGS): $(TESTDIR) $(PROGS)
40a0955b86SJohn Levon
41a0955b86SJohn Levon$(TESTDIR):
42a0955b86SJohn Levon	$(INS.dir)
43a0955b86SJohn Levon
44a0955b86SJohn Levon$(TESTDIR)/%: %
45a0955b86SJohn Levon	$(INS.file)