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# 25*5661bb76SJohn Levon# Copyright (c) 2018, Joyent, Inc. 26495db6fbSLori Alt 27495db6fbSLori AltPROG= zstreamdump 28495db6fbSLori AltOBJS= zstreamdump.o 29495db6fbSLori AltSRCS= $(OBJS:%.o=%.c) 30495db6fbSLori AltPOFILE= zstreamdump.po 31495db6fbSLori Alt 32495db6fbSLori Altinclude ../Makefile.cmd 33495db6fbSLori Alt 34495db6fbSLori AltINCS += -I../../uts/common/fs/zfs 35495db6fbSLori AltINCS += -I../../common/zfs 36495db6fbSLori Alt 37495db6fbSLori AltLDLIBS += -lzfs -lnvpair 38495db6fbSLori Alt 39bd0ce624SYuri PankovCSTD= $(CSTD_GNU99) 40495db6fbSLori Alt 41495db6fbSLori AltCPPFLAGS += -D_LARGEFILE64_SOURCE=1 -D_REENTRANT $(INCS) 42495db6fbSLori Alt$(NOT_RELEASE_BUILD)CPPFLAGS += -DDEBUG 43495db6fbSLori Alt 447014882cSRichard LoweCERRWARN += -_gcc=-Wno-switch 457014882cSRichard Lowe 46*5661bb76SJohn Levon# not linted 47*5661bb76SJohn LevonSMATCH=off 48*5661bb76SJohn Levon 49495db6fbSLori Alt.KEEP_STATE: 50495db6fbSLori Alt 51495db6fbSLori Alt.PARALLEL: 52495db6fbSLori Alt 53495db6fbSLori Altall: $(PROG) 54495db6fbSLori Alt 55495db6fbSLori Alt$(PROG): $(OBJS) 56495db6fbSLori Alt $(LINK.c) -o $@ $(OBJS) $(LDLIBS) 57495db6fbSLori Alt $(POST_PROCESS) 58495db6fbSLori Alt 59495db6fbSLori Altinstall: all $(ROOTUSRSBINPROG) 60495db6fbSLori Alt 61495db6fbSLori Altclean: 62495db6fbSLori Alt $(RM) $(OBJS) 63495db6fbSLori Alt 64495db6fbSLori AltFRC: 65495db6fbSLori Alt 66495db6fbSLori Altinclude ../Makefile.targ 67