author | Christopher Siden <chris.siden@delphix.com> |
Mon, 21 May 2012 12:11:39 -0700 | |
changeset 13700 | 2889e2596bd6 |
parent 13524 | f0e12b33f77c |
child 13743 | 95aba6e49b9f |
permissions | -rw-r--r-- |
789 | 1 |
# |
2 |
# CDDL HEADER START |
|
3 |
# |
|
4 |
# The contents of this file are subject to the terms of the |
|
2522 | 5 |
# Common Development and Distribution License (the "License"). |
6 |
# You may not use this file except in compliance with the License. |
|
789 | 7 |
# |
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. |
|
12 |
# |
|
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] |
|
18 |
# |
|
19 |
# CDDL HEADER END |
|
20 |
# |
|
21 |
# |
|
13055 | 22 |
# Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved. |
13700
2889e2596bd6
2619 asynchronous destruction of ZFS file systems
Christopher Siden <chris.siden@delphix.com>
parents:
13524
diff
changeset
|
23 |
# Copyright (c) 2012 by Delphix. All rights reserved. |
789 | 24 |
# |
25 |
||
26 |
LIBRARY= libzfs.a |
|
27 |
VERS= .1 |
|
28 |
||
10817
7dfde45252f0
6889826 ZFS retire agent should be able to repair pools
Eric Schrock <Eric.Schrock@Sun.COM>
parents:
10602
diff
changeset
|
29 |
OBJS_SHARED= \ |
13700
2889e2596bd6
2619 asynchronous destruction of ZFS file systems
Christopher Siden <chris.siden@delphix.com>
parents:
13524
diff
changeset
|
30 |
zfeature_common.o \ |
10817
7dfde45252f0
6889826 ZFS retire agent should be able to repair pools
Eric Schrock <Eric.Schrock@Sun.COM>
parents:
10602
diff
changeset
|
31 |
zfs_comutil.o \ |
7dfde45252f0
6889826 ZFS retire agent should be able to repair pools
Eric Schrock <Eric.Schrock@Sun.COM>
parents:
10602
diff
changeset
|
32 |
zfs_deleg.o \ |
7dfde45252f0
6889826 ZFS retire agent should be able to repair pools
Eric Schrock <Eric.Schrock@Sun.COM>
parents:
10602
diff
changeset
|
33 |
zfs_fletcher.o \ |
7dfde45252f0
6889826 ZFS retire agent should be able to repair pools
Eric Schrock <Eric.Schrock@Sun.COM>
parents:
10602
diff
changeset
|
34 |
zfs_namecheck.o \ |
7dfde45252f0
6889826 ZFS retire agent should be able to repair pools
Eric Schrock <Eric.Schrock@Sun.COM>
parents:
10602
diff
changeset
|
35 |
zfs_prop.o \ |
7dfde45252f0
6889826 ZFS retire agent should be able to repair pools
Eric Schrock <Eric.Schrock@Sun.COM>
parents:
10602
diff
changeset
|
36 |
zpool_prop.o \ |
7dfde45252f0
6889826 ZFS retire agent should be able to repair pools
Eric Schrock <Eric.Schrock@Sun.COM>
parents:
10602
diff
changeset
|
37 |
zprop_common.o |
7dfde45252f0
6889826 ZFS retire agent should be able to repair pools
Eric Schrock <Eric.Schrock@Sun.COM>
parents:
10602
diff
changeset
|
38 |
|
7dfde45252f0
6889826 ZFS retire agent should be able to repair pools
Eric Schrock <Eric.Schrock@Sun.COM>
parents:
10602
diff
changeset
|
39 |
OBJS_COMMON= \ |
7dfde45252f0
6889826 ZFS retire agent should be able to repair pools
Eric Schrock <Eric.Schrock@Sun.COM>
parents:
10602
diff
changeset
|
40 |
libzfs_changelist.o \ |
7dfde45252f0
6889826 ZFS retire agent should be able to repair pools
Eric Schrock <Eric.Schrock@Sun.COM>
parents:
10602
diff
changeset
|
41 |
libzfs_config.o \ |
7dfde45252f0
6889826 ZFS retire agent should be able to repair pools
Eric Schrock <Eric.Schrock@Sun.COM>
parents:
10602
diff
changeset
|
42 |
libzfs_dataset.o \ |
13055 | 43 |
libzfs_diff.o \ |
10817
7dfde45252f0
6889826 ZFS retire agent should be able to repair pools
Eric Schrock <Eric.Schrock@Sun.COM>
parents:
10602
diff
changeset
|
44 |
libzfs_fru.o \ |
7dfde45252f0
6889826 ZFS retire agent should be able to repair pools
Eric Schrock <Eric.Schrock@Sun.COM>
parents:
10602
diff
changeset
|
45 |
libzfs_import.o \ |
13524
f0e12b33f77c
1644 add ZFS "clones" property
Matthew Ahrens <matt@delphix.com>
parents:
13512
diff
changeset
|
46 |
libzfs_iter.o \ |
10817
7dfde45252f0
6889826 ZFS retire agent should be able to repair pools
Eric Schrock <Eric.Schrock@Sun.COM>
parents:
10602
diff
changeset
|
47 |
libzfs_mount.o \ |
7dfde45252f0
6889826 ZFS retire agent should be able to repair pools
Eric Schrock <Eric.Schrock@Sun.COM>
parents:
10602
diff
changeset
|
48 |
libzfs_pool.o \ |
7dfde45252f0
6889826 ZFS retire agent should be able to repair pools
Eric Schrock <Eric.Schrock@Sun.COM>
parents:
10602
diff
changeset
|
49 |
libzfs_sendrecv.o \ |
7dfde45252f0
6889826 ZFS retire agent should be able to repair pools
Eric Schrock <Eric.Schrock@Sun.COM>
parents:
10602
diff
changeset
|
50 |
libzfs_status.o \ |
7dfde45252f0
6889826 ZFS retire agent should be able to repair pools
Eric Schrock <Eric.Schrock@Sun.COM>
parents:
10602
diff
changeset
|
51 |
libzfs_util.o |
7dfde45252f0
6889826 ZFS retire agent should be able to repair pools
Eric Schrock <Eric.Schrock@Sun.COM>
parents:
10602
diff
changeset
|
52 |
|
789 | 53 |
OBJECTS= $(OBJS_COMMON) $(OBJS_SHARED) |
54 |
||
55 |
include ../../Makefile.lib |
|
56 |
||
998 | 57 |
# libzfs must be installed in the root filesystem for mount(1M) |
58 |
include ../../Makefile.rootfs |
|
59 |
||
789 | 60 |
LIBS= $(DYNLIB) $(LINTLIB) |
61 |
||
2522 | 62 |
SRCDIR = ../common |
63 |
||
789 | 64 |
INCS += -I$(SRCDIR) |
65 |
INCS += -I../../../uts/common/fs/zfs |
|
66 |
INCS += -I../../../common/zfs |
|
10980
53f23d6d46a3
6815179 zpool import with a large number of LUNs is too slow
Eric Taylor <Eric.Taylor@Sun.COM>
parents:
10972
diff
changeset
|
67 |
INCS += -I../../libc/inc |
789 | 68 |
|
69 |
C99MODE= -xc99=%all |
|
70 |
C99LMODE= -Xc99=%all |
|
10588
dc03f981ea18
6438937 if 'zfs destroy' fails, it can leave a zvol device link missing
Eric Taylor <Eric.Taylor@Sun.COM>
parents:
10170
diff
changeset
|
71 |
LDLIBS += -lc -lm -ldevid -lgen -lnvpair -luutil -lavl -lefi \ |
11007
216d8396182e
PSARC/2009/557 ZFS send dedup
Lori Alt <Lori.Alt@Sun.COM>
parents:
10984
diff
changeset
|
72 |
-ladm -lidmap -ltsol -lmd -lumem |
13055 | 73 |
CPPFLAGS += $(INCS) -D_LARGEFILE64_SOURCE=1 -D_REENTRANT |
789 | 74 |
|
75 |
SRCS= $(OBJS_COMMON:%.o=$(SRCDIR)/%.c) \ |
|
76 |
$(OBJS_SHARED:%.o=$(SRC)/common/zfs/%.c) |
|
77 |
$(LINTLIB) := SRCS= $(SRCDIR)/$(LINTSRC) |
|
78 |
||
79 |
.KEEP_STATE: |
|
80 |
||
81 |
all: $(LIBS) |
|
82 |
||
83 |
lint: lintcheck |
|
84 |
||
85 |
pics/%.o: ../../../common/zfs/%.c |
|
86 |
$(COMPILE.c) -o $@ $< |
|
87 |
$(POST_PROCESS_O) |
|
88 |
||
89 |
include ../../Makefile.targ |