1*508a0e8cSRob Johnston#
2*508a0e8cSRob Johnston# This file and its contents are supplied under the terms of the
3*508a0e8cSRob Johnston# Common Development and Distribution License ("CDDL"), version 1.0.
4*508a0e8cSRob Johnston# You may only use this file in accordance with the terms of version
5*508a0e8cSRob Johnston# 1.0 of the CDDL.
6*508a0e8cSRob Johnston#
7*508a0e8cSRob Johnston# A full copy of the text of the CDDL should have accompanied this
8*508a0e8cSRob Johnston# source.  A copy of the CDDL is also available via the Internet at
9*508a0e8cSRob Johnston# http://www.illumos.org/license/CDDL.
10*508a0e8cSRob Johnston#
11*508a0e8cSRob Johnston
12*508a0e8cSRob Johnston#
13*508a0e8cSRob Johnston# Copyright 2019 Joyent, Inc.
14*508a0e8cSRob Johnston#
15*508a0e8cSRob Johnston
16*508a0e8cSRob Johnstoninclude $(SRC)/Makefile.master
17*508a0e8cSRob Johnston
18*508a0e8cSRob JohnstonROOTOPTPKG = $(ROOT)/opt/os-tests
19*508a0e8cSRob JohnstonTESTDIR = $(ROOTOPTPKG)/tests/ddi_ufm
20*508a0e8cSRob Johnston
21*508a0e8cSRob JohnstonPROGS = ufm-test-setup ufm-test ufm-test-cleanup
22*508a0e8cSRob Johnston
23*508a0e8cSRob Johnstoninclude $(SRC)/cmd/Makefile.cmd
24*508a0e8cSRob Johnstoninclude $(SRC)/test/Makefile.com
25*508a0e8cSRob Johnston
26*508a0e8cSRob JohnstonLDLIBS += -lnvpair
27*508a0e8cSRob JohnstonCFLAGS += -I$(SRC)/uts/common/io/
28*508a0e8cSRob JohnstonCSTD= $(CSTD_GNU99)
29*508a0e8cSRob Johnston
30*508a0e8cSRob JohnstonCMDS = $(PROGS:%=$(TESTDIR)/%)
31*508a0e8cSRob Johnston$(CMDS) := FILEMODE = 0555
32*508a0e8cSRob Johnston
33*508a0e8cSRob Johnstonall: $(PROGS)
34*508a0e8cSRob Johnston
35*508a0e8cSRob Johnstoninstall: all $(CMDS)
36*508a0e8cSRob Johnston
37*508a0e8cSRob Johnstonlint:
38*508a0e8cSRob Johnston
39*508a0e8cSRob Johnstonclobber: clean
40*508a0e8cSRob Johnston	-$(RM) $(PROGS)
41*508a0e8cSRob Johnston
42*508a0e8cSRob Johnstonclean:
43*508a0e8cSRob Johnston	-$(RM) *.o
44*508a0e8cSRob Johnston
45*508a0e8cSRob Johnston$(CMDS): $(TESTDIR) $(PROGS)
46*508a0e8cSRob Johnston
47*508a0e8cSRob Johnston$(TESTDIR):
48*508a0e8cSRob Johnston	$(INS.dir)
49*508a0e8cSRob Johnston
50*508a0e8cSRob Johnston$(TESTDIR)/%: %
51*508a0e8cSRob Johnston	$(INS.file)
52