mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-14 22:32:30 +01:00
6424881cc8
The macOS assert.h header does not define static_assert when compiling in C99 mode. To fix this compile with -std=c11. Reviewed By: emaste Differential Revision: https://reviews.freebsd.org/D25928
43 lines
663 B
Makefile
43 lines
663 B
Makefile
# $FreeBSD$
|
|
|
|
SRCDIR:=${.PARSEDIR:tA}
|
|
|
|
.include <src.opts.mk>
|
|
|
|
PROG= makefs
|
|
|
|
CFLAGS+=-I${SRCDIR}
|
|
|
|
SRCS= cd9660.c \
|
|
ffs.c \
|
|
makefs.c \
|
|
msdos.c \
|
|
mtree.c \
|
|
walk.c
|
|
MAN= makefs.8
|
|
|
|
WARNS?= 2
|
|
CSTD= c11
|
|
|
|
.include "${SRCDIR}/cd9660/Makefile.inc"
|
|
.include "${SRCDIR}/ffs/Makefile.inc"
|
|
.include "${SRCDIR}/msdos/Makefile.inc"
|
|
|
|
CFLAGS+=-DHAVE_STRUCT_STAT_ST_FLAGS=1
|
|
|
|
.PATH: ${SRCTOP}/contrib/mtree
|
|
CFLAGS+=-I${SRCTOP}/contrib/mtree
|
|
SRCS+= getid.c misc.c spec.c
|
|
|
|
.PATH: ${SRCTOP}/contrib/mknod
|
|
CFLAGS+=-I${SRCTOP}/contrib/mknod
|
|
SRCS+= pack_dev.c
|
|
|
|
CFLAGS+= -I${SRCTOP}/lib/libnetbsd
|
|
LIBADD= netbsd util sbuf
|
|
|
|
HAS_TESTS=
|
|
SUBDIR.${MK_TESTS}+= tests
|
|
|
|
.include <bsd.prog.mk>
|