From 6c40e18b035ab4ca3017aaffad86c61178cd5a8f Mon Sep 17 00:00:00 2001 From: Mariano Alvira Date: Wed, 15 Apr 2009 14:02:39 -0400 Subject: [PATCH] ok. I think this is right. --- Makefile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index ef7d7d188..a45b38e5b 100644 --- a/Makefile +++ b/Makefile @@ -60,6 +60,10 @@ ALL = $(TESTS:.c=.srec) $(TESTS:.c=.bin) $(TESTS:.c=.dis) all: $(ALL) +tests/nvm-read.obj: src/maca.o +tests/rftest-rx.obj: src/maca.o +tests/rftest-tx.obj: src/maca.o + %.srec: %.obj $(OBJCOPY) ${OBJCFLAGS} -O srec $< $@ @@ -72,10 +76,11 @@ all: $(ALL) %.dis: %.obj $(OBJDUMP) -DS $< > $@ -%.obj: $(AOBJS) $(COBJS) $(TARGETS) $(LDSCRIPT) +%.obj: $(LDSCRIPT) %.o + echo $*.o $(LD) $(LDFLAGS) $(AOBJS) \ --start-group $(PLATFORM_LIBS) --end-group \ - -Map $*.map $*.o $< -o $@ + -Map $*.map $^ -o $@ %.System.map: %.obj