1*baf4abfcSSimon J. Gerraty# allow building mkimg as a host tool. 2*baf4abfcSSimon J. Gerraty 3*baf4abfcSSimon J. GerratyMKIMG_SRC = ${SRCTOP}/usr.bin/mkimg 4*baf4abfcSSimon J. Gerraty.PATH: ${MKIMG_SRC} 5*baf4abfcSSimon J. Gerraty 6*baf4abfcSSimon J. Gerraty.if ${.MAKE.OS} == "Linux" 7*baf4abfcSSimon J. GerratyWARNS= 0 8*baf4abfcSSimon J. Gerraty 9*baf4abfcSSimon J. GerratyCFLAGS+= \ 10*baf4abfcSSimon J. Gerraty -D"__FBSDID(x)=" \ 11*baf4abfcSSimon J. Gerraty -D_XOPEN_SOURCE -D_GNU_SOURCE 12*baf4abfcSSimon J. Gerraty 13*baf4abfcSSimon J. Gerraty.PATH: ${SRCTOP}/lib/libutil 14*baf4abfcSSimon J. GerratySRCS+= expand_number.c 15*baf4abfcSSimon J. Gerraty 16*baf4abfcSSimon J. Gerraty.endif 17*baf4abfcSSimon J. Gerraty 18*baf4abfcSSimon J. GerratyMK_STAGING=no 19*baf4abfcSSimon J. GerratyMK_TESTS= no 20*baf4abfcSSimon J. Gerraty 21*baf4abfcSSimon J. Gerraty.include <${MKIMG_SRC}/Makefile> 22*baf4abfcSSimon J. Gerraty 23*baf4abfcSSimon J. Gerraty.if ${.MAKE.OS} == "Linux" 24*baf4abfcSSimon J. GerratyLDADD+= -lbsd 25*baf4abfcSSimon J. Gerraty.endif 26