usr/src/cmd/ztest/Makefile.com
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--
2619 asynchronous destruction of ZFS file systems 2747 SPA versioning with zfs feature flags Reviewed by: Matt Ahrens <[email protected]> Reviewed by: George Wilson <[email protected]> Reviewed by: Richard Lowe <[email protected]> Reviewed by: Dan Kruchinin <[email protected]> Approved by: Eric Schrock <[email protected]>
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
789
b348f31ed315 PSARC 2002/240 ZFS
ahrens
parents:
diff changeset
     1
#
b348f31ed315 PSARC 2002/240 ZFS
ahrens
parents:
diff changeset
     2
# CDDL HEADER START
b348f31ed315 PSARC 2002/240 ZFS
ahrens
parents:
diff changeset
     3
#
b348f31ed315 PSARC 2002/240 ZFS
ahrens
parents:
diff changeset
     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
b348f31ed315 PSARC 2002/240 ZFS
ahrens
parents:
diff changeset
     7
#
b348f31ed315 PSARC 2002/240 ZFS
ahrens
parents:
diff changeset
     8
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
b348f31ed315 PSARC 2002/240 ZFS
ahrens
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
b348f31ed315 PSARC 2002/240 ZFS
ahrens
parents:
diff changeset
    10
# See the License for the specific language governing permissions
b348f31ed315 PSARC 2002/240 ZFS
ahrens
parents:
diff changeset
    11
# and limitations under the License.
b348f31ed315 PSARC 2002/240 ZFS
ahrens
parents:
diff changeset
    12
#
b348f31ed315 PSARC 2002/240 ZFS
ahrens
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
b348f31ed315 PSARC 2002/240 ZFS
ahrens
parents:
diff changeset
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
b348f31ed315 PSARC 2002/240 ZFS
ahrens
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
b348f31ed315 PSARC 2002/240 ZFS
ahrens
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
b348f31ed315 PSARC 2002/240 ZFS
ahrens
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
b348f31ed315 PSARC 2002/240 ZFS
ahrens
parents:
diff changeset
    18
#
b348f31ed315 PSARC 2002/240 ZFS
ahrens
parents:
diff changeset
    19
# CDDL HEADER END
b348f31ed315 PSARC 2002/240 ZFS
ahrens
parents:
diff changeset
    20
#
b348f31ed315 PSARC 2002/240 ZFS
ahrens
parents:
diff changeset
    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
b348f31ed315 PSARC 2002/240 ZFS
ahrens
parents:
diff changeset
    24
#
b348f31ed315 PSARC 2002/240 ZFS
ahrens
parents:
diff changeset
    25
b348f31ed315 PSARC 2002/240 ZFS
ahrens
parents:
diff changeset
    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
b348f31ed315 PSARC 2002/240 ZFS
ahrens
parents:
diff changeset
    29
b348f31ed315 PSARC 2002/240 ZFS
ahrens
parents:
diff changeset
    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
b348f31ed315 PSARC 2002/240 ZFS
ahrens
parents:
diff changeset
    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
b348f31ed315 PSARC 2002/240 ZFS
ahrens
parents:
diff changeset
    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
b348f31ed315 PSARC 2002/240 ZFS
ahrens
parents:
diff changeset
    38
b348f31ed315 PSARC 2002/240 ZFS
ahrens
parents:
diff changeset
    39
C99MODE= -xc99=%all
b348f31ed315 PSARC 2002/240 ZFS
ahrens
parents:
diff changeset
    40
C99LMODE= -Xc99=%all
b348f31ed315 PSARC 2002/240 ZFS
ahrens
parents:
diff changeset
    41
CFLAGS += -g $(CCVERBOSE)
b348f31ed315 PSARC 2002/240 ZFS
ahrens
parents:
diff changeset
    42
CFLAGS64 += -g $(CCVERBOSE)
b348f31ed315 PSARC 2002/240 ZFS
ahrens
parents:
diff changeset
    43
CPPFLAGS += -D_LARGEFILE64_SOURCE=1 -D_REENTRANT $(INCS)
b348f31ed315 PSARC 2002/240 ZFS
ahrens
parents:
diff changeset
    44
b348f31ed315 PSARC 2002/240 ZFS
ahrens
parents:
diff changeset
    45
# lint complains about unused _umem_* functions
b348f31ed315 PSARC 2002/240 ZFS
ahrens
parents:
diff changeset
    46
LINTFLAGS += -xerroff=E_NAME_DEF_NOT_USED2 
b348f31ed315 PSARC 2002/240 ZFS
ahrens
parents:
diff changeset
    47
LINTFLAGS64 += -xerroff=E_NAME_DEF_NOT_USED2  
b348f31ed315 PSARC 2002/240 ZFS
ahrens
parents:
diff changeset
    48
b348f31ed315 PSARC 2002/240 ZFS
ahrens
parents:
diff changeset
    49
.KEEP_STATE:
b348f31ed315 PSARC 2002/240 ZFS
ahrens
parents:
diff changeset
    50
b348f31ed315 PSARC 2002/240 ZFS
ahrens
parents:
diff changeset
    51
all: $(PROG)
b348f31ed315 PSARC 2002/240 ZFS
ahrens
parents:
diff changeset
    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
b348f31ed315 PSARC 2002/240 ZFS
ahrens
parents:
diff changeset
    55
	$(POST_PROCESS)
b348f31ed315 PSARC 2002/240 ZFS
ahrens
parents:
diff changeset
    56
b348f31ed315 PSARC 2002/240 ZFS
ahrens
parents:
diff changeset
    57
clean:
b348f31ed315 PSARC 2002/240 ZFS
ahrens
parents:
diff changeset
    58
b348f31ed315 PSARC 2002/240 ZFS
ahrens
parents:
diff changeset
    59
lint:	lint_SRCS
b348f31ed315 PSARC 2002/240 ZFS
ahrens
parents:
diff changeset
    60
b348f31ed315 PSARC 2002/240 ZFS
ahrens
parents:
diff changeset
    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)