aboutsummaryrefslogtreecommitdiff
path: root/tools/build/cross-build/mkimg/Makefile
blob: cbef4a9f36eabddeb02972c3cc4e4b68bdd94cd4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# 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