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
|
2014-05-15 19:19:57 +00:00
|
|
|
SRCS= format.c image.c mkimg.c scheme.c
|
2014-03-29 19:03:10 +00:00
|
|
|
MAN= mkimg.1
|
|
|
|
|
2014-12-12 06:13:31 +00:00
|
|
|
MKIMG_VERSION=20141211
|
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
|
|
|
|
|
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 \
|
|
|
|
pc98.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
|
|
|
|
|
2014-09-20 21:02:54 +00:00
|
|
|
.if ${MK_TESTS} != "no"
|
|
|
|
SUBDIR+= tests
|
|
|
|
.endif
|
|
|
|
|
2014-03-29 19:03:10 +00:00
|
|
|
.include <bsd.prog.mk>
|