1# allow building mkimg as a host tool. 2 3MKIMG_SRC = ${SRCTOP}/usr.bin/mkimg 4.PATH: ${MKIMG_SRC} 5 6.if ${.MAKE.OS} == "Linux" 7WARNS= 0 8 9CFLAGS+= \ 10 -D"__FBSDID(x)=" \ 11 -D_XOPEN_SOURCE -D_GNU_SOURCE 12 13.PATH: ${SRCTOP}/lib/libutil 14SRCS+= expand_number.c 15 16.endif 17 18MK_STAGING=no 19MK_TESTS= no 20 21.include <${MKIMG_SRC}/Makefile> 22 23.if ${.MAKE.OS} == "Linux" 24LDADD+= -lbsd 25.endif 26