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
|
|
|
|
|
|
|
|
CFLAGS+=-DSPARSE_WRITE
|
|
|
|
|
2014-05-15 19:19:57 +00:00
|
|
|
# List of formats to support
|
|
|
|
SRCS+= \
|
|
|
|
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
|
|
|
|
|
|
|
|
DPADD= ${LIBUTIL}
|
|
|
|
LDADD= -lutil
|
|
|
|
|
|
|
|
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>
|