xref: /freebsd/tools/build/cross-build/mkimg/Makefile (revision 22cf89c938886d14f5796fc49f9f020c23ea8eaf)
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