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