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