1# $FreeBSD$ 2 3.include <src.opts.mk> 4 5PROG= mkimg 6SRCS+= format.c image.c mkimg.c scheme.c uuid.c 7MAN= mkimg.1 8 9MKIMG_VERSION=20161016 10mkimg.o: Makefile 11 12CFLAGS+=-DMKIMG_VERSION=${MKIMG_VERSION} 13CFLAGS+=-DSPARSE_WRITE 14CFLAGS+=-I${SRCTOP}/sys/sys/disk 15 16# List of formats to support 17SRCS+= \ 18 qcow.c \ 19 raw.c \ 20 vhd.c \ 21 vhdx.c \ 22 vmdk.c 23 24# List of schemes to support 25SRCS+= \ 26 apm.c \ 27 bsd.c \ 28 ebr.c \ 29 gpt.c \ 30 mbr.c \ 31 vtoc8.c 32 33BINDIR?=/usr/bin 34 35LIBADD= util 36 37HAS_TESTS= 38SUBDIR.${MK_TESTS}+= tests 39 40.include <bsd.prog.mk> 41