]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - usr.sbin/fstyp/Makefile
Fix privilege escalation in cd(4) driver.
[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
17 .if ${MK_TESTS} != "no"
18 SUBDIR+=        tests
19 .endif
20
21 .if ${MK_ZFS} != "no"
22 IGNORE_PRAGMA=  YES
23
24 CFLAGS+= -DNEED_SOLARIS_BOOLEAN -DHAVE_ZFS
25 CFLAGS+= -I${SRCTOP}/sys/cddl/compat/opensolaris
26 CFLAGS+= -I${SRCTOP}/cddl/compat/opensolaris/include
27 CFLAGS+= -I${SRCTOP}/cddl/compat/opensolaris/lib/libumem
28 CFLAGS+= -I${SRCTOP}/cddl/contrib/opensolaris/lib/libnvpair
29 CFLAGS+= -I${SRCTOP}/cddl/contrib/opensolaris/lib/libzpool/common
30 CFLAGS+= -I${SRCTOP}/sys/cddl/contrib/opensolaris/uts/common/fs/zfs
31 CFLAGS+= -I${SRCTOP}/sys/cddl/contrib/opensolaris/uts/common
32 CFLAGS+= -I${SRCTOP}/cddl/contrib/opensolaris/head
33 .endif
34
35 CFLAGS+=-I${SRCTOP}/sys
36
37 LIBADD= geom md
38
39 .if ${MK_ZFS} != "no"
40 LIBADD+=nvpair zfs
41 .endif
42
43 .include <bsd.prog.mk>