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 vmdk.c 22 23# List of schemes to support 24SRCS+= \ 25 apm.c \ 26 bsd.c \ 27 ebr.c \ 28 gpt.c \ 29 mbr.c \ 30 vtoc8.c 31 32BINDIR?=/usr/bin 33 34LIBADD= util 35 36WARNS?= 6 37 38.if ${MK_TESTS} != "no" 39SUBDIR+= tests 40.endif 41 42.include <bsd.prog.mk> 43