]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - usr.sbin/makefs/Makefile
Import device-tree files from Linux 6.1
[FreeBSD/FreeBSD.git] / usr.sbin / makefs / Makefile
1 #       $FreeBSD$
2
3 SRCDIR:=${.PARSEDIR:tA}
4
5 .include <src.opts.mk>
6
7 PROG=   makefs
8
9 CFLAGS+=-I${SRCDIR}
10
11 SRCS=   cd9660.c \
12         ffs.c \
13         makefs.c \
14         msdos.c \
15         mtree.c \
16         walk.c
17 MAN=    makefs.8
18
19 NO_WCAST_ALIGN=
20 CSTD=   c11
21
22 .if ${MK_ZFS} != "no"
23 SRCS+=  zfs.c
24 CFLAGS+=-I${SRCDIR}/zfs \
25         -I${SRCTOP}/stand/libsa \
26         -I${SRCTOP}/sys/cddl/boot
27
28 CFLAGS+=        -DHAVE_ZFS
29
30 .include "${SRCDIR}/zfs/Makefile.inc"
31 .endif
32
33 .include "${SRCDIR}/cd9660/Makefile.inc"
34 .include "${SRCDIR}/ffs/Makefile.inc"
35 .include "${SRCDIR}/msdos/Makefile.inc"
36
37 CFLAGS+=-DHAVE_STRUCT_STAT_ST_FLAGS=1
38
39 .PATH: ${SRCTOP}/contrib/mtree
40 CFLAGS+=-I${SRCTOP}/contrib/mtree
41 SRCS+=  getid.c misc.c spec.c
42
43 .PATH: ${SRCTOP}/contrib/mknod
44 CFLAGS+=-I${SRCTOP}/contrib/mknod
45 SRCS+=  pack_dev.c
46
47 CFLAGS+=        -I${SRCTOP}/lib/libnetbsd
48 LIBADD=         netbsd util sbuf
49
50 HAS_TESTS=
51 SUBDIR.${MK_TESTS}+= tests
52
53 .include <bsd.prog.mk>