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