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 pc98.c \ 31 vtoc8.c 32 33BINDIR?=/usr/bin 34 35LIBADD= util 36 37WARNS?= 6 38 39.if ${MK_TESTS} != "no" 40SUBDIR+= tests 41.endif 42 43.include <bsd.prog.mk> 44