From 746b6abea51105c97ee7106bb5d4621213ada7e7 Mon Sep 17 00:00:00 2001 From: Alexander Couzens Date: Sat, 10 Sep 2016 18:36:16 +0200 Subject: [PATCH] ifdtool/Makefile: use static dependencies The generated dependencies doesn't work when used together with our main build system. Change-Id: I93d26858e961d7e275d586a1b8a26b3d33f3bd41 Signed-off-by: Alexander Couzens Reviewed-on: https://review.coreboot.org/16572 Tested-by: build bot (Jenkins) Reviewed-by: Martin Roth --- util/ifdtool/Makefile | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/util/ifdtool/Makefile b/util/ifdtool/Makefile index 7a1bcfac46..77547efc36 100644 --- a/util/ifdtool/Makefile +++ b/util/ifdtool/Makefile @@ -30,17 +30,16 @@ $(PROGRAM): $(OBJS) clean: rm -f $(PROGRAM) *.o *~ - distclean: clean - rm -f .dependencies dep: @$(CC) $(CFLAGS) -MM *.c > .dependencies +%.o: %.c + $(CC) $(CFLAGS) -c -o $@ $< + install: $(PROGRAM) mkdir -p $(DESTDIR)$(PREFIX)/bin $(INSTALL) $(PROGRAM) $(DESTDIR)$(PREFIX)/bin .PHONY: all clean distclean dep - --include .dependencies