]> CyberLeo.Net >> Repos - FreeBSD/releng/8.1.git/blob - cddl/lib/libzpool/Makefile
Copy stable/8 to releng/8.1 in preparation for 8.1-RC1.
[FreeBSD/releng/8.1.git] / cddl / lib / libzpool / Makefile
1 # $FreeBSD$
2
3 .include "${.CURDIR}/../../../sys/cddl/contrib/opensolaris/uts/common/Makefile.files"
4
5 # ZFS_COMMON_SRCS
6 .PATH: ${.CURDIR}/../../../sys/cddl/contrib/opensolaris/uts/common/fs/zfs
7 # ZFS_SHARED_SRCS
8 .PATH: ${.CURDIR}/../../../sys/cddl/contrib/opensolaris/common/zfs
9 # KERNEL_SRCS
10 .PATH: ${.CURDIR}/../../../cddl/contrib/opensolaris/lib/libzpool/common
11 # LIST_SRCS
12 .PATH: ${.CURDIR}/../../../sys/cddl/contrib/opensolaris/uts/common/os
13 # ATOMIC_SRCS
14 .if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "ia64"
15 .PATH: ${.CURDIR}/../../../sys/cddl/contrib/opensolaris/common/atomic/${MACHINE_ARCH}
16 ATOMIC_SRCS=    opensolaris_atomic.S
17 .else
18 .PATH: ${.CURDIR}/../../../sys/cddl/compat/opensolaris/kern
19 ATOMIC_SRCS=    opensolaris_atomic.c
20 .endif
21 # UNICODE_SRCS
22 .PATH: ${.CURDIR}/../../../sys/cddl/contrib/opensolaris/common/unicode
23
24 LIB=            zpool
25
26 ZFS_COMMON_SRCS= ${ZFS_COMMON_OBJS:C/.o$/.c/} vdev_file.c
27 ZFS_SHARED_SRCS= ${ZFS_SHARED_OBJS:C/.o$/.c/}
28 KERNEL_SRCS=    kernel.c taskq.c util.c
29 LIST_SRCS=      list.c
30 UNICODE_SRCS=   u8_textprep.c
31
32 SRCS=           ${ZFS_COMMON_SRCS} ${ZFS_SHARED_SRCS} \
33                 ${KERNEL_SRCS} ${LIST_SRCS} ${ATOMIC_SRCS} \
34                 ${UNICODE_SRCS}
35
36 CFLAGS+=        -I${.CURDIR}/../../../sys/cddl/compat/opensolaris
37 CFLAGS+=        -I${.CURDIR}/../../../cddl/compat/opensolaris/include
38 CFLAGS+=        -I${.CURDIR}/../../../cddl/compat/opensolaris/lib/libumem
39 CFLAGS+=        -I${.CURDIR}/../../../cddl/contrib/opensolaris/lib/libzpool/common
40 CFLAGS+=        -I${.CURDIR}/../../../sys/cddl/contrib/opensolaris/uts/common/sys
41 CFLAGS+=        -I${.CURDIR}/../../../sys/cddl/contrib/opensolaris/uts/common/fs/zfs
42 CFLAGS+=        -I${.CURDIR}/../../../sys/cddl/contrib/opensolaris/common/zfs
43 CFLAGS+=        -I${.CURDIR}/../../../sys/cddl/contrib/opensolaris/uts/common
44 CFLAGS+=        -I${.CURDIR}/../../../cddl/contrib/opensolaris/head
45 CFLAGS+=        -I${.CURDIR}/../../../cddl/lib/libumem
46 CFLAGS+=        -I${.CURDIR}/../../../cddl/contrib/opensolaris/lib/libnvpair
47 # XXX: pthread doesn't have mutex_owned() equivalent, so we need to look
48 #      into libthr private structures. That's sooo evil, but it's only for
49 #      ZFS debugging tools needs.
50 CFLAGS+=        -DWANTS_MUTEX_OWNED
51 CFLAGS+=        -I${.CURDIR}/../../../lib/libpthread/thread
52 CFLAGS+=        -I${.CURDIR}/../../../lib/libpthread/sys
53 CFLAGS+=        -I${.CURDIR}/../../../lib/libthr/arch/${MACHINE_ARCH}/include
54
55 DPADD=          ${LIBPTHREAD} ${LIBZ}
56 LDADD=          -lpthread -lz
57
58 # atomic.S doesn't like profiling.
59 NO_PROFILE=
60
61 CSTD=   c99
62
63 .include <bsd.lib.mk>