summaryrefslogtreecommitdiff
path: root/util/futility/Makefile.inc
blob: ee4ad051e27bcc92083dd49054e2a417c0d2044d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
additional-dirs += $(objutil)/futility

VBOOT_FUTILITY = $(VBOOT_HOST_BUILD)/futility/futility

$(VBOOT_FUTILITY):
	@printf "    MAKE       $(subst $(objutil)/,,$(@))\n"
	unset CFLAGS LDFLAGS; $(MAKE) -C $(VBOOT_SOURCE) \
		BUILD=$(VBOOT_HOST_BUILD) \
		CC="$(HOSTCC)" \
		$(if $(HOSTPKGCONFIG), PKG_CONFIG="$(HOSTPKGCONFIG)") \
		V=$(V) \
		$@

$(objutil)/futility/futility: $(VBOOT_FUTILITY)
	mkdir -p $(dir $@)
	cp $< $@.tmp
	mv $@.tmp $@