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