1495db6fbSLori Alt# 2495db6fbSLori Alt# CDDL HEADER START 3495db6fbSLori Alt# 4495db6fbSLori Alt# The contents of this file are subject to the terms of the 5495db6fbSLori Alt# Common Development and Distribution License (the "License"). 6495db6fbSLori Alt# You may not use this file except in compliance with the License. 7495db6fbSLori Alt# 8495db6fbSLori Alt# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9495db6fbSLori Alt# or http://www.opensolaris.org/os/licensing. 10495db6fbSLori Alt# See the License for the specific language governing permissions 11495db6fbSLori Alt# and limitations under the License. 12495db6fbSLori Alt# 13495db6fbSLori Alt# When distributing Covered Code, include this CDDL HEADER in each 14495db6fbSLori Alt# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15495db6fbSLori Alt# If applicable, add the following below this CDDL HEADER, with the 16495db6fbSLori Alt# fields enclosed by brackets "[]" replaced with your own identifying 17495db6fbSLori Alt# information: Portions Copyright [yyyy] [name of copyright owner] 18495db6fbSLori Alt# 19495db6fbSLori Alt# CDDL HEADER END 20495db6fbSLori Alt# 21495db6fbSLori Alt# 22495db6fbSLori Alt# Copyright 2009 Sun Microsystems, Inc. All rights reserved. 23495db6fbSLori Alt# Use is subject to license terms. 24495db6fbSLori Alt# 255661bb76SJohn Levon# Copyright (c) 2018, Joyent, Inc. 26*80b758daSAndy Fiddaman# Copyright 2024 Oxide Computer Company 27495db6fbSLori Alt 28495db6fbSLori AltPROG= zstreamdump 29*80b758daSAndy FiddamanOBJS= zstreamdump.o $(HEXDUMP_OBJS) 30495db6fbSLori AltPOFILE= zstreamdump.po 31495db6fbSLori Alt 32495db6fbSLori Altinclude ../Makefile.cmd 33*80b758daSAndy Fiddamaninclude $(SRC)/common/hexdump/Makefile.com 34495db6fbSLori Alt 35495db6fbSLori AltINCS += -I../../uts/common/fs/zfs 36495db6fbSLori AltINCS += -I../../common/zfs 37495db6fbSLori Alt 38495db6fbSLori AltLDLIBS += -lzfs -lnvpair 39495db6fbSLori Alt 40bd0ce624SYuri PankovCSTD= $(CSTD_GNU99) 41495db6fbSLori Alt 42495db6fbSLori AltCPPFLAGS += -D_LARGEFILE64_SOURCE=1 -D_REENTRANT $(INCS) 43495db6fbSLori Alt$(NOT_RELEASE_BUILD)CPPFLAGS += -DDEBUG 44495db6fbSLori Alt 457014882cSRichard LoweCERRWARN += -_gcc=-Wno-switch 467014882cSRichard Lowe 475661bb76SJohn Levon# not linted 485661bb76SJohn LevonSMATCH=off 495661bb76SJohn Levon 50495db6fbSLori Alt.KEEP_STATE: 51495db6fbSLori Alt 52495db6fbSLori Alt.PARALLEL: 53495db6fbSLori Alt 54495db6fbSLori Altall: $(PROG) 55495db6fbSLori Alt 56495db6fbSLori Alt$(PROG): $(OBJS) 57495db6fbSLori Alt $(LINK.c) -o $@ $(OBJS) $(LDLIBS) 58495db6fbSLori Alt $(POST_PROCESS) 59495db6fbSLori Alt 60495db6fbSLori Altinstall: all $(ROOTUSRSBINPROG) 61495db6fbSLori Alt 62495db6fbSLori Altclean: 63495db6fbSLori Alt $(RM) $(OBJS) 64495db6fbSLori Alt 65495db6fbSLori AltFRC: 66495db6fbSLori Alt 67*80b758daSAndy Fiddamaninclude $(SRC)/common/hexdump/Makefile.targ 68495db6fbSLori Altinclude ../Makefile.targ 69