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 2018 Joyent, Inc. 14# Copyright 2022 Oxide Computer Company 15# Copyright 2022 OmniOS Community Edition (OmniOSce) Association. 16# 17 18TESTSUBDIR = mevent 19PROG = \ 20 lists_delete \ 21 mevent_test \ 22 read_disable \ 23 read_pause \ 24 read_requeue \ 25 vnode_file \ 26 vnode_zvol 27 28SUPOBJS = mevent.o testlib.o 29 30include ../../Makefile.com 31 32CMDS = $(PROG:%=$(TESTDIR)/%) 33$(CMDS) := FILEMODE = 0555 34 35all: $(PROG) 36 37install: $(TESTDIR) $(CMDS) 38 39$(CMDS): $(PROG) 40 41vnode_zvol := LDLIBS += -lzfs -lnvpair 42mevent_test := LDLIBS += -lsocket 43 44include ../../Makefile.targ 45 46%: %.o $(SUPOBJS) 47 $(LINK.c) -o $@ $< $(SUPOBJS) $(LDLIBS) 48 $(POST_PROCESS) 49 50mevent.o: ../../../common/mevent.c 51