2014-03-29 19:03:10 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
2014-09-20 21:02:54 +00:00
|
|
|
.include <src.opts.mk>
|
|
|
|
|
2014-03-29 19:03:10 +00:00
|
|
|
PROG= mkimg
|
2017-03-03 01:56:55 +00:00
|
|
|
SRCS+= format.c image.c mkimg.c scheme.c uuid.c
|
2014-03-29 19:03:10 +00:00
|
|
|
MAN= mkimg.1
|
|
|
|
|
2016-10-18 01:55:07 +00:00
|
|
|
MKIMG_VERSION=20161016
|
2014-10-03 20:48:11 +00:00
|
|
|
mkimg.o: Makefile
|
|
|
|
|
2014-09-27 04:53:51 +00:00
|
|
|
CFLAGS+=-DMKIMG_VERSION=${MKIMG_VERSION}
|
2014-03-29 19:03:10 +00:00
|
|
|
CFLAGS+=-DSPARSE_WRITE
|
2016-10-18 01:55:07 +00:00
|
|
|
CFLAGS+=-I${SRCTOP}/sys/sys/disk
|
2014-03-29 19:03:10 +00:00
|
|
|
|
2014-05-15 19:19:57 +00:00
|
|
|
# List of formats to support
|
|
|
|
SRCS+= \
|
2014-09-22 15:05:28 +00:00
|
|
|
qcow.c \
|
2014-05-15 19:19:57 +00:00
|
|
|
raw.c \
|
2014-07-03 20:31:43 +00:00
|
|
|
vhd.c \
|
2014-05-15 19:19:57 +00:00
|
|
|
vmdk.c
|
|
|
|
|
2014-03-29 19:03:10 +00:00
|
|
|
# List of schemes to support
|
|
|
|
SRCS+= \
|
|
|
|
apm.c \
|
|
|
|
bsd.c \
|
|
|
|
ebr.c \
|
|
|
|
gpt.c \
|
|
|
|
mbr.c \
|
|
|
|
vtoc8.c
|
|
|
|
|
|
|
|
BINDIR?=/usr/bin
|
|
|
|
|
2014-11-25 14:29:10 +00:00
|
|
|
LIBADD= util
|
2014-03-29 19:03:10 +00:00
|
|
|
|
|
|
|
WARNS?= 6
|
|
|
|
|
2017-08-02 08:50:42 +00:00
|
|
|
HAS_TESTS=
|
2017-08-02 08:35:51 +00:00
|
|
|
SUBDIR.${MK_TESTS}+= tests
|
2014-09-20 21:02:54 +00:00
|
|
|
|
2014-03-29 19:03:10 +00:00
|
|
|
.include <bsd.prog.mk>
|