xref: /titanic_52/usr/src/cmd/zhack/Makefile.com (revision b6805bf78d2bbbeeaea8909a05623587b42d58b3)
153089ab7Seschrock#
253089ab7Seschrock# CDDL HEADER START
353089ab7Seschrock#
453089ab7Seschrock# The contents of this file are subject to the terms of the
553089ab7Seschrock# Common Development and Distribution License (the "License").
653089ab7Seschrock# You may not use this file except in compliance with the License.
753089ab7Seschrock#
853089ab7Seschrock# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
953089ab7Seschrock# or http://www.opensolaris.org/os/licensing.
1053089ab7Seschrock# See the License for the specific language governing permissions
1153089ab7Seschrock# and limitations under the License.
1253089ab7Seschrock#
1353089ab7Seschrock# When distributing Covered Code, include this CDDL HEADER in each
1453089ab7Seschrock# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1553089ab7Seschrock# If applicable, add the following below this CDDL HEADER, with the
1653089ab7Seschrock# fields enclosed by brackets "[]" replaced with your own identifying
1753089ab7Seschrock# information: Portions Copyright [yyyy] [name of copyright owner]
1853089ab7Seschrock#
1953089ab7Seschrock# CDDL HEADER END
2053089ab7Seschrock#
2153089ab7Seschrock
2253089ab7Seschrock#
2353089ab7Seschrock# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
2453089ab7Seschrock# Use is subject to license terms.
2553089ab7Seschrock#
2653089ab7Seschrock
2753089ab7Seschrock#
2853089ab7Seschrock# Copyright (c) 2012 by Delphix. All rights reserved.
2953089ab7Seschrock#
3053089ab7Seschrock
3153089ab7SeschrockPROG= zhack
3253089ab7SeschrockSRCS= ../$(PROG).c
3353089ab7SeschrockOBJS= $(PROG).o
3453089ab7Seschrock
3553089ab7Seschrockinclude ../../Makefile.cmd
3653089ab7Seschrockinclude ../../Makefile.ctf
3753089ab7Seschrock
3853089ab7SeschrockINCS += -I../../../lib/libzpool/common
3953089ab7SeschrockINCS +=	-I../../../uts/common/fs/zfs
4053089ab7SeschrockINCS +=	-I../../../common/zfs
4153089ab7Seschrock
4253089ab7SeschrockLDLIBS += -lzpool -lumem -lnvpair -lzfs
4353089ab7Seschrock
4453089ab7SeschrockC99MODE=	-xc99=%all
4553089ab7SeschrockC99LMODE=	-Xc99=%all
4653089ab7Seschrock
4753089ab7SeschrockCFLAGS += $(CCVERBOSE)
4853089ab7SeschrockCFLAGS64 += $(CCVERBOSE)
49fb09f5aaSMadhav SureshCPPFLAGS += -D_LARGEFILE64_SOURCE=1 -D_REENTRANT -DDEBUG $(INCS)
5053089ab7Seschrock
5153089ab7Seschrock.KEEP_STATE:
5253089ab7Seschrock
5353089ab7Seschrockall: $(PROG)
5453089ab7Seschrock
5553089ab7Seschrock$(PROG): $(OBJS)
5653089ab7Seschrock	$(LINK.c) -o $(PROG) $(OBJS) $(LDLIBS)
5753089ab7Seschrock	$(POST_PROCESS)
5853089ab7Seschrock
5953089ab7Seschrockclean:
60*b6805bf7SGordon Ross	$(RM) $(OBJS)
6153089ab7Seschrock
6253089ab7Seschrocklint:	lint_SRCS
6353089ab7Seschrock
6453089ab7Seschrockinclude ../../Makefile.targ
6553089ab7Seschrock
6653089ab7Seschrock%.o: ../%.c
6753089ab7Seschrock	$(COMPILE.c) $<
6853089ab7Seschrock	$(POST_PROCESS_O)
69