5960 zfs recv should prefetch indirect blocks
[illumos-gate.git] / usr / src / cmd / ibd_upgrade / Makefile
blob2bffb56658404c2d84bcb9c8ba866e898d5d2dae
2 # CDDL HEADER START
4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
19 # CDDL HEADER END
22 # Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
25 MANIFEST = ibd-post-upgrade.xml
26 SVCMETHOD = ibd-post-upgrade
28 include ../Makefile.cmd
30 SHFILES = ibd_upgrade
31 IBD_DELETE_LINK = ibd_delete_link
32 OBJS = $(IBD_DELETE_LINK).o
33 SRCS = $(OBJS:%.o=%.c)
35 CLOBBERFILES = $(SHFILES) $(IBD_DELETE_LINK) $(OBJS)
37 ROOTMANIFESTDIR = $(ROOTSVCNETWORK)
38 LDLIBS += -ldladm
40 .KEEP_STATE:
42 all: $(IBD_DELETE_LINK) $(SHFILES)
44 install: all \
45 $(ROOTSBIN)/$(IBD_DELETE_LINK) \
46 $(ROOTMANIFEST) \
47 $(ROOTSVCMETHOD) \
48 $(ROOTSBIN)/ibd_upgrade
50 check: $(CHKMANIFEST)
51 $(CSTYLE) -pP $(SRCS)
53 clean:
55 lint: lint_SRCS
57 include ../Makefile.targ
59 $(ROOTSBIN)/%: %
60 $(INS.file)