1ea8dc4b6Seschrock# 2ea8dc4b6Seschrock# CDDL HEADER START 3ea8dc4b6Seschrock# 4ea8dc4b6Seschrock# The contents of this file are subject to the terms of the 5ea8dc4b6Seschrock# Common Development and Distribution License (the "License"). 6ea8dc4b6Seschrock# You may not use this file except in compliance with the License. 7ea8dc4b6Seschrock# 8ea8dc4b6Seschrock# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9ea8dc4b6Seschrock# or http://www.opensolaris.org/os/licensing. 10ea8dc4b6Seschrock# See the License for the specific language governing permissions 11ea8dc4b6Seschrock# and limitations under the License. 12ea8dc4b6Seschrock# 13ea8dc4b6Seschrock# When distributing Covered Code, include this CDDL HEADER in each 14ea8dc4b6Seschrock# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15ea8dc4b6Seschrock# If applicable, add the following below this CDDL HEADER, with the 16ea8dc4b6Seschrock# fields enclosed by brackets "[]" replaced with your own identifying 17ea8dc4b6Seschrock# information: Portions Copyright [yyyy] [name of copyright owner] 18ea8dc4b6Seschrock# 19ea8dc4b6Seschrock# CDDL HEADER END 20ea8dc4b6Seschrock# 21ea8dc4b6Seschrock# 22ea8dc4b6Seschrock# Copyright 2006 Sun Microsystems, Inc. All rights reserved. 23ea8dc4b6Seschrock# Use is subject to license terms. 24ea8dc4b6Seschrock# 25*a0fbb7fbSToomas Soome# Copyright (c) 2016 by Delphix. All rights reserved. 26*a0fbb7fbSToomas Soome# Copyright 2017 RackTop Systems. 27*a0fbb7fbSToomas Soome# Copyright 2020 Joyent, Inc. 28ea8dc4b6Seschrock# 29ea8dc4b6Seschrock 30*a0fbb7fbSToomas SoomePROG= zinject 31*a0fbb7fbSToomas SoomeOBJS= $(PROG).o translate.o 32ea8dc4b6Seschrock 33ea8dc4b6Seschrockinclude ../Makefile.cmd 34*a0fbb7fbSToomas Soomeinclude ../Makefile.cmd.64 35*a0fbb7fbSToomas Soomeinclude ../Makefile.ctf 36ea8dc4b6Seschrock 37*a0fbb7fbSToomas SoomeINCS += -I../../lib/libzpool/common 38*a0fbb7fbSToomas SoomeINCS += -I../../uts/common/fs/zfs 39*a0fbb7fbSToomas SoomeINCS += -I../../uts/common/fs/zfs/lua 40ea8dc4b6Seschrock 41*a0fbb7fbSToomas SoomeLDLIBS += -lzfs -lnvpair 42*a0fbb7fbSToomas Soome 43*a0fbb7fbSToomas SoomeCSTD= $(CSTD_GNU99) 44*a0fbb7fbSToomas Soome 45*a0fbb7fbSToomas SoomeCPPFLAGS.first = -I$(SRC)/lib/libfakekernel/common -D_FAKE_KERNEL 46*a0fbb7fbSToomas SoomeCPPFLAGS += -D_LARGEFILE64_SOURCE=1 -D_REENTRANT $(INCS) 47*a0fbb7fbSToomas Soome 48*a0fbb7fbSToomas SoomeCERRWARN += $(CNOWARN_UNINIT) 49*a0fbb7fbSToomas SoomeCERRWARN += -_gcc=-Wno-switch 50ea8dc4b6Seschrock 51ea8dc4b6Seschrock.KEEP_STATE: 52ea8dc4b6Seschrock 53*a0fbb7fbSToomas Soomeall: $(PROG) 54ea8dc4b6Seschrock 55*a0fbb7fbSToomas Soomeinstall: all $(ROOTUSRSBINPROG) 56ea8dc4b6Seschrock 57*a0fbb7fbSToomas Soome$(PROG): $(OBJS) 58*a0fbb7fbSToomas Soome $(LINK.c) -o $(PROG) $(OBJS) $(LDLIBS) 59*a0fbb7fbSToomas Soome $(POST_PROCESS) 60ea8dc4b6Seschrock 61*a0fbb7fbSToomas Soomeclean: 62*a0fbb7fbSToomas Soome $(RM) $(OBJS) 63ea8dc4b6Seschrock 64ea8dc4b6Seschrockinclude ../Makefile.targ 65