diff options
Diffstat (limited to 'tools/build/cross-build/mkimg/Makefile')
-rw-r--r-- | tools/build/cross-build/mkimg/Makefile | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/tools/build/cross-build/mkimg/Makefile b/tools/build/cross-build/mkimg/Makefile new file mode 100644 index 000000000000..932f6150f118 --- /dev/null +++ b/tools/build/cross-build/mkimg/Makefile @@ -0,0 +1,27 @@ +# $FreeBSD$ + +# allow building mkimg as a host tool. + +MKIMG_SRC = ${SRCTOP}/usr.bin/mkimg +.PATH: ${MKIMG_SRC} + +.if ${.MAKE.OS} == "Linux" +WARNS= 0 + +CFLAGS+= \ + -D"__FBSDID(x)=" \ + -D_XOPEN_SOURCE -D_GNU_SOURCE + +.PATH: ${SRCTOP}/lib/libutil +SRCS+= expand_number.c + +.endif + +MK_STAGING=no +MK_TESTS= no + +.include <${MKIMG_SRC}/Makefile> + +.if ${.MAKE.OS} == "Linux" +LDADD+= -lbsd +.endif |