]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - usr.sbin/fstyp/Makefile
bhyve: Fix NVMe BAR size calculation
[FreeBSD/FreeBSD.git] / usr.sbin / fstyp / Makefile
1 # $FreeBSD$
2
3 .include <src.opts.mk>
4
5 PROG=   fstyp
6 SRCS=   cd9660.c exfat.c ext2fs.c fstyp.c geli.c msdosfs.c ntfs.c ufs.c
7
8 .if ${MK_ZFS} != "no"
9 SRCS += zfs.c
10 .endif
11
12 MAN=    fstyp.8
13
14 WARNS?= 2
15
16 .include <bsd.endian.mk>
17
18 .if ${TARGET_ENDIANNESS} == 1234
19 HAS_TESTS=
20 SUBDIR.${MK_TESTS}+= tests
21 .endif
22
23 .if ${MK_ZFS} != "no"
24 IGNORE_PRAGMA=  YES
25
26 CFLAGS+= -DNEED_SOLARIS_BOOLEAN -DHAVE_ZFS
27 CFLAGS+= -I${SRCTOP}/sys/cddl/compat/opensolaris
28 CFLAGS+= -I${SRCTOP}/cddl/compat/opensolaris/include
29 CFLAGS+= -I${SRCTOP}/cddl/compat/opensolaris/lib/libumem
30 CFLAGS+= -I${SRCTOP}/cddl/contrib/opensolaris/lib/libnvpair
31 CFLAGS+= -I${SRCTOP}/cddl/contrib/opensolaris/lib/libzpool/common
32 CFLAGS+= -I${SRCTOP}/sys/cddl/contrib/opensolaris/uts/common/fs/zfs
33 CFLAGS+= -I${SRCTOP}/sys/cddl/contrib/opensolaris/uts/common
34 CFLAGS+= -I${SRCTOP}/cddl/contrib/opensolaris/head
35 .endif
36
37 CFLAGS+=-I${SRCTOP}/sys
38
39 LIBADD= geom md ufs
40
41 .if ${MK_ZFS} != "no"
42 LIBADD+=nvpair zfs
43 .endif
44
45 .include <bsd.prog.mk>