1bf21cd93STycho Nightingale#
2bf21cd93STycho Nightingale# This file and its contents are supplied under the terms of the
3bf21cd93STycho Nightingale# Common Development and Distribution License ("CDDL"), version 1.0.
4bf21cd93STycho Nightingale# You may only use this file in accordance with the terms of version
5bf21cd93STycho Nightingale# 1.0 of the CDDL.
6bf21cd93STycho Nightingale#
7bf21cd93STycho Nightingale# A full copy of the text of the CDDL should have accompanied this
8bf21cd93STycho Nightingale# source.  A copy of the CDDL is also available via the Internet at
9bf21cd93STycho Nightingale# http://www.illumos.org/license/CDDL.
10bf21cd93STycho Nightingale#
11bf21cd93STycho Nightingale
12bf21cd93STycho Nightingale#
134c87aefeSPatrick Mooney# Copyright 2018 Joyent, Inc.
14d327dbeaSPatrick Mooney# Copyright 2022 Oxide Computer Company
15*251becc8SAndy Fiddaman# Copyright 2022 OmniOS Community Edition (OmniOSce) Association.
16bf21cd93STycho Nightingale#
17bf21cd93STycho Nightingale
18d327dbeaSPatrick MooneyTESTSUBDIR =	mevent
19d327dbeaSPatrick MooneyPROG = \
20d327dbeaSPatrick Mooney		lists_delete \
21d327dbeaSPatrick Mooney		read_disable \
22d327dbeaSPatrick Mooney		read_pause \
23*251becc8SAndy Fiddaman		read_requeue \
24*251becc8SAndy Fiddaman		vnode_file \
25*251becc8SAndy Fiddaman		vnode_zvol
26bf21cd93STycho Nightingale
274c87aefeSPatrick MooneySUPOBJS =	mevent.o testlib.o
28bf21cd93STycho Nightingale
294c87aefeSPatrick Mooneyinclude ../../Makefile.com
304c87aefeSPatrick Mooney
31d327dbeaSPatrick MooneyCMDS =		$(PROG:%=$(TESTDIR)/%)
32d327dbeaSPatrick Mooney$(CMDS) :=	FILEMODE = 0555
33d327dbeaSPatrick Mooney
34d327dbeaSPatrick Mooneyall: $(PROG)
35d327dbeaSPatrick Mooney
36d327dbeaSPatrick Mooneyinstall: $(TESTDIR) $(CMDS)
37d327dbeaSPatrick Mooney
38d327dbeaSPatrick Mooney$(CMDS): $(PROG)
394c87aefeSPatrick Mooney
40*251becc8SAndy Fiddamanvnode_zvol :=	LDLIBS += -lzfs -lnvpair
41*251becc8SAndy Fiddaman
424c87aefeSPatrick Mooneyinclude ../../Makefile.targ
43d327dbeaSPatrick Mooney
44d327dbeaSPatrick Mooney%: %.o $(SUPOBJS)
45d327dbeaSPatrick Mooney	$(LINK.c) -o $@ $< $(SUPOBJS) $(LDLIBS)
46d327dbeaSPatrick Mooney	$(POST_PROCESS)
47*251becc8SAndy Fiddaman
48*251becc8SAndy Fiddamanmevent.o: ../../../mevent.c