bf39d18edb
--version print the version of mkimg and also whether it's 64- or 32-bit. --formats list the supported output formats separated by space. --schemes list the supported partitioning schemes separated by space. Inspired by a patch from: gjb@ MFC after: 1 week Relnotes: yes
42 lines
501 B
Makefile
42 lines
501 B
Makefile
# $FreeBSD$
|
|
|
|
.include <src.opts.mk>
|
|
|
|
PROG= mkimg
|
|
SRCS= format.c image.c mkimg.c scheme.c
|
|
MAN= mkimg.1
|
|
|
|
MKIMG_VERSION=20140926
|
|
CFLAGS+=-DMKIMG_VERSION=${MKIMG_VERSION}
|
|
CFLAGS+=-DSPARSE_WRITE
|
|
|
|
# List of formats to support
|
|
SRCS+= \
|
|
qcow.c \
|
|
raw.c \
|
|
vhd.c \
|
|
vmdk.c
|
|
|
|
# List of schemes to support
|
|
SRCS+= \
|
|
apm.c \
|
|
bsd.c \
|
|
ebr.c \
|
|
gpt.c \
|
|
mbr.c \
|
|
pc98.c \
|
|
vtoc8.c
|
|
|
|
BINDIR?=/usr/bin
|
|
|
|
DPADD= ${LIBUTIL}
|
|
LDADD= -lutil
|
|
|
|
WARNS?= 6
|
|
|
|
.if ${MK_TESTS} != "no"
|
|
SUBDIR+= tests
|
|
.endif
|
|
|
|
.include <bsd.prog.mk>
|