From 780f6ff31fdc592114e1dd60933bc7f0c6ee66d1 Mon Sep 17 00:00:00 2001 From: Romain Goyet Date: Tue, 1 Sep 2015 12:09:08 +0200 Subject: [PATCH] Makefile for tests --- Makefile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 1c9031335..cdafe3916 100644 --- a/Makefile +++ b/Makefile @@ -80,8 +80,9 @@ run: boot.elf test: test.elf $(GDB) -x test/gdb_script.gdb test.elf -test.elf: $(objs) test/runner.o - @$(LD) $(LDFLAGS) $(objs) test/runner.o -o $@ +test.elf: $(objs) $(tests) test/runner.o + @echo "LD $@" + @$(LD) $(LDFLAGS) $(objs) $(tests) test/runner.o -o $@ boot.hex: boot.elf @echo "OBJCOPY $@" @@ -105,4 +106,4 @@ boot.elf: $(objs) clean: @echo "CLEAN" - @rm -f $(objs) $(products) + @rm -f $(objs) $(tests) $(products)