aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/mkimg/Makefile
blob: 492b451f3fe082ba8c500755f3141ba1cb5ab3c4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# $FreeBSD$

.include <src.opts.mk>

PROG=	mkimg
SRCS=	format.c image.c mkimg.c scheme.c uuid.c
MAN=	mkimg.1

MKIMG_VERSION=20161016
mkimg.o: Makefile

CFLAGS+=-DMKIMG_VERSION=${MKIMG_VERSION}
CFLAGS+=-DSPARSE_WRITE
CFLAGS+=-I${SRCTOP}/sys/sys/disk

# 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 \
	vtoc8.c

BINDIR?=/usr/bin

LIBADD=	util

WARNS?=	6

.if ${MK_TESTS} != "no"
SUBDIR+= tests
.endif

.include <bsd.prog.mk>