author | Christopher Siden <chris.siden@delphix.com> |
Mon, 21 May 2012 12:11:39 -0700 | |
changeset 13700 | 2889e2596bd6 |
parent 12710 | 66c9c36f2046 |
child 13764 | 38b4aca480b3 |
permissions | -rw-r--r-- |
789 | 1 |
# |
2 |
# CDDL HEADER START |
|
3 |
# |
|
4 |
# The contents of this file are subject to the terms of the |
|
10889
8b6ec68049bd
6888456 zfs command line utilities should have CTF data
Jonathan Adams <Jonathan.Adams@Sun.COM>
parents:
789
diff
changeset
|
5 |
# Common Development and Distribution License (the "License"). |
8b6ec68049bd
6888456 zfs command line utilities should have CTF data
Jonathan Adams <Jonathan.Adams@Sun.COM>
parents:
789
diff
changeset
|
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 |
# |
|
12710
66c9c36f2046
6677657 smb_list.c shouldn't exist
Eric Taylor <Eric.Taylor@Sun.COM>
parents:
10889
diff
changeset
|
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:
12710
diff
changeset
|
23 |
# Copyright (c) 2012 by Delphix. All rights reserved. |
789 | 24 |
# |
25 |
||
26 |
PROG= ztest |
|
10889
8b6ec68049bd
6888456 zfs command line utilities should have CTF data
Jonathan Adams <Jonathan.Adams@Sun.COM>
parents:
789
diff
changeset
|
27 |
OBJS= $(PROG).o |
8b6ec68049bd
6888456 zfs command line utilities should have CTF data
Jonathan Adams <Jonathan.Adams@Sun.COM>
parents:
789
diff
changeset
|
28 |
SRCS= $(OBJS:%.o=../%.c) |
789 | 29 |
|
30 |
include ../../Makefile.cmd |
|
10889
8b6ec68049bd
6888456 zfs command line utilities should have CTF data
Jonathan Adams <Jonathan.Adams@Sun.COM>
parents:
789
diff
changeset
|
31 |
include ../../Makefile.ctf |
789 | 32 |
|
13700
2889e2596bd6
2619 asynchronous destruction of ZFS file systems
Christopher Siden <chris.siden@delphix.com>
parents:
12710
diff
changeset
|
33 |
INCS += -I../../../lib/libzpool/common |
2889e2596bd6
2619 asynchronous destruction of ZFS file systems
Christopher Siden <chris.siden@delphix.com>
parents:
12710
diff
changeset
|
34 |
INCS += -I../../../uts/common/fs/zfs |
2889e2596bd6
2619 asynchronous destruction of ZFS file systems
Christopher Siden <chris.siden@delphix.com>
parents:
12710
diff
changeset
|
35 |
INCS += -I../../../common/zfs |
789 | 36 |
|
12710
66c9c36f2046
6677657 smb_list.c shouldn't exist
Eric Taylor <Eric.Taylor@Sun.COM>
parents:
10889
diff
changeset
|
37 |
LDLIBS += -lumem -lzpool -lcmdutils -lm -lnvpair |
789 | 38 |
|
39 |
C99MODE= -xc99=%all |
|
40 |
C99LMODE= -Xc99=%all |
|
41 |
CFLAGS += -g $(CCVERBOSE) |
|
42 |
CFLAGS64 += -g $(CCVERBOSE) |
|
43 |
CPPFLAGS += -D_LARGEFILE64_SOURCE=1 -D_REENTRANT $(INCS) |
|
44 |
||
45 |
# lint complains about unused _umem_* functions |
|
46 |
LINTFLAGS += -xerroff=E_NAME_DEF_NOT_USED2 |
|
47 |
LINTFLAGS64 += -xerroff=E_NAME_DEF_NOT_USED2 |
|
48 |
||
49 |
.KEEP_STATE: |
|
50 |
||
51 |
all: $(PROG) |
|
52 |
||
10889
8b6ec68049bd
6888456 zfs command line utilities should have CTF data
Jonathan Adams <Jonathan.Adams@Sun.COM>
parents:
789
diff
changeset
|
53 |
$(PROG): $(OBJS) |
8b6ec68049bd
6888456 zfs command line utilities should have CTF data
Jonathan Adams <Jonathan.Adams@Sun.COM>
parents:
789
diff
changeset
|
54 |
$(LINK.c) -o $(PROG) $(OBJS) $(LDLIBS) |
789 | 55 |
$(POST_PROCESS) |
56 |
||
57 |
clean: |
|
58 |
||
59 |
lint: lint_SRCS |
|
60 |
||
61 |
include ../../Makefile.targ |
|
10889
8b6ec68049bd
6888456 zfs command line utilities should have CTF data
Jonathan Adams <Jonathan.Adams@Sun.COM>
parents:
789
diff
changeset
|
62 |
|
8b6ec68049bd
6888456 zfs command line utilities should have CTF data
Jonathan Adams <Jonathan.Adams@Sun.COM>
parents:
789
diff
changeset
|
63 |
%.o: ../%.c |
8b6ec68049bd
6888456 zfs command line utilities should have CTF data
Jonathan Adams <Jonathan.Adams@Sun.COM>
parents:
789
diff
changeset
|
64 |
$(COMPILE.c) $< |
8b6ec68049bd
6888456 zfs command line utilities should have CTF data
Jonathan Adams <Jonathan.Adams@Sun.COM>
parents:
789
diff
changeset
|
65 |
$(POST_PROCESS_O) |