xref: /titanic_50/usr/src/cmd/zstreamdump/Makefile (revision 7014882c6a3672fd0e5d60200af8643ae53c5928)
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#
25495db6fbSLori Alt
26495db6fbSLori AltPROG=		zstreamdump
27495db6fbSLori AltOBJS=		zstreamdump.o
28495db6fbSLori AltSRCS=		$(OBJS:%.o=%.c)
29495db6fbSLori AltPOFILE=		zstreamdump.po
30495db6fbSLori Alt
31495db6fbSLori Altinclude ../Makefile.cmd
32495db6fbSLori Alt
33495db6fbSLori AltINCS +=	-I../../uts/common/fs/zfs
34495db6fbSLori AltINCS +=	-I../../common/zfs
35495db6fbSLori Alt
36495db6fbSLori AltLDLIBS += -lzfs -lnvpair
37495db6fbSLori Alt
38495db6fbSLori AltC99MODE=	-xc99=%all
39495db6fbSLori AltC99LMODE=	-Xc99=%all
40495db6fbSLori Alt
41495db6fbSLori AltCPPFLAGS += -D_LARGEFILE64_SOURCE=1 -D_REENTRANT $(INCS)
42495db6fbSLori Alt$(NOT_RELEASE_BUILD)CPPFLAGS += -DDEBUG
43495db6fbSLori Alt
44495db6fbSLori Alt# lint complains about unused _umem_* functions
45495db6fbSLori AltLINTFLAGS += -xerroff=E_NAME_DEF_NOT_USED2
46495db6fbSLori AltLINTFLAGS64 += -xerroff=E_NAME_DEF_NOT_USED2
47495db6fbSLori Alt
48*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-switch
49*7014882cSRichard Lowe
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 Altlint:	lint_SRCS
66495db6fbSLori Alt
67495db6fbSLori AltFRC:
68495db6fbSLori Alt
69495db6fbSLori Altinclude ../Makefile.targ
70