1a629ded1SLOLi#
2a629ded1SLOLi# This file and its contents are supplied under the terms of the
3a629ded1SLOLi# Common Development and Distribution License ("CDDL"), version 1.0.
4a629ded1SLOLi# You may only use this file in accordance with the terms of version
5a629ded1SLOLi# 1.0 of the CDDL.
6a629ded1SLOLi#
7a629ded1SLOLi# A full copy of the text of the CDDL should have accompanied this
8a629ded1SLOLi# source.  A copy of the CDDL is also available via the Internet at
9a629ded1SLOLi# http://www.illumos.org/license/CDDL.
10a629ded1SLOLi#
11a629ded1SLOLi
12a629ded1SLOLi#
13a629ded1SLOLi# Copyright 2019 Joyent, Inc.
14a629ded1SLOLi#
15a629ded1SLOLi
16a629ded1SLOLiinclude $(SRC)/Makefile.master
17a629ded1SLOLi
18a629ded1SLOLiROOTOPTPKG = $(ROOT)/opt/zfs-tests
19a629ded1SLOLiTARGETDIR = $(ROOTOPTPKG)/tests/functional/cli_root/zfs_diff
20a629ded1SLOLi
21a629ded1SLOLiPROG = socket
22a629ded1SLOLiOBJS = $(PROG:%=%.o)
23a629ded1SLOLiSRCS = $(OBJS:%.o=%.c)
24a629ded1SLOLi
25a629ded1SLOLiinclude $(SRC)/cmd/Makefile.cmd
26a629ded1SLOLi
27a629ded1SLOLi$(TARGETDIR)/$(PROG) :=	FILEMODE = 0555
28a629ded1SLOLi
29*763f1f5fSRichard LoweCPPFLAGS += -D__EXTENSIONS__
305801b0f0SToomas SoomeLDLIBS += -lsocket
31a629ded1SLOLi
32*763f1f5fSRichard Lowe.KEEP_STATE:
33*763f1f5fSRichard Lowe
34a629ded1SLOLi$(PROG): $(OBJS)
35a629ded1SLOLi	$(LINK.c) $(OBJS) -o $@ $(LDLIBS)
36a629ded1SLOLi	$(POST_PROCESS)
37a629ded1SLOLi
38a629ded1SLOLiinstall: $(TARGETDIR)/$(PROG)
39a629ded1SLOLi
40a629ded1SLOLiclobber: clean
41a629ded1SLOLi	-$(RM) $(PROG)
42a629ded1SLOLi
43a629ded1SLOLiclean:
44a629ded1SLOLi	-$(RM) $(OBJS)
45a629ded1SLOLi
46bb51a979SRobert Mustacchi$(TARGETDIR)/$(PROG): $(TARGETDIR)
47bb51a979SRobert Mustacchi
48a629ded1SLOLiinclude $(SRC)/test/zfs-tests/Makefile.com
49